forked from taskcluster/taskcluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
83 lines (78 loc) · 1.78 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
---
root: true
extends: eslint:recommended
env:
node: true
browser: true
mocha: true
es6: true
parserOptions:
ecmaVersion: 2020
sourceType: module
rules:
# These seem like good ideas on top of the recommended settings
array-callback-return: error
curly: error
guard-for-in: error
no-alert: error
no-eval: error
no-implied-eval: error
no-floating-decimal: error
comma-spacing: error
func-call-spacing: error
func-name-matching: error
no-lonely-if: error
no-tabs: error
semi: error
no-multiple-empty-lines:
- error
- max: 1
maxBOF: 0
maxEOF: 0
max-len:
- error
- code: 120
ignoreTemplateLiterals: true
ignoreStrings: true
ignoreUrls: true
comma-dangle:
- error
- always-multiline
complexity:
- error
- max: 60 # We may want to eventually bring this number down
no-multi-spaces: error
key-spacing:
- error
- mode: strict
no-trailing-spaces: error
eol-last: error
indent:
- error
- 2
- SwitchCase: 1
eqeqeq:
- error
- smart
no-buffer-constructor: error
no-unused-vars:
- error
- args: none
ignoreRestSiblings: true
varsIgnorePattern: ^_$
argsIgnorePattern: ^_$
block-scoped-var: error
no-var: error
no-case-declarations: error
no-unreachable: error
no-undef: error
# These we never want but are enabled by recommended
no-console: off # We don't mind these being used for now until structured logging is available
no-constant-condition: off # This is legitimately sometimes useful
no-useless-escape: off # This isn't such a big deal and sometimes improves readability
# this seems to have a lot of false positives
require-atomic-updates: off
space-infix-ops: error
object-curly-spacing:
- error
- always