stylelint-config-crisp 1.0.5 → 1.0.7
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 +3 -1
- package/index.js +8 -0
- 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
|
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",
|