-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
35 lines (34 loc) · 1.11 KB
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* eslint-env node */
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
"root": true,
"extends": [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/eslint-config-typescript/recommended",
],
"env": {
"vue/setup-compiler-macros": true,
},
"rules": {
"arrow-parens": [ "error", "always" ],
"arrow-spacing": [ "error", { "before": true, "after": true }],
"block-spacing": "error",
"brace-style": "error",
"comma-dangle": [ "error", "always-multiline" ],
"comma-spacing": [ "error", { "before": false, "after": true }],
"comma-style": [ "error", "last" ],
"dot-location": [ "error", "property" ],
"eol-last": "error",
"func-call-spacing": "error",
"indent": [ "error", 2 ],
"key-spacing": [ "error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": [ "error", { "before": true, "after": true }],
"no-multi-spaces": "error",
"no-multiple-empty-lines": "error",
"no-tabs": "error",
"no-trailing-spaces": "error",
"quotes": [ "error", "single" ],
"semi": [ "error", "never" ],
},
}