-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.json
69 lines (69 loc) · 1.87 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
{
"extends": [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"prettier"
],
"plugins": [
"@typescript-eslint",
"prettier",
"import"
],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"prettier/prettier": ["warn"],
"no-unused-vars": "off", // https://github.com/typescript-eslint/typescript-eslint/issues/2621
"no-use-before-define": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"import/no-duplicates": ["error", {"prefer-inline": true}],
"import/no-unresolved": "off",
"import/consistent-type-specifier-style": ["error", "prefer-inline"],
"import/order": ["error", {
"pathGroups": [
{ "pattern": "/lib/xp/**", "group": "external", "position": "after"},
{ "pattern": "/lib/**", "group": "internal", "position": "before"},
{ "pattern": "/site/**", "group": "internal", "position": "after"}
],
"groups": ["builtin", "external", "internal", "parent", "sibling", "index", "object"]
}],
"import/newline-after-import": ["error", { "count": 1 }],
"complexity": ["warn", 20]
},
"globals": {
"require": true,
"log": true,
"exports": true,
"resolve": true,
"app": true,
"document": true,
"window": true,
"__": true
},
"overrides": [
{
"plugins":[
"react",
"prettier"
],
"files": "*.jsx",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"google",
"plugin:react/recommended",
"./common.eslintrc.json",
"prettier"
],
"rules": {
"react/display-name": "off"
}
}
]
}