-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
73 lines (58 loc) · 1.71 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
extends:
- airbnb
rules:
#
# DISABLED RULES
#
# Allows ForIn
no-restricted-syntax:
- error
- LabeledStatement
- WithStatement
- ForInStatement
no-continue : 0 # Because ForIn
guard-for-in : 0 # Because ForIn
arrow-body-style : 0 # Doesn't let you have single statement block functions
no-param-reassign : 0 # Variable names are hard
react/jsx-filename-extension: 0
no-underscore-dangle: 0 # Good for decalaring "private"
no-multi-spaces:
- 0
- exceptions:
VariableDeclarator: true
no-unused-vars: # Can be helpful to define params for verbosity
- error
- args: none
# This allows devDependencies to be imported for build files
# This can be applied to specific files when eslint supports that feature later
import/no-extraneous-dependencies:
- error
- devDependencies: true
import/no-named-as-default: 0 # Limiting for a valid usecase
jsx-a11y/img-has-alt : 0 # Waste of my time
jsx-a11y/no-static-element-interactions : 0 # Limiting, needlessly
#
# DISABLE BECAUSE OF ERRORS
#
generator-star-spacing : 0 # This produces an error on async/await
require-yield : 0 # This produces an error on async/await
arrow-parens : 0 # This produces an error on async/await
#
# CHANGES (ERRORS)
#
# ...
global-require: 1 # Limiting, but useful
react/prefer-stateless-function : 1
react/forbid-prop-types : 1
import/prefer-default-export : 1 # Limits multi-export files when they aren't populated
env:
jest : true
browser : true
node : true
es6 : true
parserOptions:
ecmaVersion: 8
sourceType: "module"
ecmaFeatures:
jsx: true
parser: babel-eslint