-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.eslintrc
93 lines (93 loc) · 1.73 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"root": true,
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"airbnb-base"
],
"env": {
"node": true,
"es6": true,
"browser": true,
"jest": true
},
"globals": {
"expect": false
},
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true
}
},
"plugins": [
"react"
],
"rules": {
"curly": [
"error",
"multi-line"
],
"indent": [
"error",
2
],
"eol-last": "error",
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"import/extensions": "error",
"import/no-extraneous-dependencies": "off",
"import/no-named-as-default": "off",
"no-unused-expressions": "off",
"class-methods-use-this": 0,
"import/no-unresolved": [
"error",
{
"commonjs": true
}
],
"max-len": [
"error",
80,
2
],
"new-cap": "error",
"no-param-reassign": "off",
"no-trailing-spaces": "warn",
"no-underscore-dangle": "error",
"one-var": "off",
"one-var-declaration-per-line": "off",
"prefer-const": "warn",
"consistent-return": 0,
"arrow-body-style": 2,
"require-jsdoc": [
"error",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true
}
}
],
"semi": [
"error",
"always"
],
"quotes": [
"error",
"single"
],
"valid-jsdoc": [
"error",
{
"requireReturn": true,
"requireReturnType": true,
"requireParamDescription": false,
"requireReturnDescription": true
}
]
}
}