|
| 1 | +/** @type {import("@types/stylelint").Options} */ |
| 2 | + |
| 3 | +module.exports = { |
| 4 | + extends: [ |
| 5 | + 'stylelint-config-standard', |
| 6 | + 'stylelint-config-standard-scss', |
| 7 | + 'stylelint-config-prettier', |
| 8 | + 'stylelint-config-recess-order', |
| 9 | + ], |
| 10 | + |
| 11 | + plugins: [ |
| 12 | + // |
| 13 | + 'stylelint-order', |
| 14 | + ], |
| 15 | + |
| 16 | + overrides: [ |
| 17 | + { |
| 18 | + files: ['*.vue', '**/*.vue'], |
| 19 | + extends: [ |
| 20 | + 'stylelint-config-standard-scss', |
| 21 | + 'stylelint-config-prettier', |
| 22 | + 'stylelint-config-recommended-vue/scss', |
| 23 | + ], |
| 24 | + }, |
| 25 | + ], |
| 26 | + rules: { |
| 27 | + 'comment-empty-line-before': null, |
| 28 | + // Shorthand units make things hard to read and change |
| 29 | + 'shorthand-property-no-redundant-values': null, |
| 30 | + 'scss/double-slash-comment-empty-line-before': null, |
| 31 | + 'color-function-notation': null, |
| 32 | + 'property-no-vendor-prefix': null, |
| 33 | + 'value-keyword-case': null, |
| 34 | + 'declaration-block-no-redundant-longhand-properties': null, |
| 35 | + 'hue-degree-notation': null, |
| 36 | + 'length-zero-no-unit': null, |
| 37 | + 'alpha-value-notation': null, |
| 38 | + 'scss/at-import-partial-extension': null, |
| 39 | + 'selector-pseudo-class-no-unknown': [ |
| 40 | + true, |
| 41 | + { |
| 42 | + ignorePseudoClasses: ['global'], |
| 43 | + }, |
| 44 | + ], |
| 45 | + 'selector-pseudo-element-no-unknown': [ |
| 46 | + true, |
| 47 | + { |
| 48 | + ignorePseudoElements: ['v-deep'], |
| 49 | + }, |
| 50 | + ], |
| 51 | + 'max-line-length': [100, , { ignore: ['comments'] }], |
| 52 | + }, |
| 53 | +}; |
0 commit comments