forked from jestjs/jest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
37 lines (37 loc) · 1.14 KB
/
.eslintrc
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
{
"extends": "./node_modules/fbjs-scripts/eslint/.eslintrc.js",
"globals": {
"check": true,
"gen": true,
},
"parser": "babel-eslint",
"plugins": [
"babel"
],
"rules": {
"array-bracket-spacing": [2, "never"],
"arrow-spacing": [2],
"babel/arrow-parens": [2, "as-needed"],
"brace-style": [2, "1tbs", {"allowSingleLine": true}],
"comma-dangle": [2, "always-multiline"],
"comma-spacing": [2],
"comma-style": [2, "last"],
"computed-property-spacing": [2, "never"],
"eol-last": [2],
"max-len": [2, {"code": 80, "ignoreUrls": true, "ignorePattern": "^(\\s*const\\s.+=\\s*require\\s*\\(|\\s*it\\()"}],
"no-const-assign": [2],
"no-extra-parens": [2],
"no-irregular-whitespace": [2],
"no-this-before-super": [2],
"no-var": [2],
"object-curly-spacing": [2, "never"],
"object-shorthand": [2],
"prefer-arrow-callback": [2],
"prefer-const": [2],
"quotes": [2, "single", {"avoidEscape": true, "allowTemplateLiterals": true}],
"semi": [2, "always"],
"space-before-blocks": [2],
"space-before-function-paren": [2, "never"],
"space-in-parens": [2, "never"]
}
}