-
Notifications
You must be signed in to change notification settings - Fork 57
/
.eslintrc.json
130 lines (130 loc) · 2.97 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
{
"root": true,
"env": {
"browser": true,
"jest/globals": true
},
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 2020
},
"extends": ["airbnb", "prettier"],
"plugins": ["prettier", "jest"],
"rules": {
"max-len": 0,
"no-plusplus": 0,
"no-bitwise": 0,
"no-unused-expressions": 0,
"prettier/prettier": 2,
"react/destructuring-assignment": [0, "always"],
"react/prop-types": 0,
"react/no-deprecated": 0,
"import/no-extraneous-dependencies": [2, { "devDependencies": true }],
"import/no-dynamic-require": 0,
"jest/no-disabled-tests": "warn",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "error",
"jest/prefer-to-have-length": "warn",
"jest/valid-expect": "error"
},
"globals": {
"__NEBULA_DEV__": false
},
"overrides": [
{
"files": ["apis/**/*", "packages/**/*", "commands/create/**/*", "commands/sense/src/**/*"],
"rules": {
"jest/valid-expect": 0,
"jest/no-identical-title": 0
}
},
{
"files": ["scripts/**/*", "**/apis/*/scripts/**/*"],
"rules": {
"no-restricted-syntax": 0
}
},
{
"files": ["apis/**/*"],
"rules": {
"no-console": "error"
}
},
{
"files": ["apis/*/index.js"],
"rules": {
"global-require": 0
}
},
{
"files": ["commands/sense/src/*.js"],
"rules": {
"no-var": 0,
"import/no-amd": 0
},
"globals": {
"define": false
}
},
{
"files": ["commands/serve/web/**/*.{js,jsx}"],
"rules": {
"arrow-body-style": 1,
"no-use-before-define": 1,
"react/function-component-definition": 0,
"import/prefer-default-export": 1,
"import/no-cycle": 1
}
},
{
"files": ["commands/serve/web/**/*.test.{js,jsx}", "commands/serve/web/utils/testRenderer.jsx"],
"rules": {
"import/no-extraneous-dependencies": 0,
"array-callback-return": 0
}
},
{
"files": ["**/*.{int,comp,spec}.{js,jsx}"],
"env": {
"browser": false,
"node": true,
"mocha": true
},
"globals": {
"chai": false,
"expect": false,
"sinon": false,
"aw": false,
"page": false
},
"plugins": ["mocha"],
"rules": {
"mocha/no-exclusive-tests": "error"
}
},
{
"files": ["**/*.{int,comp}.js"],
"env": {
"browser": true
}
},
{
"files": ["**/templates/**/*.js"],
"rules": {
"import/no-unresolved": 0,
"import/extensions": 0,
"import/no-extraneous-dependencies": 0
}
},
{
"files": ["**/website/**/*.js"],
"rules": {
"react/jsx-filename-extension": 0,
"react/no-multi-comp": 0,
"react/prefer-stateless-function": 0,
"import/no-extraneous-dependencies": 0,
"import/no-unresolved": 0
}
}
]
}