-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc.js
37 lines (35 loc) · 999 Bytes
/
.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
37
module.exports = {
"extends": "airbnb-base",
"plugins": ["jest"],
"rules": {
// overrides
"semi": ["error", "never"],
"quotes": ["warn", "single"],
"func-names": ["error", "never"],
"arrow-parens": ["error", "as-needed"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"object-curly-newline": ["error", { "multiline": true }],
"operator-linebreak": ["error", "before"],
"comma-dangle": ["error", {
"arrays": "always",
"objects": "always",
"imports": "always",
"exports": "always",
"functions": "never"
}],
"no-underscore-dangle": [2, { "allowAfterThis": true }],
// jest
"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",
},
"env": {
"jest/globals": true,
},
}