aboutsummaryrefslogtreecommitdiff
path: root/viewer/.eslintrc.js
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/.eslintrc.js')
-rw-r--r--viewer/.eslintrc.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js
new file mode 100644
index 0000000..996c4f3
--- /dev/null
+++ b/viewer/.eslintrc.js
@@ -0,0 +1,34 @@
1module.exports = {
2 root: true,
3
4 env: {
5 node: true,
6 },
7
8 'extends': [
9 'plugin:vue/essential',
10 '@vue/typescript'
11 ],
12
13 rules: {
14 "no-console": "off",
15 "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
16 'vue/attribute-hyphenation': 'warn',
17 'vue/html-closing-bracket-spacing': 'warn',
18 'vue/html-end-tags': 'error',
19 'vue/html-quotes': 'warn',
20 'vue/html-self-closing': 'off',
21 'vue/no-multi-spaces': 'warn',
22 'vue/no-spaces-around-equal-signs-in-attribute': 'warn',
23 'vue/no-template-shadow': 'error',
24 'vue/v-bind-style': 'warn',
25 'vue/v-on-style': 'warn',
26 'vue/attributes-order': 'warn',
27 'vue/this-in-template': 'warn'
28 },
29
30 parserOptions: {
31 parser: '@typescript-eslint/parser',
32 },
33
34};