-
Notifications
You must be signed in to change notification settings - Fork 202
Expand file tree
/
Copy pathstylelint.config.js
More file actions
42 lines (40 loc) · 1.26 KB
/
stylelint.config.js
File metadata and controls
42 lines (40 loc) · 1.26 KB
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
34
35
36
37
38
39
40
41
42
module.exports = {
extends: ['stylelint-config-sass-guidelines', '@jetbrains/stylelint-config'],
plugins: ['@csstools/stylelint-no-at-nest-rule'],
rules: {
'@csstools/stylelint-no-at-nest-rule': true,
'selector-class-pattern': null,
'selector-max-id': null,
'max-nesting-depth': null,
'scss/selector-no-redundant-nesting-selector': null,
'scss/load-no-partial-leading-underscore': null,
'scss/dollar-variable-pattern': null,
'color-hex-length': null,
'selector-max-compound-selectors': null,
'selector-no-qualifying-type': null,
'scss/at-mixin-pattern': null,
'property-no-vendor-prefix': null,
'length-zero-no-unit': null,
'scss/at-rule-no-unknown': [
true,
{
ignoreAtRules: ['value'],
},
],
'selector-max-specificity': [
'0,3,0',
{
ignoreSelectors: [':global', ':local'],
},
],
// Disable a few rules temporarily, they should be re-enabled
'font-family-no-missing-generic-family-keyword': null,
'no-descending-specificity': null,
'no-duplicate-selectors': null,
/**
* Workaround to highlight inline colors: we should use palette from variables.css where possible
*/
'color-named': 'never',
'color-no-hex': true,
},
};