@justia/stylelint-config
Version:
Justia's base Scss Stylelint configuration
95 lines (94 loc) • 3.7 kB
JavaScript
;
module.exports = {
rules: {
'alpha-value-notation': null,
'hue-degree-notation': null,
'color-function-notation': 'legacy',
'color-hex-length': 'long',
'color-named': 'never',
'color-no-hex': null,
'length-zero-no-unit': true,
'font-family-name-quotes': null,
'font-weight-notation': null,
'function-allowed-list': null,
'function-disallowed-list': null,
'function-url-no-scheme-relative': null,
'function-url-quotes': 'always',
'function-url-scheme-allowed-list': null,
'function-url-scheme-disallowed-list': null,
'keyframes-name-pattern': null,
'number-max-precision': null,
'time-min-milliseconds': null,
'unit-allowed-list': null,
'unit-disallowed-list': null,
'shorthand-property-no-redundant-values': true,
'value-no-vendor-prefix': true,
'custom-property-pattern': null,
'property-allowed-list': null,
'property-disallowed-list': null,
'property-no-vendor-prefix': true,
'declaration-no-important': null,
'declaration-property-unit-allowed-list': null,
'declaration-property-unit-disallowed-list': null,
'declaration-property-value-allowed-list': null,
'declaration-property-value-disallowed-list': {
border: ['none'],
'border-top': ['none'],
'border-right': ['none'],
'border-bottom': ['none'],
'border-left': ['none']
},
'declaration-block-no-redundant-longhand-properties': null,
'declaration-block-single-line-max-declarations': 1,
'selector-attribute-operator-allowed-list': null,
'selector-attribute-operator-disallowed-list': null,
'selector-class-pattern': [
'^[a-z0-9\\-]+$',
{
message: 'Selector should be written in lowercase with hyphens (selector-class-pattern)'
}
],
'selector-combinator-allowed-list': null,
'selector-combinator-disallowed-list': null,
'selector-id-pattern': null,
'selector-max-attribute': null,
'selector-max-class': null,
'selector-max-combinators': null,
'selector-max-compound-selectors': 4,
'selector-max-id': 1,
'selector-max-pseudo-class': null,
'selector-max-specificity': null,
'selector-max-type': null,
'selector-max-universal': null,
'selector-nested-pattern': null,
'selector-no-qualifying-type': [
true,
{
ignore: ['attribute']
}
],
'selector-no-vendor-prefix': true,
'selector-pseudo-class-allowed-list': null,
'selector-pseudo-class-disallowed-list': null,
'selector-pseudo-element-allowed-list': null,
'selector-pseudo-element-colon-notation': 'double',
'selector-pseudo-element-disallowed-list': null,
'media-feature-name-allowed-list': null,
'media-feature-name-disallowed-list': null,
'media-feature-name-no-vendor-prefix': true,
'media-feature-name-value-allowed-list': null,
'custom-media-pattern': null,
'at-rule-allowed-list': null,
'at-rule-disallowed-list': ['debug'],
'at-rule-no-vendor-prefix': true,
'at-rule-property-required-list': null,
'comment-word-disallowed-list': null,
'max-nesting-depth': [
4,
{
ignoreAtRules: ['media', 'supports', 'include', 'each', 'if', 'else']
}
],
'no-unknown-animations': true
}
};