From 23f909d33d5ee58cbf093191518939fbf72c6b70 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 12 Dec 2021 19:15:48 +0100 Subject: build: add tools to enforce some code/commit rules --- .stylelintrc.json | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .stylelintrc.json (limited to '.stylelintrc.json') 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 + } +} -- cgit v1.2.3