-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.js
39 lines (30 loc) · 895 Bytes
/
.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 = {
root: true,
extends: [
'airbnb',
'plugin:prettier/recommended',
'plugin:flowtype/recommended',
'plugin:jest/recommended',
],
plugins: ['flowtype', 'jest'],
env: {
'jest/globals': true,
browser: true,
},
rules: {
// allow console methods
'no-console': 'off',
// wish i could say 4 once.
'react/jsx-indent': ['error', 4],
'react/jsx-indent-props': ['error', 4],
// as we're using flow for typing
'react/require-default-props': 'off',
// needless pickiness, even for me
'react/destructuring-assignment': 'off',
'react/jsx-one-expression-per-line': 'off',
'react/no-multi-comp': 'off',
// as prettier owns code formatting
'flowtype/space-after-type-colon': 'off',
},
globals: {},
};