-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
71 lines (57 loc) · 1.36 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
extends: ["airbnb", "prettier", "prettier/react"]
env:
mocha: true
jest: true
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: 6
plugins:
- "react"
- "@typescript-eslint"
settings:
import/resolver: webpack
rules:
# no hard limit on line length
max-len: 0
# we allow use of console...for now
no-console: 0
# we currently use snake case in most places, however, we'd like to switch to camelCase eventually since it's more common in the JS community
camelcase: 0
# vars are necessary for server-side requires right now
no-var: 0
vars-on-top: 0
# multi spaces only allowed for aligning variable/import declarations
no-multi-spaces:
- 2
- exceptions:
VariableDeclarator: true
ImportDeclaration: true
# we currently use null in many places, so allow == for null checks
eqeqeq:
- 2
- "smart"
quotes: [2, "double", "avoid-escape"]
new-cap:
- 2
- newIsCapExceptions: ["kayvee.logger"]
no-param-reassign:
- 2
- props: false
key-spacing:
- 2
- mode: "minimum"
no-use-before-define:
- off
react/jsx-curly-spacing:
- 2
- "never"
react/prop-types:
- off
prefer-const: ["error", { "destructuring": "all" }]
indent:
- off
# This is handled by the "@typescript-eslint/parser"
no-unused-vars:
- off
space-before-function-paren:
- off