-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
executable file
·131 lines (125 loc) · 3.39 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
{
"root": true,
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"globals": {
"document": true,
"window": true,
"localStorage": true,
"defineEmits": true,
"defineProps": true,
"defineExpose": true,
"defineOptions": true
},
"plugins": ["promise"],
"extends": [
"./.eslintrc-auto-import.json",
"standard",
"eslint:recommended",
"plugin:@tanstack/eslint-plugin-query/recommended",
"plugin:import/recommended",
"plugin:unicorn/recommended",
"plugin:promise/recommended",
"plugin:prettier/recommended",
"plugin:vue/vue3-recommended",
"plugin:oxlint/recommended"
],
"parser": "vue-eslint-parser",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": "latest",
"ecmaFeatures": {
"jsx": true,
"tsx": true
},
"vueFeatures": {}
},
"overrides": [
{
"files": ["**/__tests__/**"],
"env": {
"jest": true
}
}
],
"rules": {
"no-var": "error",
"no-void": "error",
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-bitwise": "off",
"no-console": "off",
"no-constant-condition": ["error", { "checkLoops": false }],
"no-plusplus": "off",
"no-param-reassign": ["off"],
"no-unused-vars": ["error", { "varsIgnorePattern": ".*", "args": "none" }],
"no-unexpected-multiline": "error",
"no-useless-escape": "off",
"no-useless-return": "off",
"no-multiple-empty-lines": ["warn", { "max": 2 }],
"no-async-promise-executor": "off",
"no-template-curly-in-string": "off",
"prefer-const": ["warn", { "destructuring": "all", "ignoreReadBeforeAssign": true }],
"prefer-template": "error",
"block-scoped-var": "error",
"linebreak-style": ["error", "unix"],
"object-shorthand": "off",
"space-before-function-paren": 0,
"vue/require-default-prop": "off",
"vue/require-explicit-emits": "off",
"vue/no-v-html": "off",
"vue/no-v-text-v-html-on-component": "off",
"vue/prefer-import-from-vue": "off",
"vue/singleline-html-element-content-newline": "off",
"vue/multi-word-component-names": "off",
"vue/max-attributes-per-line": [
"error",
{
"singleline": {
"max": 10
}
}
],
"vue/html-self-closing": [
"error",
{
"html": {
"void": "always",
"normal": "always",
"component": "always"
},
"svg": "always",
"math": "always"
}
],
"prettier/prettier": "error",
"import/first": "error",
"import/extensions": "off",
"import/newline-after-import": ["error", { "count": 1 }],
"import/no-duplicates": "error",
"import/no-unresolved": [0],
"import/no-absolute-path": "off",
"import/no-named-as-default": "off",
"import/no-extraneous-dependencies": "off",
"import/order": [
"error",
{
"groups": ["builtin", "external", "internal", ["parent", "sibling"], "index", "object", "type", "unknown"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"orderImportKind": "asc",
"caseInsensitive": false
}
}
],
"unicorn/prefer-ternary": ["error", "only-single-line"],
"unicorn/prevent-abbreviations": "off",
"promise/always-return": "off",
"promise/catch-or-return": "off",
"promise/no-nesting": "off"
}
}