-
Notifications
You must be signed in to change notification settings - Fork 27
/
.eslintrc.yaml
executable file
·136 lines (126 loc) · 2.32 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
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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
env:
browser: true
es6: true
greasemonkey: true
jquery: true
extends: eslint:recommended
globals:
# GreaseMonkey
GM_download: readonly
# MBS
__MB__: readonly
MB: readonly
# lib/CONTROL-POMME.js
CONTROL_POMME: readonly
# lib/COOL-BUBBLES.js
coolBubble: readonly
# lib/MB-JUNK-SHOP.js
MBJS: readonly
# lib/SUPER.js
addAfter: readonly
createTag: readonly
disableInputs: readonly
enableInputs: readonly
forceValue: readonly
getParent: readonly
getSibling: readonly
removeChildren: readonly
removeNode: readonly
replaceChildren: readonly
sendEvent: readonly
waitForElement: readonly
ignorePatterns:
- "*.md"
parserOptions:
ecmaVersion: 2019
ecmaFeatures:
globalReturn: true
root: true
rules:
# https://eslint.org/docs/rules/indent
# Possible errors - https://eslint.org/docs/rules/#possible-errors
no-control-regex:
- warn
no-empty:
- error
- allowEmptyCatch: true
no-irregular-whitespace:
- warn
- skipComments: true
skipRegExps: true
# Best practices - https://eslint.org/docs/rules/#best-practices
# Strict mode - https://eslint.org/docs/rules/#strict-mode
strict:
- error
- global
# Variables - https://eslint.org/docs/rules/#variables
block-scoped-var:
- warn
no-unused-vars:
- error
- argsIgnorePattern: "^(event|mutations|observer)$"
# Stylistic-issues - https://eslint.org/docs/rules/#stylistic-issues
brace-style:
- error
- 1tbs
- allowSingleLine: true
comma-dangle:
- error
- only-multiline
comma-spacing:
- error
- after: true
before: false
comma-style:
- error
- last
func-style:
- error
- declaration
indent:
- error
- tab
- ignoreComments: true
SwitchCase: 1
key-spacing:
- error
- beforeColon: false
afterColon: true
mode: minimum
keyword-spacing:
- error
linebreak-style:
- error
- unix
no-mixed-spaces-and-tabs:
- error
- smart-tabs
no-tabs:
- warn
- allowIndentationTabs: true
no-trailing-spaces:
- error
quotes:
- error
- double
- avoidEscape: true
semi:
- error
- always
semi-spacing:
- error
- after: true
before: false
semi-style:
- error
- last
space-in-parens:
- error
- never
space-infix-ops:
- error
spaced-comment:
- error
- always
- block:
balanced: true