-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
85 lines (85 loc) · 2.23 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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"env": {
"browser": false,
"commonjs": true,
"jest": true,
"es2021": true
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
},
"node": {
"paths": ["src"],
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
},
"extends": ["airbnb-base", "plugin:prettier/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12
},
"plugins": ["@typescript-eslint", "jest"],
"rules": {
"import/prefer-default-export": "off",
"import/order": ["error", {
"newlines-between": "always",
"pathGroups": [
{
"pattern": "@domains/**",
"group": "external",
"position": "after"
},
{
"pattern": "@infra/**",
"group": "external",
"position": "after"
},
{
"pattern": "@tests/**",
"group": "external",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": ["parent"],
"alphabetize": {
"order": "asc", /* sort in ascending order. Options: ['ignore', 'asc', 'desc'] */
"caseInsensitive": true /* ignore case. Options: [true, false] */
}
}],
"prettier/prettier": [
"error",
{
"endOfLine": "auto"
}
],
"no-useless-constructor": 0,
"no-empty-function": 0,
"no-underscore-dangle": 0,
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-useless-constructor": "error",
"multiline-ternary": 0,
"no-template-curly-in-string": 0,
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"import/no-unresolved": "error",
"import/export": 0,
"no-use-before-define": 0,
"no-redeclare": 0,
"max-classes-per-file": 0,
"class-methods-use-this": 0,
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"ts": "never"
}
]
}
}