-
Notifications
You must be signed in to change notification settings - Fork 154
/
.eslintrc.js
39 lines (39 loc) · 1.8 KB
/
.eslintrc.js
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
module.exports = {
"extends": "airbnb",
"globals": {
"document": true,
"window": true,
"process": true,
},
rules: {
'max-len': ['off', { 'code': 120 }],
camelcase: 0, // Foo_foo can be Relay compiler generated type.
'consistent-return': 0, // Control freaky.
'default-case': 0, // Control freaky.
'guard-for-in': 0, // It's not a bug it's a feature.
'import/first': 0, // Nobody cares about imports order.
'import/prefer-default-export': 0, // Control freaky.
'no-nested-ternary': 0, // Control freaky.
'no-param-reassign': 0, // We love param reassignment. Naming is hard.
'no-plusplus': 0, // Control freaky.
'no-restricted-syntax': 0, // Not needed with modern browsers.
'no-shadow': 0, // Shadowing is a nice language feature. Naming is hard.
'no-underscore-dangle': 0, // Control freaky.
'react/default-props-match-prop-types': 0, // Buggy.
'react/forbid-prop-types': 0, // Control freaky.
'react/jsx-boolean-value': 0, // Control freaky.
'react/jsx-curly-brace-presence': 0, // styled-jsx
'react/jsx-filename-extension': 0, // JSX belongs to .js files.
'react/no-danger': 0, // Control freaky.
'react/no-unused-prop-types': 0, // Flow.
'react/prop-types': 0, // Flow.
'react/require-default-props': 0, // Flow.
'spaced-comment': 0, // We don't care.
'react/no-multi-comp': 0, // Control freaky.
'react/prefer-stateless-function': 0, // PureComponents ftw.
// allow console and debugger in development
'no-console': process.env.NODE_ENV === 'production' ? 2 : 0,
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
"react/react-in-jsx-scope": "off",
},
};