-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.json
36 lines (36 loc) · 1.24 KB
/
.eslintrc.json
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
36
{
"root": true,
"env": {
"browser": true,
"es6": true
},
"parserOptions": {
"parser": "@typescript-eslint/parser",
"ecmaVersion": "latest",
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"extends": ["eslint:recommended", "@antfu/vue"],
"rules": {
"@typescript-eslint/brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"antfu/if-newline": "off",
"arrow-parens": ["error", "as-needed"],
"brace-style": ["error", "1tbs", {"allowSingleLine": true}],
"curly": ["warn", "multi-line"],
"eqeqeq": "off",
"no-console": "off",
"no-unexpected-multiline": "error",
"no-unused-expressions": "off",
"no-void": "off",
"quotes": ["warn", "single"],
"semi": ["error", "never"],
"space-before-function-paren": ["error", {"anonymous": "always", "named": "never", "asyncArrow": "always"}],
"vue/component-tags-order": ["warn", {"order": [["script", "template"], "style"]}],
"vue/html-self-closing": ["warn", {"html": {"void": "never","normal": "never","component": "always"},"svg": "never","math": "never"}],
"vue/no-deprecated-v-bind-sync": "off",
"vue/no-v-text-v-html-on-component": "off",
"vue/singleline-html-element-content-newline": "off"
}
}