Created
February 12, 2019 18:33
-
-
Save jbenner-radham/a1ac62c8fddeac1f36ecf4c1421e4c9c to your computer and use it in GitHub Desktop.
Stylelint config boilerplate.
This file contains hidden or 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
/** | |
* @see https://stylelint.io/user-guide/rules/ | |
* @see https://www.npmjs.com/package/stylelint-scss | |
* @see https://www.npmjs.com/package/stylelint-config-recommended-scss | |
*/ | |
module.exports = { | |
extends: ['stylelint-config-recommended-scss'], | |
rules: { | |
'font-family-name-quotes': 'always-where-recommended', | |
indentation: [4, { baseIndentLevel: 1 }], | |
'length-zero-no-unit': true, | |
linebreaks: 'unix', | |
'max-empty-lines': 1, | |
'no-empty-first-line': true, | |
'no-eol-whitespace': true, | |
'number-leading-zero': 'never', | |
'number-no-trailing-zeros': true, | |
'scss/dollar-variable-colon-space-after': 'at-least-one-space', | |
'scss/dollar-variable-colon-space-before': 'never', | |
'scss/double-slash-comment-whitespace-inside': 'always', | |
'selector-list-comma-space-after': 'always', | |
'selector-list-comma-space-before': 'never', | |
'string-quotes': 'single', | |
'unit-case': 'lower', | |
'value-keyword-case': 'lower', | |
'value-list-comma-space-after': 'always-single-line', | |
'value-list-comma-space-before': 'never-single-line' | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment