From 113bff3c4dcc1976f24df16d4224e1871e665ae0 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Mon, 27 Apr 2020 22:23:10 +0200 Subject: viewer: tabSize, quote-props, quotes, object-curly-spacing --- viewer/.eslintrc.js | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) (limited to 'viewer/.eslintrc.js') diff --git a/viewer/.eslintrc.js b/viewer/.eslintrc.js index e1ad89b..113ff6a 100644 --- a/viewer/.eslintrc.js +++ b/viewer/.eslintrc.js @@ -6,30 +6,35 @@ module.exports = { }, extends: [ - 'plugin:vue/essential', - '@vue/typescript' + "plugin:vue/essential", + "@vue/typescript" ], rules: { "no-console": "off", "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", - 'eol-last': ['warn', 'always'], - 'vue/attribute-hyphenation': 'warn', - 'vue/html-closing-bracket-spacing': 'warn', - 'vue/html-end-tags': 'error', - 'vue/html-quotes': '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', - 'vue/v-bind-style': 'warn', - 'vue/v-on-style': 'warn', - 'vue/attributes-order': 'warn', - 'vue/this-in-template': 'warn', + "eol-last": ["warn", "always"], + "object-curly-spacing": ["warn", "always"], + "indent": ["warn", 2, { "SwitchCase": 1 }], + "quote-props": ["warn", "as-needed"], + "quotes": ["warn", "double"], + "vue/attribute-hyphenation": "warn", + "vue/html-closing-bracket-spacing": "warn", + "vue/html-end-tags": "error", + "vue/html-quotes": "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", + "vue/v-bind-style": "warn", + "vue/v-on-style": "warn", + "vue/attributes-order": "warn", + "vue/this-in-template": "warn", }, parserOptions: { - parser: '@typescript-eslint/parser', + sourceType: "module", + parser: "@typescript-eslint/parser", }, }; -- cgit v1.2.3