forked from este/este
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
49 lines (49 loc) · 1.82 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
{
"parser" : "babel-eslint",
"plugins": [
"flowtype",
"fp",
"react-native"
],
"extends" : [
"airbnb",
"plugin:flowtype/recommended"
],
"env": {
"jest": true
},
"rules": {
// Soft some rules.
"arrow-parens": 0, // Does not work with Flow generic types.
"global-require": 0, // Used by webpack-isomorphic-tools and React Native.
"import/first": 0, // Este sorts by atom/sort-lines natural order.
"import/no-duplicates": 2,
"import/prefer-default-export": 0, // No. Actions can have just one action.
"jsx-a11y/html-has-lang": 0, // Can't recognize the Helmet.
"no-confusing-arrow": 0, // This rule is super confusing.
"no-duplicate-imports": 0, // github.com/babel/eslint-plugin-babel/issues/59#issuecomment-230118848
"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.
"react/forbid-prop-types": 0, // Este is going to use Flow types.
"react/jsx-filename-extension": 0, // No, JSX belongs to .js files
"react/jsx-indent": 0, // Damn. We need Yarn asap.
"react/no-unused-prop-types": 0, // Este is going to use Flow types.
"react/prop-types": 0, // Can't detect flowtype correctly.
// React Native.
"react-native/no-color-literals": 2,
"react-native/no-unused-styles": 2,
"react-native/split-platform-components": 2,
// Rules for functional programming. We do not need Object.freeze.
"fp/no-mutating-assign": 2
// TODO: Can't be enabled now, it requires a lot of refactoring.
// "fp/no-mutating-methods": 2,
// "fp/no-mutation": ["error", {
// "commonjs": true,
// "allowThis": true,
// "exceptions": [
// {"property": "propTypes"}
// ]
// }]
}
}