|
| 1 | +/** @type {import('stylelint').Config} */ |
| 2 | +module.exports = { |
| 3 | + extends: '@wordpress/stylelint-config/scss-stylistic', |
| 4 | + rules: { |
| 5 | + 'at-rule-empty-line-before': null, |
| 6 | + 'at-rule-no-unknown': null, |
| 7 | + 'comment-empty-line-before': null, |
| 8 | + 'declaration-property-value-allowed-list': [ |
| 9 | + { |
| 10 | + 'flex-direction': '/^(?!(row|column)-reverse).*$/', |
| 11 | + }, |
| 12 | + { |
| 13 | + message: |
| 14 | + 'Avoid the flex-direction reverse values. For accessibility reasons, visual, reading, and DOM order must match. Only use the reverse values when they do not affect reading order, meaning, and interaction.', |
| 15 | + }, |
| 16 | + ], |
| 17 | + 'declaration-property-value-disallowed-list': [ |
| 18 | + { |
| 19 | + '/.*/': [ '/--wp-components-color-/' ], |
| 20 | + }, |
| 21 | + { |
| 22 | + message: |
| 23 | + '--wp-components-color-* variables are not ready to be used outside of the components package.', |
| 24 | + }, |
| 25 | + ], |
| 26 | + 'font-weight-notation': null, |
| 27 | + '@stylistic/max-line-length': null, |
| 28 | + 'no-descending-specificity': null, |
| 29 | + 'property-disallowed-list': [ |
| 30 | + [ 'order' ], |
| 31 | + { |
| 32 | + message: |
| 33 | + 'Avoid the order property. For accessibility reasons, visual, reading, and DOM order must match. Only use the order property when it does not affect reading order, meaning, and interaction.', |
| 34 | + }, |
| 35 | + ], |
| 36 | + 'rule-empty-line-before': null, |
| 37 | + 'selector-class-pattern': null, |
| 38 | + 'value-keyword-case': null, |
| 39 | + 'scss/operator-no-unspaced': null, |
| 40 | + 'scss/selector-no-redundant-nesting-selector': null, |
| 41 | + 'scss/load-partial-extension': null, |
| 42 | + 'scss/no-global-function-names': null, |
| 43 | + 'scss/comment-no-empty': null, |
| 44 | + 'scss/at-extend-no-missing-placeholder': null, |
| 45 | + 'scss/operator-no-newline-after': null, |
| 46 | + 'scss/at-if-closing-brace-newline-after': null, |
| 47 | + 'scss/at-else-empty-line-before': null, |
| 48 | + 'scss/at-if-closing-brace-space-after': null, |
| 49 | + 'no-invalid-position-at-import-rule': null, |
| 50 | + }, |
| 51 | + reportDescriptionlessDisables: true, |
| 52 | +}; |
0 commit comments