Skip to content

Instantly share code, notes, and snippets.

@nunof07
Last active April 29, 2019 16:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nunof07/b478648f0e9d5d27c44639234e3d0e75 to your computer and use it in GitHub Desktop.
Save nunof07/b478648f0e9d5d27c44639234e3d0e75 to your computer and use it in GitHub Desktop.
Stylelint configuration for Sage theme
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,
},
};
npm install --save-dev stylelint@9.10.1
@nunof07
Copy link
Author

nunof07 commented Apr 5, 2019

Update stylelint package to the latest version first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment