-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
35 lines (32 loc) · 1.11 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
module.exports = {
extends: 'airbnb',
env: {
jest: true,
browser: true
},
rules: {
indent: ['error', 4],
// 'react/jsx-indent': ['error', 4],
'react/jsx-indent-props': ['error', 4],
// these don't need to be errors
'max-len': ['warn', 120],
'react/require-default-props': 'warn',
'react/forbid-prop-types': 'warn',
'react/prefer-stateless-function': 'warn',
'import/no-named-as-default': 'warn',
// Quieting a couple of rules that I don't think need to be errors
'comma-dangle': 'off',
'no-else-return': 'off',
'react/jsx-filename-extension': 'off',
'react/no-multi-comp': 'off',
'react/require-default-props': 'warn',
'no-prototype-builtins': 'off',
// These rules can conflict with Prettier, which I use for formatting
'arrow-parens': 'off',
'react/jsx-indent-props': 'off',
'react/jsx-closing-bracket-location': 'off',
'react/jsx-wrap-multilines': 'off',
'arrow-body-style': 'off',
'react/jsx-indent': 'off'
}
};