-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.yml
68 lines (68 loc) · 1.31 KB
/
.eslintrc.yml
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
parser: babel-eslint
parserOptions:
ecmaFeatures:
jsx: true
plugins:
- flowtype
- import
- react
env:
browser: true
node: true
es6: true
extends:
- standard
- plugin:react/recommended
- plugin:import/errors
rules:
# add more rules
prefer-const: 2
no-unused-vars:
- 2
- argsIgnorePattern: ^_
no-multiple-empty-lines:
- 2
- max: 1
# react
react/prefer-stateless-function: 2
# import
import/newline-after-import: 2
import/imports-first: 2
import/prefer-default-export: 2
import/no-dynamic-require: 2
import/no-extraneous-dependencies: 2
import/no-mutable-exports: 2
import/no-commonjs: 2
import/order: 2
# flow
flowtype/boolean-style: 2
flowtype/define-flow-type: 2
flowtype/delimiter-dangle:
- 2
- never
flowtype/generic-spacing:
- 2
- never
flowtype/no-dupe-keys: 2
flowtype/no-primitive-constructor-types: 2
flowtype/object-type-delimiter:
- 2
- comma
flowtype/require-parameter-type:
- 2
- excludeArrowFunctions: true
flowtype/require-return-type:
- 2
- excludeArrowFunctions: true
flowtype/require-valid-file-annotation:
- 1
- always
- annotationStyle: block
flowtype/space-after-type-colon: 2
flowtype/space-before-type-colon:
- 2
- never
flowtype/space-before-generic-bracket:
- 2
- never
flowtype/union-intersection-spacing: 2