summaryrefslogtreecommitdiffstats
path: root/.stylelintrc
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-04-29 04:17:01 +0000
committerGo MAEDA <maeda@farend.jp>2020-04-29 04:17:01 +0000
commit9f1b772f3f53be2a31901036661fa06c4cf72d6d (patch)
treee77cdc87a21a278151bbec0d95483c6d0f1bddab /.stylelintrc
parent3986b6e3b95e3be673735c81ecb996c4c67686fc (diff)
downloadredmine-9f1b772f3f53be2a31901036661fa06c4cf72d6d.tar.gz
redmine-9f1b772f3f53be2a31901036661fa06c4cf72d6d.zip
Adds Stylelint to lint CSS files (#32888).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@19732 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to '.stylelintrc')
-rw-r--r--.stylelintrc28
1 files changed, 28 insertions, 0 deletions
diff --git a/.stylelintrc b/.stylelintrc
new file mode 100644
index 000000000..c2540cb3c
--- /dev/null
+++ b/.stylelintrc
@@ -0,0 +1,28 @@
+{
+ "rules": {
+ "color-no-invalid-hex": true,
+ "font-family-no-duplicate-names": true,
+ "font-family-no-missing-generic-family-keyword": true,
+ "function-calc-no-invalid": true,
+ "function-calc-no-unspaced-operator": true,
+ "function-linear-gradient-no-nonstandard-direction": true,
+ "string-no-newline": true,
+ "unit-no-unknown": true,
+ "property-no-unknown": true,
+ "keyframe-declaration-no-important": true,
+ "declaration-block-no-duplicate-properties": [true, { ignore: ["consecutive-duplicates-with-different-values"] }],
+ "declaration-block-no-shorthand-property-overrides": true,
+ "block-no-empty": true,
+ "selector-pseudo-class-no-unknown": true,
+ "selector-pseudo-element-no-unknown": true,
+ "selector-type-no-unknown": true,
+ "media-feature-name-no-unknown": true,
+ "at-rule-no-unknown": true,
+ "comment-no-empty": true,
+ "no-duplicate-at-import-rules": true,
+ "no-duplicate-selectors": true,
+ "no-empty-source": true,
+ "no-extra-semicolons": true,
+ "no-invalid-double-slash-comments": true,
+ }
+}