-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc.yml
43 lines (37 loc) · 1.18 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
extends: eslint-config-dmitmel/presets/node
env:
browser: true
rules:
node/no-unsupported-features/es-syntax:
- error
- ignores:
- modules
- dynamicImport
node/no-unsupported-features/es-builtins:
- error
- ignores:
- globalThis
overrides:
- files: '**/*.ts'
extends:
- eslint-config-dmitmel/presets/typescript-addon
# - eslint-config-dmitmel/presets/typescript-with-type-checking-addon
parserOptions:
project: 'tsconfig.json'
- files: '**/*.d.ts'
rules:
# `declare var` implicitly creates a property on the `Window` object
no-var: off
'@typescript-eslint/no-empty-interface': off
'@typescript-eslint/no-explicit-any':
- warn
- ignoreRestArgs: true
# everything in declarations is public anyway
'@typescript-eslint/explicit-member-accessibility':
- warn
- accessibility: no-public
node/no-missing-import: off
node/no-extraneous-import: off
# See <https://github.com/typescript-eslint/typescript-eslint/pull/2902>
# and <https://github.com/typescript-eslint/typescript-eslint/pull/2902>
'@typescript-eslint/no-unused-vars': off