-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
49 lines (49 loc) · 1 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
42
43
44
45
46
47
48
49
module.exports = {
parserOptions: {
ecmaVersion: 7,
sourceType: 'module',
ecmaFeatures: {
impliedStrict: true,
experimentalObjectRestSpread: true
}
},
parser: 'babel-eslint',
plugins: ['flowtype'],
env: {
es6: true,
node: true
},
rules: {
'no-unused-vars': [
'error',
{
vars: 'all',
args: 'after-used'
}
],
'linebreak-style': [2, 'unix'],
'eol-last': 2,
'no-var': 2,
'prefer-const': 2,
'no-multiple-empty-lines': [
2,
{
max: 2
}
],
'no-console': 0,
'no-extra-bind': 2,
'no-undef': 2,
'flowtype/define-flow-type': 1,
// 'flowtype/require-parameter-type': 1,
// 'flowtype/require-return-type': [
// 1,
// 'always',
// { annotateUndefined: 'never' }
// ],
'flowtype/space-after-type-colon': [1, 'always'],
'flowtype/space-before-type-colon': [1, 'never'],
'flowtype/use-flow-type': 1,
'flowtype/valid-syntax': 1
}
};