Last active
April 29, 2019 16:05
-
-
Save nunof07/b478648f0e9d5d27c44639234e3d0e75 to your computer and use it in GitHub Desktop.
Stylelint configuration for Sage theme
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
module.exports = { | |
'extends': 'stylelint-config-standard', | |
'rules': { | |
'no-empty-source': null, | |
'at-rule-no-unknown': [ | |
true, | |
{ | |
'ignoreAtRules': [ | |
'extend', | |
'at-root', | |
'debug', | |
'warn', | |
'error', | |
'if', | |
'else', | |
'for', | |
'each', | |
'while', | |
'mixin', | |
'include', | |
'content', | |
'return', | |
'function', | |
'tailwind', | |
'apply', | |
'responsive', | |
'variants', | |
'screen', | |
], | |
}, | |
], | |
'at-rule-empty-line-before': [ | |
'always', | |
{ | |
except: [ | |
'blockless-after-same-name-blockless', | |
'first-nested', | |
], | |
ignore: ['after-comment'], | |
ignoreAtRules: ['include'] | |
} | |
], | |
'font-family-name-quotes': 'always-unless-keyword', | |
'function-url-quotes': 'always', | |
'selector-attribute-quotes': 'always', | |
'string-quotes': 'double', | |
'at-rule-no-vendor-prefix': true, | |
'media-feature-name-no-vendor-prefix': true, | |
'property-no-vendor-prefix': true, | |
'selector-no-vendor-prefix': true, | |
'value-no-vendor-prefix': true, | |
'max-nesting-depth': [ | |
5, | |
{ | |
'ignore': [ | |
'blockless-at-rules', | |
'pseudo-classes', | |
], | |
}, | |
], | |
'selector-max-compound-selectors': 5, | |
'max-line-length': 80, | |
}, | |
}; |
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
npm install --save-dev stylelint@9.10.1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update
stylelint
package to the latest version first.