-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.eslintrc
More file actions
44 lines (44 loc) · 913 Bytes
/
.eslintrc
File metadata and controls
44 lines (44 loc) · 913 Bytes
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
{
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"env": {
"browser": true
},
"plugins": [
"react",
"react-native"
],
"extends": [
"eslint:recommended",
"plugin:react/recommended"
],
"rules": {
"arrow-parens": 2,
"react/jsx-no-bind": "error",
"react/prefer-es6-class": [
1,
"always"
],
"react/prefer-stateless-function": [
1,
{
"ignorePureComponents": true
}
],
"react/jsx-pascal-case": [
1
],
"react/jsx-closing-bracket-location": 1,
"jsx-quotes": [
"error",
"prefer-double"
]
}
}