-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.yml
49 lines (41 loc) · 1.06 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
parser: babel-eslint
plugins:
- flowtype
extends:
- airbnb-base
- plugin:prettier/recommended
env:
node: true
browser: true
rules:
prettier/prettier:
- error
- printWidth: 80
tabWidth: 2
useTabs: false
semi: false
singleQuote: true
jsxSingleQuote: true
trailingComma: all
bracketSpacing: true
jsxBracketSameLine: true
arrowParens: avoid
rangeStart: 0
requirePragma: false
insertPragma: false
proseWrap: always
eqeqeq: [error, smart]
no-dupe-keys: error
no-return-assign: off
consistent-return: off
no-use-before-define: off
import/prefer-default-export: off
import/no-extraneous-dependencies: off
flowtype/define-flow-type: error
flowtype/no-dupe-keys: off
flowtype/no-mutable-array: error
flowtype/no-primitive-constructor-types: error
flowtype/no-types-missing-file-annotation: error
flowtype/require-valid-file-annotation: [error, never, { annotationStyle: block }]
flowtype/type-id-match: [error, '^[A-Z][a-z0-9]*']
flowtype/use-flow-type: error