-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
58 lines (58 loc) · 1.23 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
env:
browser: true
commonjs: true
es2021: true
node: true
jquery: true
jest: true
extends: airbnb-base
parserOptions:
ecmaVersion: latest
globals:
Prism: readonly
rules:
max-len:
- error
- code: 120
no-plusplus: off
nonblock-statement-body-position: [warn, below]
# curly: [warn, multi-or-nest, consistent]
curly: [off]
no-use-before-define: [error, nofunc]
no-mixed-operators:
- error
- allowSamePrecedence: true
no-param-reassign: off
no-shadow:
- error
- allow:
- eleventyConfig
no-console:
- warn
- allow: [warn, error]
import/no-extraneous-dependencies:
- error
- devDependencies: true
no-unused-vars:
- error
- argsIgnorePattern: "^_"
varsIgnorePattern: "^_"
caughtErrorsIgnorePattern: "^_"
arrow-parens: [warn, as-needed]
no-continue: off
no-restricted-syntax: [off, ForOfStatement]
func-names: off # Dangerous! Don't turn on! Breaks behaviour of `this`.
quotes:
- warn
- single
- avoidEscape: true
guard-for-in: off
no-multi-assign: off
no-new: off
no-lonely-if: off
no-nested-ternary: off
no-underscore-dangle: off
prefer-destructuring: off
prefer-arrow-callback: off
no-bitwise: off
global-require: off