-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
65 lines (53 loc) · 1.34 KB
/
index.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
module.exports = {
extends: [
'airbnb',
'standard',
'plugin:flowtype/recommended',
],
parser: 'babel-eslint',
plugins: [
'flowtype',
],
rules: {
'import/no-extraneous-dependencies': ['error', {
devDependencies: true,
}],
'import/extensions': ['error', {
js: 'never',
jsx: 'never',
}],
'import/no-duplicates': ['error', 'always'],
'no-duplicate-imports': 0, // handled by import/no-duplicates
'quote-props': ['error', 'as-needed', { numbers: true }],
'react/jsx-filename-extension': [0],
'react/require-extension': [0],
'react/prefer-stateless-function': ['error', { ignorePureComponents: true }],
strict: 0,
'arrow-body-style': ['error', 'always'],
'arrow-parens': ['error', 'always'],
'brace-style': ['error', 'stroustrup'],
'comma-dangle': ['error', 'always-multiline'],
'max-len': ['error', {
code: 80,
tabWidth: 2,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreUrls: true,
}],
'operator-linebreak': ['error', 'before'],
'no-multiple-empty-lines': ['error', {
max: 2,
maxEOF: 0,
}],
'no-underscore-dangle': [0],
'padded-blocks': ['error', 'always'],
},
settings: {
flowtype: {
onlyFilesWithFlowAnnotation: false,
},
},
env: {
jest: true,
},
}