forked from billyvg/codemod-proptypes-to-flow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
41 lines (39 loc) · 1.21 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
40
41
module.exports = {
extends: [
'airbnb-base',
'prettier',
],
env: {
'node': true,
},
root: true,
plugins: [
'prettier',
],
rules: {
'comma-dangle': ['error', 'always-multiline'],
'import/order': ['error', {
'groups': ['builtin', 'external', 'internal', 'parent', 'sibling', 'index'],
}],
'indent': ['off', 2, {'SwitchCase': 1}],
'max-len': ['error', 120, 4, {'ignoreComments': true, 'ignoreUrls': true}],
'no-unused-vars': ['error', {'vars': 'all', 'args': 'none'}],
'space-before-function-paren': ['error', 'never'],
'space-in-parens': ['error', 'never'],
'no-underscore-dangle': 'off',
'no-param-reassign': 'off',
'no-console': 'off',
'no-warning-comments': ['warn', { 'terms': ['fixme'], 'location': 'start' }],
'prettier/prettier': ['error', {'trailingComma': 'es5', 'singleQuote': true} ],
// NOTE: Disabled to not do too many changes to original codebase:
'consistent-return': 'off',
'arrow-body-style': 'off',
'object-curly-spacing': 'off',
'padded-blocks': 'off',
'arrow-parens': 'off',
'import/extensions': 'off',
'no-shadow': 'off',
'array-callback-return': 'off',
'no-else-return': 'off',
}
}