aboutsummaryrefslogtreecommitdiff
path: root/viewer/.eslintrc.js
diff options
context:
space:
mode:
authorpacien2022-09-03 01:34:26 +0200
committerpacien2022-09-03 01:34:26 +0200
commita8452594c6571e8003baa2aca14747eeeee08152 (patch)
treea894d99c22a601197869c7a6928d40bb4ae2c392 /viewer/.eslintrc.js
parentdd9c9804e9e3da9880c711f53edb9c4a19d782f8 (diff)
parent00510820a2794efcadbc83f7f8b54318fe198ecb (diff)
downloadldgallery-a8452594c6571e8003baa2aca14747eeeee08152.tar.gz
Merge branch 'vue3-refactoring-staging' into develop
Reviewed-by: pacien <pacien.trangirard@pacien.net>
Diffstat (limited to 'viewer/.eslintrc.js')
-rw-r--r--viewer/.eslintrc.js45
1 files changed, 14 insertions, 31 deletions
diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js
index 9d3fbbc..0308e3f 100644
--- a/viewer/.eslintrc.js
+++ b/viewer/.eslintrc.js
@@ -1,39 +1,22 @@
1module.exports = { 1module.exports = {
2 root: true, 2 root: true,
3
4 env: { 3 env: {
5 node: true, 4 node: true,
6 }, 5 },
7 6 extends: [
8 plugins: ["prettier"], 7 'plugin:vue/vue3-recommended',
9 8 '@vue/standard',
10 extends: ["plugin:vue/essential", "plugin:prettier/recommended", "@vue/typescript"], 9 '@vue/typescript/recommended',
11 10 ],
12 rules: {
13 "no-console": "off",
14 "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
15 "prettier/prettier": "warn",
16 "eol-last": ["warn", "always"],
17 "object-curly-spacing": ["warn", "always"],
18 "quote-props": ["warn", "as-needed"],
19 indent: ["warn", 2, { SwitchCase: 1 }],
20 quotes: ["warn", "double"],
21 "vue/attribute-hyphenation": "warn",
22 "vue/html-closing-bracket-spacing": "warn",
23 "vue/html-end-tags": "error",
24 "vue/html-quotes": "warn",
25 "vue/html-self-closing": "off",
26 "vue/no-multi-spaces": "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",
33 },
34
35 parserOptions: { 11 parserOptions: {
36 sourceType: "module", 12 ecmaVersion: 2020,
37 parser: "@typescript-eslint/parser", 13 },
14 rules: {
15 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
16 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
17 semi: ['warn', 'always'],
18 'space-before-function-paren': ['warn', 'never'],
19 'no-use-before-define': ['warn', 'nofunc'],
20 'comma-dangle': ['warn', 'always-multiline'],
38 }, 21 },
39}; 22};