-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.json
44 lines (41 loc) · 1.16 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
{
"env": {
"browser": true,
"node": true,
"jest": true
},
"plugins": ["import", "no-only-tests"],
"extends": ["airbnb-base", "plugin:prettier/recommended"],
"rules": {
"no-unused-vars": [
1,
{
"argsIgnorePattern": "res|next|^err|_",
"ignoreRestSiblings": true
}
],
"no-use-before-define": 0,
"semi": 0,
"import/no-unresolved": "off",
"import/extensions": "off",
"comma-dangle": ["error", "always-multiline"],
"import/no-extraneous-dependencies": [
"error",
{ "devDependencies": ["**/*.test.js", "**/testutils/**", "cypress.config.ts"] }
],
"no-only-tests/no-only-tests": "error",
"prettier/prettier": [
"error",
{
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"semi": false
}
],
"no-empty-function": ["error", { "allow": ["constructors", "arrowFunctions"] }],
"global-require": 0, // lots of these are used for jest mocking
"func-names": 0, // these are used everywhere, 1272 results at last count and checking each one for 'this' usage is not worth it
"no-param-reassign": "off"
}
}