From 7ae68f079ddfb74c9a1b17c4f30dfe4c258d4a9f Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 20 Dec 2019 17:47:04 +0100 Subject: Viewer project foundations --- viewer/.eslintrc.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 viewer/.eslintrc.js (limited to 'viewer/.eslintrc.js') diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js new file mode 100644 index 0000000..be91544 --- /dev/null +++ b/viewer/.eslintrc.js @@ -0,0 +1,14 @@ +module.exports = { + root: true, + env: { + node: true, + }, + extends: ["plugin:vue/essential", "@vue/typescript"], + rules: { + "no-console": process.env.NODE_ENV === "production" ? "error" : "off", + "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", + }, + parserOptions: { + parser: "@typescript-eslint/parser", + }, +}; -- cgit v1.2.3 From 91d3148f97ca59769648f9307f3d7e65b1bd7e95 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 21 Dec 2019 11:04:14 +0100 Subject: viewer: ESLint rules --- viewer/.eslintrc.js | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) (limited to 'viewer/.eslintrc.js') 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 @@ module.exports = { root: true, + env: { node: true, }, - extends: ["plugin:vue/essential", "@vue/typescript"], + + 'extends': [ + 'plugin:vue/essential', + '@vue/typescript' + ], + rules: { "no-console": process.env.NODE_ENV === "production" ? "error" : "off", "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", + 'vue/attribute-hyphenation': 'warn', + 'vue/html-closing-bracket-spacing': 'warn', + 'vue/html-end-tags': 'error', + 'vue/html-quotes': 'warn', + 'vue/html-self-closing': 'warn', + 'vue/no-multi-spaces': 'warn', + 'vue/no-spaces-around-equal-signs-in-attribute': 'warn', + 'vue/no-template-shadow': 'error', + 'vue/v-bind-style': 'warn', + 'vue/v-on-style': 'warn', + 'vue/attributes-order': 'warn', + 'vue/this-in-template': 'warn' }, + parserOptions: { - parser: "@typescript-eslint/parser", + parser: '@typescript-eslint/parser', }, + }; -- cgit v1.2.3 From dd7e1ec5bb5f9d8ad5aab2c99e80146958e592a0 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 21 Dec 2019 20:54:06 +0100 Subject: viewer: Fixed devServer for URL encoded filenames Disabled a buggy ESLint rule --- viewer/.eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'viewer/.eslintrc.js') diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js index 76f59fd..095216b 100644 --- a/viewer/.eslintrc.js +++ b/viewer/.eslintrc.js @@ -17,7 +17,7 @@ module.exports = { 'vue/html-closing-bracket-spacing': 'warn', 'vue/html-end-tags': 'error', 'vue/html-quotes': 'warn', - 'vue/html-self-closing': 'warn', + 'vue/html-self-closing': 'off', 'vue/no-multi-spaces': 'warn', 'vue/no-spaces-around-equal-signs-in-attribute': 'warn', 'vue/no-template-shadow': 'error', -- cgit v1.2.3 From e34be1261d9219e5b2b92ebe271f609f11d55f63 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sun, 22 Dec 2019 03:50:40 +0100 Subject: vewer: Tags indexing and search input --- viewer/.eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'viewer/.eslintrc.js') diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js index 095216b..996c4f3 100644 --- a/viewer/.eslintrc.js +++ b/viewer/.eslintrc.js @@ -11,7 +11,7 @@ module.exports = { ], rules: { - "no-console": process.env.NODE_ENV === "production" ? "error" : "off", + "no-console": "off", "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", 'vue/attribute-hyphenation': 'warn', 'vue/html-closing-bracket-spacing': 'warn', -- cgit v1.2.3