-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
86 lines (86 loc) · 2.1 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
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"globals": {
"describe": "readonly",
"it": "readonly",
"expect": "readonly",
"defineOptions": "readonly"
},
"extends": ["prettier", "plugin:@typescript-eslint/recommended"],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"parser": {
"js": "espree",
"ts": "@typescript-eslint/parser",
"<template>": "espree"
}
},
"plugins": ["import", "unused-imports", "@typescript-eslint"],
"rules": {
"camelcase": "warn",
"eqeqeq": "warn",
"init-declarations": "warn",
"no-nested-ternary": "warn",
"no-await-in-loop": "warn",
"no-cond-assign": "warn",
"no-const-assign": "warn",
"no-constant-condition": "warn",
"no-dupe-keys": "warn",
"no-else-return": "warn",
"no-empty": "warn",
"no-empty-function": "warn",
"no-ex-assign": "warn",
"no-extra-boolean-cast": "warn",
"no-fallthrough": "warn",
"no-func-assign": "warn",
"no-irregular-whitespace": "warn",
"no-param-reassign": "warn",
"no-parsing-error": "off",
"no-return-await": "warn",
"no-script-url": "warn",
"no-self-assign": "warn",
"no-self-compare": "warn",
"no-undef": "warn",
"no-unreachable": "warn",
"no-unsafe-negation": "warn",
"no-unused-expressions": "warn",
"no-use-before-define": "warn",
"no-useless-concat": "warn",
"no-useless-return": "warn",
"no-var": "warn",
"@typescript-eslint/no-empty-function": "warn",
"yoda": "warn",
"unused-imports/no-unused-imports": "warn",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"parent",
"sibling",
"index",
"object",
"type"
],
"pathGroups": [
{
"pattern": "@/**",
"group": "parent",
"position": "before"
}
],
"alphabetize": {
"order": "asc"
},
"newlines-between": "always"
}
],
"import/no-duplicates": "error"
}
}