@rws-aoa/stylelint-config
Version:
Standard Stylelint config for all RWS AOA projects
30 lines (29 loc) • 1.42 kB
JavaScript
export const config = {
defaultSeverity: 'error',
extends: ['stylelint-config-standard', 'stylelint-config-recommended', 'stylelint-config-sass-guidelines'],
plugins: ['stylelint-scss'],
rules: {
'color-hex-length': 'long',
'color-named': 'never',
'declaration-block-no-redundant-longhand-properties': true,
'declaration-block-no-shorthand-property-overrides': true,
'declaration-empty-line-before': 'never',
'font-family-name-quotes': 'always-where-recommended',
'import-notation': 'string',
'max-nesting-depth': [5, { ignoreAtRules: ['each', 'media', 'supports', 'include'] }],
'no-invalid-double-slash-comments': null,
'number-max-precision': 3,
'property-no-unknown': true,
'selector-max-compound-selectors': [5],
'scss/at-else-closing-brace-newline-after': 'always-last-in-chain',
'scss/at-else-closing-brace-space-after': 'always-intermediate',
'scss/at-else-empty-line-before': 'never',
'scss/at-else-if-parentheses-space-before': 'always',
'scss/at-if-closing-brace-newline-after': 'always-last-in-chain',
'scss/at-if-closing-brace-space-after': 'always-intermediate',
'scss/dollar-variable-no-missing-interpolation': true,
'scss/no-duplicate-dollar-variables': true,
'value-keyword-case': 'lower'
}
};
export default config;