-
Notifications
You must be signed in to change notification settings - Fork 33
/
.eslintrc.json
59 lines (59 loc) · 1.54 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"root": true,
"extends": [
"./.eslintrc-auto-import.json",
"eslint:recommended",
"plugin:vue/vue3-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:tailwindcss/recommended",
"@vue/typescript/recommended",
"plugin:vue/vue3-essential",
"@vue/eslint-config-typescript",
"plugin:prettier/recommended"
],
"ignorePatterns": ["**/*.config.js"],
"plugins": ["@typescript-eslint", "prettier"],
"parser": "vue-eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"parser": "@typescript-eslint/parser"
},
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/consistent-type-imports": "warn",
"arrow-spacing": ["warn", { "before": true, "after": true }],
"no-var": "error",
"@typescript-eslint/no-explicit-any": "warn",
"keyword-spacing": "error",
"space-infix-ops": "error",
"space-unary-ops": "error",
"prefer-const": "error",
"object-curly-spacing": ["error", "always"],
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": "warn",
"vue/multi-word-component-names": "off",
"vue/max-attributes-per-line": "off",
"vue/first-attribute-linebreak": "off",
"vue/html-indent": [
"error",
"tab",
{
"attribute": 1,
"baseIndent": 1,
"closeBracket": 0,
"alignAttributesVertically": true,
"ignores": []
}
],
"vue/html-closing-bracket-newline": [
"warn",
{
"singleline": "never",
"multiline": "never"
}
],
"vue/v-on-event-hyphenation": "off",
"vue/attribute-hyphenation": "off",
"tailwindcss/no-custom-classname": "off"
}
}