generated from JensDll/npm-package
/
.eslintrc.yaml
50 lines (50 loc) · 1.55 KB
/
.eslintrc.yaml
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
root: true
env:
browser: true
es2021: true
node: true
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
- import
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
rules:
# https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/order.md
import/order:
- error
- groups:
- builtin
- external
- internal
alphabetize:
order: asc
caseInsensitive: true
newlines-between: always
# https://eslint.org/docs/latest/rules/no-empty
no-empty:
- error
- allowEmptyCatch: true
# https://typescript-eslint.io/rules/no-extra-semi
'no-extra-semi': off
'@typescript-eslint/no-extra-semi': off
# https://typescript-eslint.io/rules/no-explicit-any
'@typescript-eslint/no-explicit-any': off
# https://typescript-eslint.io/rules/no-non-null-assertion
'@typescript-eslint/no-non-null-assertion': off
# https://typescript-eslint.io/rules/ban-types
'@typescript-eslint/ban-types': off
# https://typescript-eslint.io/rules/ban-ts-comment
'@typescript-eslint/ban-ts-comment': off
# https://typescript-eslint.io/rules/no-empty-interface
'@typescript-eslint/no-empty-interface': off
# https://typescript-eslint.io/rules/no-empty-function
'@typescript-eslint/no-empty-function': off
# https://typescript-eslint.io/rules/no-var-requires
'@typescript-eslint/no-var-requires': off
# https://typescript-eslint.io/rules/consistent-type-imports/
'@typescript-eslint/consistent-type-imports': 'error'
ignorePatterns:
- '**/dist'
- '**/*.html'