stylelint-config-crisp 1.0.14 → 1.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/index.js +4 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,6 +85,7 @@ This is the list of configured syntaxes, plugins and rules used by Stylelint Con
|
|
|
85
85
|
#### Crisp rules
|
|
86
86
|
- [at-rule-conditional-parentheses](https://github.com/crisp-oss/stylelint-config-crisp/blob/master/rules/at-rule-conditional-parentheses.js): Enforces parentheses in conditions of at-rules (`@if`, `@elseif`, `@while`)
|
|
87
87
|
- [rule-empty-line-before](https://github.com/crisp-oss/stylelint-config-crisp/blob/master/rules/rule-empty-line-before.js): Requires an empty line before multi-line rules the same way [rule-empty-line-before](https://stylelint.io/user-guide/rules/rule-empty-line-before/) does, but properly handles Sass interpolation `#{}` in selectors
|
|
88
|
+
- [selector-class-interpolation](https://github.com/crisp-oss/stylelint-config-crisp/blob/master/rules/selector-class-interpolation.js): Enforces class selectors to use Sass interpolation
|
|
88
89
|
|
|
89
90
|
## License
|
|
90
91
|
|
package/index.js
CHANGED
|
@@ -14,6 +14,7 @@ module.exports = {
|
|
|
14
14
|
plugins: [
|
|
15
15
|
"./rules/at-rule-conditional-parentheses",
|
|
16
16
|
"./rules/rule-empty-line-before",
|
|
17
|
+
"./rules/selector-class-interpolation",
|
|
17
18
|
|
|
18
19
|
"stylelint-order"
|
|
19
20
|
],
|
|
@@ -54,7 +55,7 @@ module.exports = {
|
|
|
54
55
|
"outline": ["none"]
|
|
55
56
|
},
|
|
56
57
|
"keyframe-block-no-duplicate-selectors": null,
|
|
57
|
-
"no-descending-specificity": null
|
|
58
|
+
"no-descending-specificity": null,
|
|
58
59
|
"number-max-precision": 5,
|
|
59
60
|
"rule-empty-line-before": [
|
|
60
61
|
"always-multi-line",
|
|
@@ -119,6 +120,7 @@ module.exports = {
|
|
|
119
120
|
|
|
120
121
|
// Crisp rules
|
|
121
122
|
"crisp/at-rule-conditional-parentheses": true,
|
|
122
|
-
"crisp/rule-empty-line-before": true
|
|
123
|
+
"crisp/rule-empty-line-before": true,
|
|
124
|
+
"crisp/selector-class-interpolation": true
|
|
123
125
|
}
|
|
124
126
|
}
|