forked from Nozbe/WatermelonDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
117 lines (108 loc) · 2.02 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
106
107
108
109
110
111
112
113
114
115
116
117
---
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
arrow-parens:
- 2
- as-needed
semi:
- 2
- never
class-methods-use-this: 0
comma-dangle:
- 2
- always-multiline
no-console:
- 2
no-unused-expressions: 0
no-param-reassign:
- 2
- props: false
no-useless-escape: 0
func-names: 0
quotes:
- 2
- single
- allowTemplateLiterals: true
no-underscore-dangle: 0
object-curly-newline: 0
function-paren-newline: 0
operator-linebreak:
- 2
- after
no-unused-vars:
- 2
- argsIgnorePattern: "^_"
no-else-return:
- 2
- allowElseIf: true
# 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:
- 2
- always
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
jest/no-large-snapshots: 1
jest/no-disabled-tests: 0
overrides:
files:
- "src/**/*.js"
excludedFiles:
- "*integrationTest.js"
- "*test.js"
- "**/__tests__/**"
- "*test.*.js"
rules:
flowtype/require-valid-file-annotation:
- 2
- always
globals:
document: true
window: true
self: true