about summary refs log tree commit diff
path: root/stylelint.config.js
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2022-06-02 02:22:35 +0900
committerGitHub <noreply@github.com>2022-06-01 19:22:35 +0200
commit84266f87e7f3ecc0f6b4aa35d18a2a5dccb47cd4 (patch)
treeeb9657fddde70367c1715232874829a91720560a /stylelint.config.js
parent3f1426057474e15c32b0130280e0349ab5e682c0 (diff)
Replace from Code Climate to Super-Linter (#18587)
Diffstat (limited to 'stylelint.config.js')
-rw-r--r--stylelint.config.js28
1 files changed, 28 insertions, 0 deletions
diff --git a/stylelint.config.js b/stylelint.config.js
new file mode 100644
index 000000000..0f8267a81
--- /dev/null
+++ b/stylelint.config.js
@@ -0,0 +1,28 @@
+module.exports = {
+  extends: ['stylelint-config-standard-scss'],
+  ignoreFiles: [
+    'app/javascript/styles/mastodon/reset.scss',
+    'node_modules/**/*',
+    'vendor/**/*',
+  ],
+  rules: {
+    'at-rule-empty-line-before': null,
+    'color-function-notation': null,
+    'color-hex-length': null,
+    'declaration-block-no-redundant-longhand-properties': null,
+    'max-line-length': null,
+    'no-descending-specificity': null,
+    'no-duplicate-selectors': null,
+    'number-max-precision': 8,
+    'property-no-unknown': null,
+    'property-no-vendor-prefix': null,
+    'selector-class-pattern': null,
+    'selector-id-pattern': null,
+    'string-quotes': null,
+    'value-keyword-case': null,
+    'value-no-vendor-prefix': null,
+
+    'scss/dollar-variable-empty-line-before': null,
+    'scss/no-global-function-names': null,
+  },
+};