UNPKG

@bitfactory/stylelint-config

Version:
82 lines (80 loc) 2.39 kB
// Main stylelint configuration for Bitfactory projects // Supports both CommonJS and ESM consumers export default { extends: [ 'stylelint-config-standard', './stylistic.js', './stylelint-order.js', ], rules: { 'at-rule-no-vendor-prefix': true, 'color-named': 'never', 'declaration-block-no-redundant-longhand-properties': [ true, { ignoreShorthands: ['/grid/'], }, ], 'declaration-no-important': true, 'declaration-property-unit-allowed-list': [ { 'line-height': [], }, { severity: 'warning', }, ], 'declaration-property-unit-disallowed-list': [ { 'font-size': ['px', 'em'], }, { severity: 'warning', }, ], 'declaration-property-value-disallowed-list': { 'border': ['none'], 'border-bottom': ['none'], 'border-left': ['none'], 'border-right': ['none'], 'border-top': ['none'], }, 'font-family-name-quotes': 'always-where-recommended', 'font-weight-notation': 'numeric', 'function-url-quotes': 'always', 'max-nesting-depth': [ 4, { ignore: [ 'pseudo-classes', ], ignoreAtRules: [ 'media', 'supports', ], }, ], 'media-feature-name-no-vendor-prefix': true, 'no-descending-specificity': null, 'property-disallowed-list': [ 'float', { severity: 'warning', }, ], 'property-no-vendor-prefix': true, 'selector-class-pattern': [ String.raw`^[a-z0-9\-]+$`, { message: 'Selector should be written in lowercase with hyphens (selector-class-pattern)', }, ], 'selector-max-compound-selectors': 3, 'selector-max-id': 0, 'selector-no-qualifying-type': true, 'selector-no-vendor-prefix': true, 'shorthand-property-no-redundant-values': true, 'value-no-vendor-prefix': true, }, };