-
-
Notifications
You must be signed in to change notification settings - Fork 95
/
.eslintrc.js
36 lines (36 loc) · 1 KB
/
.eslintrc.js
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
module.exports = {
extends: ["airbnb", "plugin:prettier/recommended"],
rules: {
"import/no-unresolved": "off",
"import/no-extraneous-dependencies": "off",
"import/extensions": "off",
indent: ["error", 2]
},
env: {
browser: true,
node: true
},
overrides: [
{
files: ["test/**"],
extends: ["plugin:jest/recommended", "plugin:jest/style"],
rules: {
"global-require": "off",
"jest/prefer-called-with": "error",
"jest/no-conditional-in-test": "error",
"jest/no-test-return-statement": "error",
"jest/prefer-expect-resolves": "error",
"jest/require-to-throw-message": "error",
"jest/require-top-level-describe": "error",
"jest/prefer-hooks-on-top": "error",
"jest/prefer-lowercase-title": [
"error",
{ ignoreTopLevelDescribe: true }
],
"jest/prefer-spy-on": "error",
"jest/prefer-strict-equal": "error",
"jest/prefer-todo": "error"
}
}
]
}