forked from joshwcomeau/react-flip-move
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
68 lines (65 loc) · 1.6 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
module.exports = {
extends: [
'airbnb',
'plugin:flowtype/recommended',
'prettier',
'prettier/flowtype',
'prettier/react',
],
plugins: ['prettier', 'flowtype', 'sort-class-members', 'bdd'],
parser: 'babel-eslint',
rules: {
'import/no-unresolved': 0,
'import/no-extraneous-dependencies': 0,
'react/jsx-filename-extension': 0,
'react/no-unused-prop-types': 0,
'react/sort-comp': 0,
'sort-class-members/sort-class-members': [
2,
{
order: [
'[static-properties]',
'[static-methods]',
'[properties]',
'constructor',
'componentWillMount',
'componentDidMount',
'componentWillReceiveProps',
'shouldComponentUpdate',
'componentWillUpdate',
'componentDidUpdate',
'componentWillUnmount',
'[arrow-function-properties]',
'[methods]',
'render',
],
},
],
'no-console': [1, { allow: ['warn', 'error'] }],
'no-plusplus': [1, { allowForLoopAfterthoughts: true }],
'flowtype/delimiter-dangle': [2, 'always-multiline'],
'flowtype/no-dupe-keys': 2,
'flowtype/no-primitive-constructor-types': 2,
'flowtype/no-weak-types': 1,
'flowtype/object-type-delimiter': [2, 'comma'],
'flowtype/semi': 2,
'bdd/focus': 2,
'bdd/exclude': 2,
'prettier/prettier': [
'error',
{
trailingComma: 'all',
singleQuote: true,
},
],
},
settings: {
flowtype: {
onlyFilesWithFlowAnnotation: true,
},
},
env: {
browser: true,
node: true,
},
};