Skip to content

Instantly share code, notes, and snippets.

@seanogdev
Created August 1, 2020 16:56
Show Gist options
  • Save seanogdev/2dde335d990084fa68f1ea82b593a0d7 to your computer and use it in GitHub Desktop.
Save seanogdev/2dde335d990084fa68f1ea82b593a0d7 to your computer and use it in GitHub Desktop.
stylelint
module.exports = {
root: true,
extends: 'stylelint-config-recommended-scss',
plugins: ['stylelint-scss', 'stylelint-order'],
syntax: 'scss',
files: [
'./src/**/*.scss',
],
rules: {
'indentation': 4,
'max-nesting-depth': 4,
'no-empty-source': null,
'no-descending-specificity': null,
'at-rule-no-unknown': null,
'property-no-unknown': [
true,
],
'scss/at-rule-no-unknown': true,
'declaration-no-important': true,
'declaration-block-no-duplicate-properties': [true, { 'ignore': ['consecutive-duplicates-with-different-values'] }],
'declaration-empty-line-before': null,
'order/order': [
{
type: 'at-rule',
name: 'include',
},
{
type: 'at-rule',
},
{
type: 'at-rule',
name: 'include',
hasBlock: true
},
{
type: 'at-rule',
hasBlock: true
},
],
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment