-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yaml
50 lines (44 loc) · 1.7 KB
/
.eslintrc.yaml
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
extends: airbnb
env:
es6: true
node: true
#parser: "babel-eslint"
# Modifications / extensions to airbnb styles
rules:
# Increase max line length
max-len: ["error", 120, {"ignoreStrings": true, "ignoreTemplateLiterals": true}]
# Keep indent at 4
# function parameters should align with first parameter
# switch cases should use default indent
indent: ["error", 4, {
"FunctionDeclaration": {"parameters": "first"},
"SwitchCase": 1
}]
# Do not enforce dangling commas
comma-dangle: ["error", "only-multiline"]
# Allow block padding
padded-blocks: 0
# Allow usage of function declarations before they are defined
no-use-before-define: ["error", { "functions": false, "classes": true }]
# Do not enforce newline at end of file
eol-last: 0
# Do not enforce arrow functions for named functions
prefer-arrow-callback: ["error", { "allowNamedFunctions": true }]
# Do not enforce type safe equality
eqeqeq: 0
# Allow modification of parameter props
no-param-reassign: ["error", { "props": false }]
# Allow arrow functions without parens if there is only one parameter
arrow-parens: ["error", "as-needed"]
# Allow inner functions
no-inner-declarations: 0
# Allow mixing operators with same precedence, e.g. a + b - c
no-mixed-operators: ["error", {"allowSamePrecedence": true}]
# Require function names to force decision between arrow function or regular function
func-names: ["error", "always"]
# Allow usage of console
no-console: 0
# Allow usage of dev dependencies
import/no-extraneous-dependencies: ["error", {"devDependencies": true, "optionalDependencies": false, "peerDependencies": false}]
# Allow single named export
import/prefer-default-export: 0