-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
71 lines (71 loc) · 2.01 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
{
"root": true,
"ignorePatterns": ["coverage", "dist", "node_modules"],
"env": { "node": true },
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:vue/vue3-recommended",
"plugin:prettier/recommended"
],
"plugins": ["@typescript-eslint", "tsdoc"],
"parser": "@typescript-eslint/parser",
"parserOptions": { "ecmaVersion": "latest" },
"rules": {
"eqeqeq": 1,
"guard-for-in": 1,
"no-inner-declarations": 0,
"no-template-curly-in-string": 1,
"no-undef": 0,
"no-useless-concat": 1,
"no-useless-rename": 1,
"object-shorthand": 1,
"prefer-rest-params": 1,
"prefer-template": 1,
"yoda": 1,
"@typescript-eslint/array-type": [1, { "default": "array-simple" }],
"@typescript-eslint/member-ordering": 1,
"@typescript-eslint/no-namespace": 0,
"@typescript-eslint/naming-convention": [
1,
{
"selector": "typeParameter",
"format": ["PascalCase"],
"prefix": ["T"]
},
{
"selector": "interface",
"format": ["PascalCase"],
"custom": { "regex": "^I[A-Z]", "match": false },
"leadingUnderscore": "allow"
}
],
"tsdoc/syntax": 1,
"prettier/prettier": 1,
"vue/component-tags-order": [
1,
{ "order": ["script:not([setup])", "script[setup]", "template", "style"] }
],
"vue/define-macros-order": 1,
"vue/eqeqeq": 1,
"vue/html-button-has-type": 1,
"vue/html-self-closing": [1, { "html": { "void": "any" } }],
"vue/no-boolean-default": 1,
"vue/no-dupe-keys": 0,
"vue/no-duplicate-attr-inheritance": 1,
"vue/no-unused-components": [1, { "ignoreWhenBindingPresent": true }],
"vue/no-v-html": 0,
"vue/space-infix-ops": 1,
"vue/v-on-event-hyphenation": [1, "always", { "autofix": true }]
},
"overrides": [
{
"files": "**/*.vue",
"parser": "vue-eslint-parser",
"parserOptions": {
"parser": "@typescript-eslint/parser",
"sourceType": "module"
}
}
]
}