|
| 1 | +$schema: https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/stylelintrc.json |
| 2 | + |
| 3 | +extends: |
| 4 | + - stylelint-config-recommended |
| 5 | + - stylelint-config-standard |
| 6 | + - stylelint-prettier/recommended |
| 7 | + |
| 8 | +plugins: |
| 9 | + - stylelint-csstree-validator |
| 10 | + |
| 11 | +rules: |
| 12 | + import-notation: null |
| 13 | + # TODO: fix all of these rules violated in stylelint-config-recommended |
| 14 | + no-descending-specificity: null |
| 15 | + # this fixer is incompatible with the copyright headers |
| 16 | + comment-whitespace-inside: null |
| 17 | + # these fixers assume use of `autoprefixer`: we _don't_ use any CSS preprocessors |
| 18 | + property-no-vendor-prefix: null |
| 19 | + selector-no-vendor-prefix: null |
| 20 | + value-no-vendor-prefix: null |
| 21 | + # these fixers doesn't work well with variables |
| 22 | + alpha-value-notation: null |
| 23 | + color-function-notation: null |
| 24 | + # TODO: evaluate these unfixable rules violated in stylelint-config-standard |
| 25 | + custom-property-pattern: null |
| 26 | + declaration-block-no-redundant-longhand-properties: null |
| 27 | + function-linear-gradient-no-nonstandard-direction: null |
| 28 | + function-url-quotes: null |
| 29 | + keyframes-name-pattern: null |
| 30 | + number-max-precision: null |
| 31 | + selector-class-pattern: null |
| 32 | + selector-id-pattern: null |
| 33 | + selector-pseudo-class-no-unknown: null |
| 34 | + selector-pseudo-element-no-unknown: null |
| 35 | + selector-not-notation: null |
| 36 | + # disallow use of more than one bare HTML tag like `div span` to avoid performance regression, |
| 37 | + # while allowing compounded HTML tags like `button.jp-Button` |
| 38 | + selector-max-type: |
| 39 | + - 1 |
| 40 | + - ignore: "compounded" |
| 41 | + # matching complex selectors is expensive |
| 42 | + selector-max-class: 4 |
| 43 | + # TODO: decrease max-compound to 3 |
| 44 | + selector-max-compound-selectors: 4 |
| 45 | + # TODO: decrease to 0 |
| 46 | + selector-max-universal: 1 |
| 47 | + csstree/validator: true |
0 commit comments