stylelint-config-crisp 1.0.4 → 1.0.6
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 +4 -1
- package/index.js +10 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Just extend this configuration in your Stylelint config object:
|
|
|
17
17
|
|
|
18
18
|
## Documentation
|
|
19
19
|
|
|
20
|
-
This is
|
|
20
|
+
This is the list of configured syntaxes, plugins and rules used by Stylelint Config Crisp, and what they do.
|
|
21
21
|
|
|
22
22
|
### Custom syntaxes
|
|
23
23
|
- [postcss-html](https://github.com/ota-meshi/postcss-html): allows to parse `<style>` tags from Vue files
|
|
@@ -33,6 +33,8 @@ This is a list of configured syntaxes, plugins and rules used by Stylelint Confi
|
|
|
33
33
|
|
|
34
34
|
#### General rules
|
|
35
35
|
- [alpha-value-notation](https://stylelint.io/user-guide/rules/alpha-value-notation/): Alpha-values must use the number notation (instead of the percentage notation)
|
|
36
|
+
- [at-rule-empty-line-before](https://stylelint.io/user-guide/rules/at-rule-empty-line-before/): Requires an empty line before at-rules
|
|
37
|
+
* `blockless` at-rules are ignored (usefull for root `.scss` files with a lot of `@import` rules, organized in different groups)
|
|
36
38
|
- [block-no-empty](https://stylelint.io/user-guide/rules/block-no-empty/): Disallows empty blocks
|
|
37
39
|
- [color-function-notation](https://stylelint.io/user-guide/rules/color-function-notation/): Color functions must use legacy notation (`rgba(12, 122, 231, 0.2)` instead of `rgb(12 122 231 / 0.2)`)
|
|
38
40
|
- [color-hex-length](https://stylelint.io/user-guide/rules/color-hex-length/): Hex colors must use long notation
|
|
@@ -43,6 +45,7 @@ This is a list of configured syntaxes, plugins and rules used by Stylelint Confi
|
|
|
43
45
|
- [declaration-block-single-line-max-declarations](https://stylelint.io/user-guide/rules/declaration-block-single-line-max-declarations/): Allows only 1 declaration per line
|
|
44
46
|
- [declaration-property-value-disallowed-list](https://stylelint.io/user-guide/rules/declaration-property-value-disallowed-list/): A list of disallowed property and value pairs within declaration
|
|
45
47
|
* `^border: none` is disallowed (prefer `0`, for consistency)
|
|
48
|
+
* `outline: none` is disallowed (prefer `0`, for consistency)
|
|
46
49
|
- [number-max-precision](https://stylelint.io/user-guide/rules/number-max-precision/): Allows a maximum of 5 decimal places in numbers
|
|
47
50
|
- [selector-class-pattern](https://stylelint.io/user-guide/rules/selector-class-pattern/): Rule is **disabled** as it conflicts with our BEM notation in class selectors
|
|
48
51
|
- [selector-pseudo-class-no-unknown](https://stylelint.io/user-guide/rules/selector-pseudo-class-no-unknown/): Disallows unknown pseudo-class selectors
|
package/index.js
CHANGED
|
@@ -18,6 +18,14 @@ module.exports = {
|
|
|
18
18
|
rules: {
|
|
19
19
|
// General rules
|
|
20
20
|
"alpha-value-notation": "number",
|
|
21
|
+
"at-rule-empty-line-before": [
|
|
22
|
+
"always",
|
|
23
|
+
{
|
|
24
|
+
"except": ["blockless-after-same-name-blockless", "first-nested"],
|
|
25
|
+
"ignore": ["after-comment", "blockless-after-blockless"],
|
|
26
|
+
"ignoreAtRules": ["else"]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
21
29
|
"block-no-empty": true,
|
|
22
30
|
"color-function-notation": "legacy",
|
|
23
31
|
"color-hex-length": "long",
|
|
@@ -38,7 +46,8 @@ module.exports = {
|
|
|
38
46
|
"border-top": ["none"],
|
|
39
47
|
"border-right": ["none"],
|
|
40
48
|
"border-bottom": ["none"],
|
|
41
|
-
"border-left": ["none"]
|
|
49
|
+
"border-left": ["none"],
|
|
50
|
+
"outline": ["none"]
|
|
42
51
|
},
|
|
43
52
|
"number-max-precision": 5,
|
|
44
53
|
"selector-class-pattern": null,
|