-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
62 lines (62 loc) · 1.4 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
{
"root": true,
"parser": "@typescript-eslint/parser",
"extends": ["plugin:@typescript-eslint/recommended", "prettier", "plugin:import/recommended"],
"settings": {
"import/resolver": {
"typescript": true,
"node": true
},
"import/extensions": [".ts", ".tsx"]
},
"env": {
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": "latest"
},
"ignorePatterns": ["node_modules"],
"rules": {
"@typescript-eslint/no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/consistent-type-imports": "error",
"camelcase": "error",
"eqeqeq": "error",
"import/order": [
"error",
{
"alphabetize": { "order": "asc" },
"groups": [["builtin", "external", "unknown"], ["parent", "sibling"], "internal", "type"],
"newlines-between": "always",
"named": true
}
],
"max-len": [
"error",
{
"code": 135,
"tabWidth": 0,
"ignorePattern": "(?:^\\t*(?:let|const) [a-zA-Z]*(?:HTML|[mM]essage) \\+?= (['\"`])[^\\n]*?\\1;$|^\\t*help: (['\"`])[^\\n]*?\\2[;,]$)"
}
],
"no-console": "error",
"no-restricted-imports": ["error", { "patterns": [".*"] }],
"no-unreachable": "error",
"no-unused-expressions": "error",
"no-var": "error",
"prefer-const": [
"error",
{
"destructuring": "all",
"ignoreReadBeforeAssign": true
}
],
"spaced-comment": ["error", "always"],
"yoda": ["error", "never"]
}
}