2020-08-04 23:37:35 +02:00
|
|
|
"use strict";
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
rules: {
|
|
|
|
// Stylistic rules for CSS.
|
2018-07-26 22:22:13 +02:00
|
|
|
"function-comma-space-after": "always",
|
|
|
|
"function-comma-space-before": "never",
|
|
|
|
"function-max-empty-lines": 0,
|
|
|
|
"function-whitespace-after": "always",
|
|
|
|
|
|
|
|
"value-keyword-case": "lower",
|
|
|
|
"value-list-comma-newline-after": "always-multi-line",
|
|
|
|
"value-list-comma-space-after": "always-single-line",
|
|
|
|
"value-list-comma-space-before": "never",
|
|
|
|
"value-list-max-empty-lines": 0,
|
|
|
|
|
|
|
|
"unit-case": "lower",
|
|
|
|
"property-case": "lower",
|
|
|
|
"color-hex-case": "lower",
|
|
|
|
|
|
|
|
"declaration-bang-space-before": "always",
|
|
|
|
"declaration-colon-newline-after": "always-multi-line",
|
2018-07-21 15:19:49 +02:00
|
|
|
"declaration-colon-space-after": "always-single-line",
|
|
|
|
"declaration-colon-space-before": "never",
|
|
|
|
"declaration-block-semicolon-newline-after": "always",
|
|
|
|
"declaration-block-semicolon-space-before": "never",
|
|
|
|
"declaration-block-trailing-semicolon": "always",
|
|
|
|
|
2018-07-26 22:22:13 +02:00
|
|
|
"block-closing-brace-empty-line-before": "never",
|
2018-07-21 15:19:49 +02:00
|
|
|
"block-closing-brace-newline-after": "always",
|
|
|
|
"block-closing-brace-newline-before": "always",
|
|
|
|
"block-opening-brace-newline-after": "always",
|
|
|
|
"block-opening-brace-space-before": "always",
|
|
|
|
|
2018-07-26 22:22:13 +02:00
|
|
|
"selector-attribute-brackets-space-inside": "never",
|
|
|
|
"selector-attribute-operator-space-after": "never",
|
|
|
|
"selector-attribute-operator-space-before": "never",
|
|
|
|
"selector-combinator-space-after": "always",
|
|
|
|
"selector-combinator-space-before": "always",
|
2018-07-21 15:19:49 +02:00
|
|
|
"selector-descendant-combinator-no-non-space": true,
|
2018-07-26 22:22:13 +02:00
|
|
|
"selector-pseudo-class-parentheses-space-inside": "never",
|
|
|
|
"selector-pseudo-element-case": "lower",
|
|
|
|
"selector-pseudo-element-colon-notation": "double",
|
|
|
|
"selector-type-case": "lower",
|
2018-07-21 15:19:49 +02:00
|
|
|
"selector-list-comma-newline-after": "always",
|
|
|
|
"selector-list-comma-space-before": "never",
|
|
|
|
|
2018-07-26 22:22:13 +02:00
|
|
|
"media-feature-colon-space-after": "always",
|
|
|
|
"media-feature-colon-space-before": "never",
|
|
|
|
"media-feature-name-case": "lower",
|
|
|
|
"media-feature-parentheses-space-inside": "never",
|
|
|
|
"media-feature-range-operator-space-after": "always",
|
|
|
|
"media-feature-range-operator-space-before": "always",
|
2018-07-21 15:19:49 +02:00
|
|
|
"media-query-list-comma-newline-after": "always",
|
|
|
|
"media-query-list-comma-space-before": "never",
|
|
|
|
|
2018-07-26 22:22:13 +02:00
|
|
|
"at-rule-name-case": "lower",
|
|
|
|
"at-rule-name-space-after": "always",
|
|
|
|
"at-rule-semicolon-newline-after": "always",
|
|
|
|
"at-rule-semicolon-space-before": "never",
|
|
|
|
|
2018-07-21 15:19:49 +02:00
|
|
|
"comment-whitespace-inside": "always",
|
2020-08-04 23:37:35 +02:00
|
|
|
indentation: 4,
|
|
|
|
|
|
|
|
// Limit language features
|
2018-10-10 18:49:38 +02:00
|
|
|
"color-no-hex": true,
|
2019-01-23 00:33:18 +01:00
|
|
|
"color-named": "never",
|
2020-08-04 23:37:35 +02:00
|
|
|
},
|
|
|
|
};
|