Skip to content

Commit 9387c24

Browse files
authored
Merge pull request #7 from yasharsanaei/update-rules-to-match-material
chore: update rule for material color keys
2 parents 736dd62 + c0335fe commit 9387c24

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ module.exports = {
1313
'scss/dollar-variable-pattern': /^[-_]?[a-z0-9\-]+/,
1414
'selector-type-case': ['lower', { severity: 'error' }],
1515
'declaration-empty-line-before': null,
16-
'value-keyword-case': ['lower', { severity: 'error' }],
16+
// ignoreKeywords for value-keyword-case in material color codes
17+
'value-keyword-case': ['lower', { ignoreKeywords: ['/A[0-9]{3}/'], severity: 'error' }],
1718
'rule-empty-line-before': null,
1819
'scss/dollar-variable-empty-line-before': null,
1920
'custom-property-empty-line-before': null,
@@ -65,7 +66,7 @@ module.exports = {
6566
'left',
6667
'right',
6768
],
68-
severity: 'error',
69+
severity: 'warning',
6970
},
7071
],
7172
'pitcher/max-lines': [500, { severity: 'error' }],

0 commit comments

Comments
 (0)