-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
47 lines (47 loc) · 1.03 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
{
"root": true,
"parser": "babel-eslint",
"env": {
"es6": true,
"node": true,
"browser": true
},
"plugins": [
"react"
],
"settings": {
"react": {
"createClass": "createReactClass",
// Regex for Component Factory to use,
// default to "createReactClass"
"pragma": "React",
// Pragma to use, default to "React"
"version": "16.4.1",
// React version, default to the latest React stable release
"flowVersion": "0.75.0"
// Flow version
},
"propWrapperFunctions": [
"forbidExtraProps"
]
// The names of any functions used to wrap the
// propTypes object, e.g. `forbidExtraProps`.
// If this isn't set, any propTypes wrapped in
// a function will be skipped.
},
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"parserOptions.ecmaVersion": true
}
},
"rules": {
// overrides
}
}