-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
37 lines (32 loc) · 922 Bytes
/
.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
{
"parser": "babel-eslint",
"ecmaFeatures": {
"jsx": true
},
"env": {
"es6": true,
"jest": true
},
"globals": {
"fetch": false
},
"plugins": [
"react",
"react-native"
],
"extends": "airbnb",
"rules": {
// check https://github.com/fbsamples/f8app/blob/master/.eslintrc
// before adding rules here
"no-underscore-dangle": 0,
"arrow-parens": 0,
"camelcase": 0,
"comma-dangle": ["error", "never"],
"no-console": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/prefer-stateless-function": [0, { "ignorePureComponents": <ignorePureComponents> }],
"react/require-default-props": 0,
"class-methods-use-this": ["warn", {"exceptMethods": ["printNative", "hbSearch", "hbConnect", "hbDisconnect"]}],
"react/no-unused-prop-types": 0 // https://github.com/yannickcr/eslint-plugin-react/issues/885
}
}