Skip to content

Commit

Permalink
ENH Update stylelint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli committed Jun 5, 2024
1 parent 9e427f2 commit 3f436af
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 6 deletions.
34 changes: 29 additions & 5 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
module.exports = {
'defaultSeverity': 'warning',
'extends': [
'stylelint-config-recommended-scss',
'stylelint-config-sass-guidelines',
Expand Down Expand Up @@ -31,7 +30,7 @@ module.exports = {
}
],
'selector-max-id': 2,
'selector-max-compound-selectors': 5,
'selector-max-compound-selectors': 6,
'selector-pseudo-element-colon-notation': 'single',
'no-descending-specificity': [
true,
Expand Down Expand Up @@ -73,7 +72,30 @@ module.exports = {
]
}
],

'at-rule-no-unknown': [
true,
{
// Allow sass at-rules - see https://sass-lang.com/documentation/at-rules/
'ignoreAtRules': [
'at-root',
'debug',
'each',
'else',
'error',
'extend',
'for',
'forward',
'function',
'if',
'import',
'include',
'mixin',
'use',
'warn',
'while',
]
}
],
'comment-no-empty': true,
'declaration-block-no-duplicate-properties': true,
'no-irregular-whitespace': true,
Expand All @@ -86,14 +108,16 @@ module.exports = {
}
],
'font-family-name-quotes': 'always-unless-keyword',
// Turn off rules
// Turn off rules
'selector-class-pattern': null,
'selector-id-pattern': null,
'function-no-unknown': null,
'property-no-vendor-prefix': null,
'value-no-vendor-prefix': null,
'font-family-no-missing-generic-family-keyword': null,
'scss/dollar-variable-colon-space-after': null,
'scss/no-global-function-names': null,
'value-keyword-case': null
'value-keyword-case': null,
'media-query-no-invalid': null,
}
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@silverstripe/eslint-config",
"version": "1.2.1",
"version": "1.3.0",
"description": "SilverStripe config files for eslint",
"engines": {
"node": ">=18.x"
Expand Down

0 comments on commit 3f436af

Please sign in to comment.