-
Notifications
You must be signed in to change notification settings - Fork 14
/
.eslintrc
59 lines (59 loc) · 1.97 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{
"root": true,
"env": {
"browser": true,
"es6": true,
"jest/globals": true
},
"parserOptions": {
"sourceType": "module",
"modules": true,
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"plugins": [
"jest"
],
"extends": "airbnb-base",
"rules": {
"arrow-body-style": "off",
"arrow-parens": ["error", "always"],
"comma-dangle": ["error", "never"],
"default-case": "off",
"indent": ["error", 4, { "SwitchCase": 1 }],
"max-len": ["error", 250, {"ignoreComments": true, "ignoreTemplateLiterals": true}],
"no-console": 0,
"no-new": "off",
"no-use-before-define": ["error", {"functions": false, "classes": true}],
"no-trailing-spaces": ["error", {"skipBlankLines": true}],
"linebreak-style": ["error", "unix"],
"object-curly-spacing": ["error", "never"],
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}],
"no-param-reassign": ["error", { "props": true }],
"import/prefer-default-export": "off",
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["gulpfile.babel.js"]}],
"import/no-dynamic-require": "off",
"global-require": "off",
"func-names": "off",
"no-restricted-syntax": "off",
"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",
"quote-props": "off",
"no-await-in-loop": "off",
"class-methods-use-this": "off",
"padded-blocks": "off"
},
"globals": {"module": true, "jest": true}
}