-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.eslintrc.yml
44 lines (39 loc) · 955 Bytes
/
.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
extends:
- chartjs
- plugin:es/restrict-to-es2018
env:
es6: true
browser: true
node: true
jasmine: true
globals:
acquireChart: true
afterEvent: true
Chart: true
createMockContext: true
__karma__: true
releaseChart: true
waitForResize: true
parserOptions:
ecmaVersion: 2022
sourceType: module
ecmaFeatures:
impliedStrict: true
modules: true
plugins: ['es']
rules:
no-new-func: 0
class-methods-use-this: "off"
complexity: ["warn", 10]
max-statements: ["warn", 30]
no-empty-function: "off"
no-use-before-define: ["error", { "functions": false }]
no-var: "error"
prefer-const: "error"
# disable everything, except Rest/Spread Properties in ES2018
es/no-async-iteration: "error"
es/no-malformed-template-literals: "error"
es/no-regexp-lookbehind-assertions: "error"
es/no-regexp-named-capture-groups: "error"
es/no-regexp-s-flag: "error"
es/no-regexp-unicode-property-escapes: "error"