This repository has been archived by the owner on May 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
59 lines (59 loc) · 1.56 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
{
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"amd": true,
"browser": true,
"node": true,
"es6": true
},
"globals": {
"guardian": true,
"curl": true,
"Promise": true
},
"rules": {
"curly": [
2,
"all"
],
"no-console": 0,
"no-trailing-spaces": 0,
"quotes": [
2,
"single"
],
"wrap-iife": 2,
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
"react/prop-types" : "warn" //This will be switched off as soon as we've fixed all the violations.
},
"settings": {
"react": {
"createClass": "createReactClass", // Regex for Component Factory to use,
// default to "createReactClass"
"pragma": "React", // Pragma to use, default to "React"
"version": "16.0", // React version, default to the latest React stable release
"flowVersion": "0.53" // 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.
},
"plugins": [
"react"
]
}