-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
35 lines (34 loc) · 1.07 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
module.exports = {
"extends": [
"airbnb-base",
"plugin:jest-formatting/recommended",
"plugin:jest/style",
"plugin:jest/all",
],
"plugins": ["jest"],
"env": { "jest": true },
"rules": {
"import/no-extraneous-dependencies": "off",
"array-bracket-spacing": "off",
"arrow-parens": ["warn", "as-needed"],
"comma-dangle": ["error", "always-multiline"],
"consistent-return": "off",
"indent": ["error", 2, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"object-curly-newline": "off",
"padded-blocks": ["warn", { "classes": "always" }],
"quotes": ["warn", "single", { "avoidEscape": true }],
"semi": ["warn", "never"],
"space-before-function-paren": ["warn", {
"anonymous": "always",
"named": "ignore",
"asyncArrow": "always"
}],
"no-underscore-dangle": "off",
// jest rules (all are enabled by default via the extends section above)
"jest/no-hooks": "off",
"jest/consistent-test-it": "warn",
"jest/prefer-expect-assertions": "off",
"jest/lowercase-name": "off",
},
}