Skip to content

Instantly share code, notes, and snippets.

@crutch12
Created April 16, 2022 23:43
Show Gist options
  • Save crutch12/f38340d920f007fb267ed2f06c124af4 to your computer and use it in GitHub Desktop.
Save crutch12/f38340d920f007fb267ed2f06c124af4 to your computer and use it in GitHub Desktop.
Stylelint styled-components config
// @NOTE: https://github.com/styled-components/stylelint-processor-styled-components/issues/187#issuecomment-396687345
module.exports = {
processors: ['stylelint-processor-styled-components'],
extends: ['stylelint-config-standard', 'stylelint-config-styled-components'],
rules: {
indentation: 2,
// @NOTE: This conflicts with @use from scss
'at-rule-no-unknown': null,
'scss/at-rule-no-unknown': true,
// @NOTE: This conflicts with styled-components
'no-empty-source': null,
'no-descending-specificity': null,
'value-keyword-case': null,
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment