diff options
author | HampusM <hampus@hampusmat.com> | 2021-05-23 21:53:08 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-05-23 21:53:08 +0200 |
commit | b183160763955596dbdf179524b75fc10ab2a03c (patch) | |
tree | 870a0c6fb1a61af8fc08a4c0be435f98ccfa1ed8 /.eslintrc.json | |
parent | 7e828a5eb04afe476e596cf88000e53c2f93f45e (diff) |
Frontend used Vue.js & Added ESLint
Diffstat (limited to '.eslintrc.json')
-rw-r--r-- | .eslintrc.json | 38 |
1 files changed, 38 insertions, 0 deletions
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"] + } +} |