-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
34 lines (34 loc) · 1.2 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
{
"parser" : "babel-eslint",
"plugins": [
"react-native"
],
"extends" : ["airbnb"],
"rules": {
// Soft some rules.
"comma-dangle": 0, // Nobody cares about commas.
"default-case": 0, // Required default case is nonsense.
"global-require": 0, // Used by webpack-isomorphic-tools and React Native.
"new-cap": [2, {"capIsNew": false, "newIsCap": true}], // For Record() etc.
"no-class-assign": 0, // Class assign is used for higher order components.
"no-confusing-arrow": 0, // No, this is not confusing.
"no-floating-decimal": 0, // .5 is just fine.
"no-nested-ternary": 0, // It's nice for JSX.
"no-param-reassign": 0, // We love param reassignment. Naming is hard.
"no-shadow": 0, // Shadowing is a nice language feature. Naming is hard.
"no-underscore-dangle": 0, // It's classic pattern to denote private props.
"react/prefer-stateless-function": 0, // We are not there yet.
// React Native.
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
},
"globals": {
"after": false,
"afterEach": false,
"before": false,
"beforeEach": false,
"describe": false,
"it": false,
"require": false
}
}