Skip to content

Commit d919a3e

Browse files
tiagoloureirosrtab
authored andcommitted
added new rules
1 parent 65c71aa commit d919a3e

3 files changed

Lines changed: 40 additions & 10 deletions

File tree

package-lock.json

Lines changed: 20 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,13 @@
3434
"lint-staged": "15.2.0"
3535
},
3636
"peerDependencies": {
37-
"stylelint": "^16.0.0",
38-
"prettier": "^3.0.0"
37+
"prettier": "^3.0.0",
38+
"stylelint": "^16.0.0"
3939
},
4040
"dependencies": {
4141
"stylelint-config-prettier-scss": "^1.0.0",
4242
"stylelint-config-standard-scss": "^13.0.0",
43+
"stylelint-declaration-strict-value": "^1.10.4",
4344
"stylelint-order": "^6.0.4"
4445
}
4546
}

src/config.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,22 @@ module.exports = {
77
rules: {
88
'no-descending-specificity': null,
99
'order/properties-alphabetical-order': true,
10+
'scale-unlimited/declaration-strict-value': [['color', 'background-color', 'font-weight', 'font-size']],
11+
'declaration-no-important': true,
12+
'unit-allowed-list': ['rem', { ignoreFunctions: ['rem'], severity: 'warning' }],
13+
// TODO: This should move to error in the future.
14+
'max-nesting-depth': [3, { severity: 'warning' }],
15+
// TODO: This should move to error in the future.
16+
'selector-max-attribute': [1, { severity: 'warning' }],
17+
// TODO: This should move to error in the future.
18+
'selector-max-combinators': [3, { severity: 'warning' }],
19+
// TODO: This should move to error in the future.
20+
'selector-max-id': [1, { severity: 'warning' }],
21+
// TODO: This should move to error in the future.
22+
'selector-max-pseudo-class': [2, { severity: 'warning' }],
23+
// TODO: This should move to error in the future.
24+
'selector-max-type': [1, { severity: 'warning' }],
25+
// TODO: This should move to error in the future.
26+
'selector-max-universal': [1, { severity: 'warning' }],
1027
},
1128
};

0 commit comments

Comments
 (0)