diff options
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"] + } +} |