aboutsummaryrefslogtreecommitdiff
path: root/.stylelintrc.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-03 15:30:38 -0500
committerGitHub <noreply@github.com>2021-01-03 15:30:38 -0500
commit63971776a5db6ad0d3a68361f64a74aa9e78aff5 (patch)
treee4100c1e6e418cf26165708992ef75be62c9628d /.stylelintrc.json
parentd50d7a4a3a5e307838348726de331cf5eb283bff (diff)
CSS lint (#1201)
* Use single quotes instead of double * Install stylelint * Set up config * Update package/tests * Fix lint issues * Update CSS rules
Diffstat (limited to '.stylelintrc.json')
-rw-r--r--.stylelintrc.json54
1 files changed, 54 insertions, 0 deletions
diff --git a/.stylelintrc.json b/.stylelintrc.json
new file mode 100644
index 00000000..69fa3189
--- /dev/null
+++ b/.stylelintrc.json
@@ -0,0 +1,54 @@
+{
+ "extends": "stylelint-config-recommended",
+ "ignoreFiles": [
+ "ext/mixed/lib/**/*.css"
+ ],
+ "rules": {
+ "font-family-name-quotes": "always-where-recommended",
+ "string-quotes": "single",
+ "color-named": "never",
+ "declaration-no-important": true,
+ "function-calc-no-invalid": true,
+ "function-calc-no-unspaced-operator": true,
+ "string-no-newline": true,
+ "unit-no-unknown": true,
+ "block-no-empty": true,
+ "no-extra-semicolons": true,
+ "no-invalid-double-slash-comments": true,
+ "font-weight-notation": "named-where-possible",
+ "color-hex-case": "lower",
+ "function-comma-space-after": "always",
+ "function-comma-space-before": "never",
+ "function-name-case": "lower",
+ "function-parentheses-space-inside": "never",
+ "function-whitespace-after": "always",
+ "number-leading-zero": "always",
+ "number-no-trailing-zeros": true,
+ "unit-case": "lower",
+ "value-keyword-case": "lower",
+ "property-case": "lower",
+ "indentation": 4,
+ "max-empty-lines": 2,
+ "selector-type-no-unknown": null,
+ "no-descending-specificity": null,
+ "no-duplicate-selectors": null,
+ "selector-combinator-space-before": "never",
+ "selector-combinator-space-after": "never",
+ "selector-list-comma-newline-after": "always-multi-line",
+ "rule-empty-line-before": null,
+ "block-opening-brace-space-before": [
+ "always",
+ {
+ "ignoreSelectors": "/^\\.icon/"
+ }
+ ],
+ "block-opening-brace-space-after": "always-single-line",
+ "color-hex-length": null,
+ "declaration-colon-space-before": "never",
+ "declaration-colon-space-after": "always-single-line",
+ "length-zero-no-unit": null,
+ "selector-pseudo-element-colon-notation": "double",
+ "custom-property-empty-line-before": null,
+ "at-rule-empty-line-before": null
+ }
+} \ No newline at end of file