Skip to content

Instantly share code, notes, and snippets.

@richardkall
Created May 26, 2019 16:25
Show Gist options
  • Save richardkall/0f38d1f564a28846ba13a07443b85a65 to your computer and use it in GitHub Desktop.
Save richardkall/0f38d1f564a28846ba13a07443b85a65 to your computer and use it in GitHub Desktop.
.stylelintrc.js
module.exports = {
extends: ['stylelint-config-recommended', 'stylelint-prettier/recommended'],
plugins: ['stylelint-order', 'stylelint-value-no-unknown-custom-properties'],
rules: {
'at-rule-no-vendor-prefix': true,
'color-hex-length': 'short',
'color-named': ['never', { ignoreProperties: ['/composes/'] }],
'color-no-hex': true,
'declaration-block-no-redundant-longhand-properties': true,
'declaration-no-important': true,
'font-family-name-quotes': 'always-where-recommended',
'font-weight-notation': 'numeric',
'function-url-no-scheme-relative': true,
'length-zero-no-unit': true,
'media-feature-name-no-vendor-prefix': true,
'no-descending-specificity': null,
'no-unknown-animations': true,
'order/order': ['custom-properties', 'declarations', 'rules', 'at-rules'],
'order/properties-alphabetical-order': true,
'property-no-unknown': [true, { ignoreProperties: ['/composes/'] }],
'property-no-vendor-prefix': true,
'selector-no-vendor-prefix': true,
'shorthand-property-no-redundant-values': true,
'value-no-vendor-prefix': true,
},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment