summaryrefslogtreecommitdiffstats
path: root/.stylelintrc.json
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-12 19:15:48 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-12 19:17:13 +0100
commit23f909d33d5ee58cbf093191518939fbf72c6b70 (patch)
tree246b873318fffe52fbd40c7496d0baf6f07cb9ba /.stylelintrc.json
parentdf69949ebe244465b5baa7d1b91a2ed161b4827a (diff)
build: add tools to enforce some code/commit rules
Diffstat (limited to '.stylelintrc.json')
-rw-r--r--.stylelintrc.json38
1 files changed, 38 insertions, 0 deletions
diff --git a/.stylelintrc.json b/.stylelintrc.json
new file mode 100644
index 0000000..4754334
--- /dev/null
+++ b/.stylelintrc.json
@@ -0,0 +1,38 @@
+{
+ "extends": "stylelint-config-standard-scss",
+ "rules": {
+ "alpha-value-notation": "number",
+ "color-function-notation": "legacy",
+ "comment-whitespace-inside": null,
+ "custom-property-pattern": null,
+ "declaration-colon-newline-after": null,
+ "declaration-empty-line-before": null,
+ "function-url-quotes": null,
+ "hue-degree-notation": "number",
+ "indentation": [
+ 2,
+ {
+ "ignore": ["inside-parens", "value"],
+ "indentInsideParens": "twice"
+ }
+ ],
+ "max-line-length": [
+ 80,
+ {
+ "ignore": ["non-comments"],
+ "ignorePattern": ["/https?://[0-9,a-z]*.*/"]
+ }
+ ],
+ "selector-id-pattern": null,
+ "selector-class-pattern": [
+ "^([a-z][a-z0-9]*)((-|--|__)[a-z0-9]+)*$",
+ {
+ "message": "Selector should use lowercase and separate words with hyphens or use BEM (selector-class-pattern)"
+ }
+ ],
+ "scss/dollar-variable-empty-line-before": null,
+ "scss/dollar-variable-pattern": null,
+ "scss/double-slash-comment-whitespace-inside": null,
+ "scss/operator-no-newline-after": null
+ }
+}