aboutsummaryrefslogtreecommitdiff
path: root/viewer/.eslintrc.js
diff options
context:
space:
mode:
authorZero~Informatique2019-12-21 11:04:14 +0100
committerZero~Informatique2019-12-21 11:04:14 +0100
commit91d3148f97ca59769648f9307f3d7e65b1bd7e95 (patch)
tree661863c39c630346771a88b2702ec1e18ad4f584 /viewer/.eslintrc.js
parent3f21d10338afe8eab699aaaea060556579e4b3c3 (diff)
downloadldgallery-91d3148f97ca59769648f9307f3d7e65b1bd7e95.tar.gz
viewer:
ESLint rules
Diffstat (limited to 'viewer/.eslintrc.js')
-rw-r--r--viewer/.eslintrc.js24
1 files changed, 22 insertions, 2 deletions
diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js
index be91544..76f59fd 100644
--- a/viewer/.eslintrc.js
+++ b/viewer/.eslintrc.js
@@ -1,14 +1,34 @@
1module.exports = { 1module.exports = {
2 root: true, 2 root: true,
3
3 env: { 4 env: {
4 node: true, 5 node: true,
5 }, 6 },
6 extends: ["plugin:vue/essential", "@vue/typescript"], 7
8 'extends': [
9 'plugin:vue/essential',
10 '@vue/typescript'
11 ],
12
7 rules: { 13 rules: {
8 "no-console": process.env.NODE_ENV === "production" ? "error" : "off", 14 "no-console": process.env.NODE_ENV === "production" ? "error" : "off",
9 "no-debugger": process.env.NODE_ENV === "production" ? "error" : "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': 'warn',
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'
10 }, 28 },
29
11 parserOptions: { 30 parserOptions: {
12 parser: "@typescript-eslint/parser", 31 parser: '@typescript-eslint/parser',
13 }, 32 },
33
14}; 34};