-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (41 loc) · 909 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
40
41
42
const path = require('path');
module.exports = {
parser: 'babel-eslint',
extends: [
'airbnb',
'plugin:flowtype/recommended',
'prettier',
'prettier/flowtype',
'prettier/react',
],
plugins: [
'flowtype',
'jest',
'prettier',
],
env: {
'browser': true,
'es6': true,
'node': true,
'jest': true,
},
settings: {
'import/resolver': {
node: {
paths: [path.resolve(__dirname, './src')],
},
},
},
rules: {
'flowtype/no-weak-types': 0,
'flowtype/no-types-missing-file-annotation': 0,
'flowtype/require-parameter-type': 1,
'flowtype/require-return-type': [1, 'always', {annotateUndefined: 'never'}],
'flowtype/define-flow-type': 1,
'flowtype/use-flow-type': 1,
'no-plusplus': 0,
'react/jsx-filename-extension': 0,
'react/prefer-stateless-function': 0,
'no-underscore-dangle': 0,
}
}