aboutsummaryrefslogtreecommitdiff
path: root/viewer/.eslintrc.js
diff options
context:
space:
mode:
authorZero~Informatique2020-04-27 22:23:10 +0200
committerZero~Informatique2020-04-28 03:47:50 +0200
commit113bff3c4dcc1976f24df16d4224e1871e665ae0 (patch)
treed10c16f03daf9eda07e65cf53198e7a4cd4742f6 /viewer/.eslintrc.js
parent53bbb2b65e405aa93f1689faabce9cfa019e6d8f (diff)
downloadldgallery-113bff3c4dcc1976f24df16d4224e1871e665ae0.tar.gz
viewer: tabSize, quote-props, quotes, object-curly-spacing
Diffstat (limited to 'viewer/.eslintrc.js')
-rw-r--r--viewer/.eslintrc.js37
1 files changed, 21 insertions, 16 deletions
diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js
index e1ad89b..113ff6a 100644
--- a/viewer/.eslintrc.js
+++ b/viewer/.eslintrc.js
@@ -6,30 +6,35 @@ module.exports = {
6 }, 6 },
7 7
8 extends: [ 8 extends: [
9 'plugin:vue/essential', 9 "plugin:vue/essential",
10 '@vue/typescript' 10 "@vue/typescript"
11 ], 11 ],
12 12
13 rules: { 13 rules: {
14 "no-console": "off", 14 "no-console": "off",
15 "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", 15 "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
16 'eol-last': ['warn', 'always'], 16 "eol-last": ["warn", "always"],
17 'vue/attribute-hyphenation': 'warn', 17 "object-curly-spacing": ["warn", "always"],
18 'vue/html-closing-bracket-spacing': 'warn', 18 "indent": ["warn", 2, { "SwitchCase": 1 }],
19 'vue/html-end-tags': 'error', 19 "quote-props": ["warn", "as-needed"],
20 'vue/html-quotes': 'warn', 20 "quotes": ["warn", "double"],
21 'vue/html-self-closing': 'off', 21 "vue/attribute-hyphenation": "warn",
22 'vue/no-multi-spaces': 'warn', 22 "vue/html-closing-bracket-spacing": "warn",
23 'vue/no-spaces-around-equal-signs-in-attribute': 'warn', 23 "vue/html-end-tags": "error",
24 'vue/no-template-shadow': 'error', 24 "vue/html-quotes": "warn",
25 'vue/v-bind-style': 'warn', 25 "vue/html-self-closing": "off",
26 'vue/v-on-style': 'warn', 26 "vue/no-multi-spaces": "warn",
27 'vue/attributes-order': 'warn', 27 "vue/no-spaces-around-equal-signs-in-attribute": "warn",
28 'vue/this-in-template': 'warn', 28 "vue/no-template-shadow": "error",
29 "vue/v-bind-style": "warn",
30 "vue/v-on-style": "warn",
31 "vue/attributes-order": "warn",
32 "vue/this-in-template": "warn",
29 }, 33 },
30 34
31 parserOptions: { 35 parserOptions: {
32 parser: '@typescript-eslint/parser', 36 sourceType: "module",
37 parser: "@typescript-eslint/parser",
33 }, 38 },
34 39
35}; 40};