-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
111 lines (111 loc) · 2.47 KB
/
.eslintrc.json
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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"env": {
"browser": true,
"es6": true
},
"extends": ["airbnb", "prettier", "prettier/react"],
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["prettier"],
"parser": "babel-eslint",
"rules": {
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx"]
}
],
"prettier/prettier": [
"error",
{
"trailingComma": "es5",
"singleQuote": true,
"printWidth": 120
}
],
"prefer-destructuring": [
"error",
{
"array": false,
"object": false
},
{
"enforceForRenamedProperties": false
}
],
"import/extensions": [
"error",
"always",
{
"js": "never"
}
],
"react/forbid-prop-types": 0,
"no-nested-ternary": 0,
"no-param-reassign": 0,
"except-parens": 0,
"comma-dangle": ["error", "always-multiline"],
"space-before-function-paren": [
"error",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"no-undefined": 0,
"no-use-before-define": 0,
"allowImplicit": true,
"array-callback-return": 0,
"no-useless-escape": 0,
"no-fallthrough": ["error", { "commentPattern": "break[\\s\\w]*omitted" }],
"react/jsx-uses-vars": 2,
"react/jsx-indent-props": [2, 2],
"react/display-name": [0, { "ignoreTranspilerName": false }],
"no-dynamic-require": 0,
"max-len": 0,
"no-underscore-dangle": 0,
"strict": 0,
"key-spacing": 0,
"padded-blocks": 0,
"global-require": 0,
"consistent-return": 0,
"guard-for-in": 0,
"no-restricted-syntax": 0,
"brace-style": 0,
"curly": ["error", "multi-line"],
"no-confusing-arrow": 0,
"prefer-rest-params": 0,
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"linebreak-style": ["off", "unix"],
"react/prop-types": 0,
"no-console": 0,
"class-methods-use-this": [
"error",
{
"exceptMethods": [
"componentDidMount",
"componentDidUpdate",
"componentWillMount",
"componentWillReceiveProps",
"componentWillUnmount",
"componentWillUpdate",
"render",
"shouldComponentUpdate"
]
}
]
},
"globals": {
"shallow": true,
"render": true,
"mount": true,
"__DEV__": true,
"FormData": true
}
}