aboutsummaryrefslogtreecommitdiff
path: root/viewer/.eslintrc.js
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/.eslintrc.js')
-rw-r--r--viewer/.eslintrc.js38
1 files changed, 22 insertions, 16 deletions
diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js
index 996c4f3..a67de5e 100644
--- a/viewer/.eslintrc.js
+++ b/viewer/.eslintrc.js
@@ -5,30 +5,36 @@ module.exports = {
5 node: true, 5 node: true,
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 'vue/attribute-hyphenation': 'warn', 16 "eol-last": ["warn", "always"],
17 'vue/html-closing-bracket-spacing': 'warn', 17 "object-curly-spacing": ["warn", "always"],
18 'vue/html-end-tags': 'error', 18 "quote-props": ["warn", "as-needed"],
19 'vue/html-quotes': 'warn', 19 indent: ["warn", 2, { SwitchCase: 1 }],
20 'vue/html-self-closing': 'off', 20 quotes: ["warn", "double"],
21 'vue/no-multi-spaces': 'warn', 21 "vue/attribute-hyphenation": "warn",
22 'vue/no-spaces-around-equal-signs-in-attribute': 'warn', 22 "vue/html-closing-bracket-spacing": "warn",
23 'vue/no-template-shadow': 'error', 23 "vue/html-end-tags": "error",
24 'vue/v-bind-style': 'warn', 24 "vue/html-quotes": "warn",
25 'vue/v-on-style': 'warn', 25 "vue/html-self-closing": "off",
26 'vue/attributes-order': 'warn', 26 "vue/no-multi-spaces": "warn",
27 'vue/this-in-template': 'warn' 27 "vue/no-spaces-around-equal-signs-in-attribute": "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",
28 }, 33 },
29 34
30 parserOptions: { 35 parserOptions: {
31 parser: '@typescript-eslint/parser', 36 sourceType: "module",
37 parser: "@typescript-eslint/parser",
32 }, 38 },
33 39
34}; 40};