-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
37 lines (32 loc) · 858 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
env:
browser: true
es2022: true
parserOptions:
ecmaVersion: "latest"
sourceType: module
reportUnusedDisableDirectives: true
plugins:
- prefer-object-spread
- switch-case
# Order is important: top configs are overridden by bottom ones
extends:
- eslint:recommended
- airbnb-base
- plugin:array-func/recommended
- plugin:compat/recommended
- plugin:eslint-comments/recommended
- plugin:import/recommended
- plugin:no-use-extend-native/recommended
- plugin:promise/recommended
- plugin:regexp/recommended
- plugin:switch-case/recommended
- plugin:unicorn/recommended
- prettier # Must be last
rules: {
# Core rules
no-warning-comments: error,
# Plugin rules
prefer-object-spread/prefer-object-spread: error,
switch-case/newline-between-switch-case:
[error, always, { fallthrough: never }],
}