From b183160763955596dbdf179524b75fc10ab2a03c Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 23 May 2021 21:53:08 +0200 Subject: Frontend used Vue.js & Added ESLint --- .eslintrc.json | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .eslintrc.json (limited to '.eslintrc.json') diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..4a59fc5 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,38 @@ +{ + "root": true, + "env": { + "browser": true, + "es2021": true, + "node": true + }, + "extends": ["eslint:recommended", "plugin:vue/vue3-strongly-recommended"], + "parserOptions": { + "ecmaVersion": 12, + "sourceType": "module" + }, + "plugins": ["vue"], + "rules": { + "curly": "warn", + "array-bracket-newline": ["warn", "consistent"], + "array-bracket-spacing": ["warn", "always"], + "capitalized-comments": ["warn", "always"], + "implicit-arrow-linebreak": ["warn", "beside"], + "indent": ["warn", "tab"], + "linebreak-style": ["warn", "unix"], + "vue/max-attributes-per-line": ["warn", { + "singleline": { + "max": 2, + "allowFirstLine": true + }, + "multiline": { + "max": 2, + "allowFirstLine": false + } + }], + "vue/html-closing-bracket-newline": ["error", { + "singleline": "never", + "multiline": "never" + }], + "vue/html-indent": ["error", "tab"] + } +} -- cgit v1.2.3-18-g5258