Skip to content

Instantly share code, notes, and snippets.

@nunof07

nunof07/.stylelintrc.js

Last active Apr 29, 2019
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@nunof07 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