-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathstylelint.config.js
33 lines (33 loc) · 981 Bytes
/
stylelint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
module.exports = {
extends: ['stylelint-config-recommended', 'stylelint-config-recess-order'],
plugins: ['stylelint-declaration-block-no-ignored-properties', 'stylelint-browser-compat'],
rules: {
'at-rule-no-unknown': [
true,
{
ignoreAtRules: ['extend'],
},
],
'color-hex-length': 'short',
'color-no-invalid-hex': true,
'length-zero-no-unit': true,
'no-empty-source': null,
'plugin/declaration-block-no-ignored-properties': true,
'selector-pseudo-element-colon-notation': 'double',
'plugin/browser-compat': true,
},
overrides: [
{
files: ['**/*.{ts,jsx,tsx}'],
customSyntax: 'postcss-styled-syntax',
rules: {
// CSS in JS との相性が悪いため無効化
'block-no-empty': null,
'custom-property-pattern': null,
'function-name-case': null,
'function-no-unknown': null,
'no-invalid-double-slash-comments': null,
},
},
],
};