-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.json
42 lines (42 loc) · 1.54 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
{
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript"
],
"plugins": [
"@typescript-eslint",
"import"
],
"rules": {
"no-multiple-empty-lines": [
"error", { "max": 1, "maxBOF": 0, "maxEOF": 0 }
],
"import/no-unresolved": [
"error", { "ignore": ["\\.png", "\\.css"] }
],
"import/order": [
"error", {
"groups": ["builtin", "external", "internal", ["sibling", "parent"], "index", "unknown"],
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
},
"pathGroups": [
{ "pattern": "@nestjs/*", "group": "external", "position": "before" },
{ "pattern": "react*", "group": "external", "position": "before" },
{ "pattern": "productboard-*", "group": "external", "position": "after" }
],
"pathGroupsExcludedImportTypes": [
"@nestjs/common", "@nestjs/core", "@nestjs/passport", "@nestjs/platform-express", "@nestjs/swagger",
"react", "react-dom", "react-router", "react-router-dom", "react-helmet",
"productboard-common", "productboard-database"
]
}
]
},
"parser": "@typescript-eslint/parser",
"root": true
}