-
Notifications
You must be signed in to change notification settings - Fork 8
/
.eslintrc.yml
105 lines (96 loc) · 2.17 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
---
env:
es6: true
jest: true
plugins:
- flowtype
extends:
# https://github.com/airbnb/javascript
- airbnb
- plugin:flowtype/recommended
- prettier
- plugin:jest/recommended
parser: babel-eslint
settings:
flowtype:
onlyFilesWithFlowAnnotation: true
rules:
curly:
- 2
- all
class-methods-use-this: 0
no-console:
- 2
no-unused-expressions: 0
no-param-reassign:
- 2
- props: false
no-useless-escape: 0
func-names: 0
no-underscore-dangle: 0
no-unused-vars:
- 2
- argsIgnorePattern: "^_"
no-else-return:
- 2
- allowElseIf: true
# formatting (off - formatting is Prettier's job)
semi:
- 2
- never
arrow-parens: off
react/jsx-closing-bracket-location: off
react/jsx-first-prop-new-line: off
operator-linebreak: off
object-curly-newline: off
function-paren-newline: off
max-classes-per-file: off
camelcase: off
react/jsx-indent: off
quotes: off
react/jsx-curly-newline: off
flowtype/space-after-type-colon: off
flowtype/generic-spacing: off
lines-between-class-members: off
# react
# react/prop-types: 0
react/jsx-filename-extension: 0
# react/jsx-no-bind:
# - 2
# - ignoreRefs: true
# react/jsx-first-prop-new-line:
# - 2
# - never
# react/jsx-indent-props:
# - 2
# - 2
# react/jsx-closing-bracket-location:
# - 1
# - selfClosing: after-props
# nonEmpty: after-props
# react/prefer-stateless-function:
# - 1
# - ignorePureComponents: true
react/jsx-boolean-value: off
react/react-in-jsx-scope: off
# react/no-unused-prop-types: 0
# react/destructuring-assignment: 0
# react/jsx-one-expression-per-line: 0
flowtype/delimiter-dangle:
- 2
- always-multiline
flowtype/require-return-type:
- 2
- always
- excludeArrowFunctions: true
annotateUndefined: always
import/prefer-default-export: 0
import/named: 0 # doesn't seem to work with Flow
import/no-extraneous-dependencies: 0
import/no-cycle: 0 # FIXME: broken with flow https://github.com/benmosher/eslint-plugin-import/issues/1343
jest/no-large-snapshots: 1
jest/no-disabled-tests: 0
globals:
document: true
window: true
self: true