-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into inset-text-text
- Loading branch information
Showing
105 changed files
with
2,716 additions
and
3,362 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ module.exports = { | |
{ | ||
files: '*.scss', | ||
options: { | ||
printWidth: 120, | ||
singleQuote: false | ||
} | ||
} | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
module.exports = { | ||
extends: 'stylelint-config-gds/scss', | ||
ignoreFiles: [ | ||
'**/dist/**', | ||
'**/vendor/**', | ||
|
||
// Ignore CSS-in-JS (including dotfiles) | ||
'**/?(.)*.{cjs,js,mjs}' | ||
], | ||
overrides: [ | ||
{ | ||
customSyntax: 'postcss-markdown', | ||
files: ['**/*.md'] | ||
}, | ||
{ | ||
customSyntax: 'postcss-markdown', | ||
files: ['**/coding-standards.md', '**/README.md'], | ||
rules: { | ||
// Allow markdown `*.md` CSS bad examples | ||
'block-no-empty': null, | ||
'color-no-hex': null, | ||
'selector-max-id': null, | ||
'selector-no-qualifying-type': null, | ||
|
||
// Allow markdown `*.md` Sass bad examples | ||
'scss/dollar-variable-pattern': null | ||
} | ||
}, | ||
{ | ||
customSyntax: 'postcss-scss', | ||
files: ['**/*.scss'], | ||
rules: { | ||
// Disallow hex colours | ||
// https://stylelint.io/user-guide/rules/color-no-hex/ | ||
'color-no-hex': true, | ||
|
||
// Properties and values that are disallowed | ||
// https://stylelint.io/user-guide/rules/declaration-property-value-disallowed-list/ | ||
'declaration-property-value-disallowed-list': { | ||
transition: ['all'], | ||
'/^border/': ['none'] | ||
}, | ||
|
||
// Disallow @mixin before @extends | ||
// /~https://github.com/hudochenkov/stylelint-order/blob/master/rules/order/README.md#extended-at-rule-objects | ||
'order/order': [ | ||
{ | ||
type: 'at-rule', | ||
name: 'extend' | ||
}, | ||
{ | ||
type: 'at-rule', | ||
name: 'mixin' | ||
} | ||
], | ||
|
||
// Allow underscores (but not numbers) in mixin naming pattern | ||
// /~https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/at-mixin-pattern | ||
'scss/at-mixin-pattern': [ | ||
/^([a-z-_])*$/, | ||
{ | ||
message: 'Mixin names may only contain [a-z-_] characters' | ||
} | ||
], | ||
|
||
// Allow underscores in $variable naming pattern | ||
// /~https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/dollar-variable-pattern | ||
'scss/dollar-variable-pattern': [ | ||
/^([a-z0-9-_])*$/, | ||
{ | ||
message: 'Variable names may only contain [a-z0-9-_] characters' | ||
} | ||
], | ||
|
||
// Allow underscores (but not numbers) in %placeholder naming pattern | ||
// /~https://github.com/stylelint-scss/stylelint-scss/tree/master/src/rules/percent-placeholder-pattern | ||
'scss/percent-placeholder-pattern': [ | ||
/^([a-z-_])*$/, | ||
{ | ||
message: 'Placeholders may only contain [a-z-_] characters' | ||
} | ||
] | ||
} | ||
} | ||
], | ||
plugins: ['stylelint-order'] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.