-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.yml
58 lines (53 loc) · 1.31 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:
node: true
es2021: true
extends:
- "eslint:recommended"
plugins:
- "import"
reportUnusedDisableDirectives: true
parserOptions:
ecmaVersion: 2022
sourceType: module
rules:
# Require packages to be listed in package.json
"import/no-extraneous-dependencies": error
# Disallow mutable exports
"import/no-mutable-exports": error
# Disallow other module systems
"import/no-amd": error
# 'import/no-commonjs': error # already covered via @typescript-eslint/no-var-requires
# Code style
"import/first": error
"import/newline-after-import": error
"import/no-duplicates": error
"import/order":
- error
- groups:
- [builtin, internal, external]
- parent
- [index, sibling]
"newlines-between": always
alphabetize:
order: asc
overrides:
- files:
- packages/test/src/harness/**/browser.js
env:
browser: true
- files: ["**/*.ts"]
plugins:
- "@typescript-eslint"
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: 2022
sourceType: module
extends:
- "plugin:@typescript-eslint/recommended"
- "plugin:import/typescript"
rules:
"@typescript-eslint/no-non-null-assertion": "off"
"@typescript-eslint/ban-types":
- error
- types:
object: false