Skip to content

Instantly share code, notes, and snippets.

@MadeByMike
Last active November 8, 2019 06:05
Show Gist options
  • Save MadeByMike/a81ed14dcf521e254f4c954acf1ba21b to your computer and use it in GitHub Desktop.
Save MadeByMike/a81ed14dcf521e254f4c954acf1ba21b to your computer and use it in GitHub Desktop.
module.exports = {
rules: {
'at-rule-empty-line-before': [
'always',
{
except: [
'blockless-after-same-name-blockless',
'blockless-after-blockless',
'first-nested'
],
ignoreAtRules: ['import', 'include']
}
],
'at-rule-no-vendor-prefix': true,
'at-rule-whitelist': ['include', 'media', 'keyframes', 'supports', 'font-face'],
'block-no-empty': [true, { ignore: ['comments'] }],
'color-no-invalid-hex': true,
'comment-no-empty': true,
'declaration-block-no-duplicate-properties': true,
'declaration-block-no-shorthand-property-overrides': true,
'declaration-empty-line-before': 'never',
'font-family-no-duplicate-names': true,
'font-family-no-missing-generic-family-keyword': true,
'function-calc-no-invalid': true,
'function-calc-no-unspaced-operator': true,
'function-linear-gradient-no-nonstandard-direction': true,
'keyframe-declaration-no-important': true,
'media-feature-name-no-unknown': true,
'max-nesting-depth': [0, { ignore: ['blockless-at-rules'] }],
'no-descending-specificity': true,
'no-duplicate-at-import-rules': true,
'no-duplicate-selectors': true,
'no-empty-source': true,
'no-extra-semicolons': true,
'no-invalid-double-slash-comments': true,
'property-no-unknown': [true, { ignoreProperties: ['scroll', 'overflow-x', 'overflow-y'] }],
'property-no-vendor-prefix': [true, { ignoreProperties: ['appearance'] }],
'rule-empty-line-before': [
'always',
{
except: ['after-single-line-comment', 'first-nested']
}
],
'selector-pseudo-class-no-unknown': true,
'selector-pseudo-element-no-unknown': true,
'selector-no-vendor-prefix': true,
'selector-type-no-unknown': true,
'string-no-newline': true,
'unit-no-unknown': true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment