-
-
Notifications
You must be signed in to change notification settings - Fork 130
/
.eslintrc.yml
55 lines (54 loc) · 1.05 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
---
extends:
- eslint:recommended
- plugin:prettier/recommended
- plugin:jest/recommended
- plugin:prettier-doc/recommended
parserOptions:
ecmaVersion: 2023
sourceType: "module"
plugins:
- import
root: true
env:
es2024: true
node: true
jest: true
rules:
eqeqeq: error
curly: error
no-else-return: error
no-inner-declarations: error
no-useless-return: error
no-var: error
one-var:
- error
- never
object-shorthand: error
prefer-arrow-callback: error
prefer-const: error
prefer-destructuring: error
prefer-template: error
react/no-deprecated: off
strict: error
symbol-description: error
yoda:
- error
- never
- exceptRange: true
import/extensions:
- error
- ignorePackages
import/no-extraneous-dependencies:
- error
- devDependencies: ["tests*/**", "scripts/**", "build/**"]
overrides:
- files: "**/*.cjs"
parserOptions:
sourceType: "script"
- files: "tests/**/*.mjs"
globals:
run_spec: true
- files: "build/*.mjs"
parserOptions:
sourceType: module