-
Notifications
You must be signed in to change notification settings - Fork 2
/
.eslintrc.yml
67 lines (58 loc) · 1.61 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
59
60
61
62
63
64
65
66
67
extends: eslint-config-dmitmel/presets/node
env:
browser: true
parserOptions:
sourceType: module
globals:
__cc_ru_hacked_require: true
settings:
node:
allowModules:
- ultimate-crosscode-typedefs
rules:
func-names: off
node/no-unsupported-features/es-syntax:
- error
- ignores:
- modules
- dynamicImport
node/no-unsupported-features/node-builtins:
- error
- ignores:
- fs.promises
overrides:
- files: '**/*.ts'
extends: eslint-config-dmitmel/presets/typescript-with-type-checking-addon
rules:
# because I have to use '.js' file extensions in imports
node/no-missing-import: off
'@typescript-eslint/naming-convention':
- warn
- selector: default
format: null
filter:
regex: '^en_US|de_DE|fr_FR|ru_RU|zh_CN|ja_JP|ko_KR$'
match: true
- selector: default
format:
- camelCase
- PascalCase
- UPPER_CASE
leadingUnderscore: allow
trailingUnderscore: allow
filter:
regex: '^[a-zA-Z_$][a-zA-Z0-9_$]*$'
match: true
- files: '**/*.d.ts'
rules:
# <https://github.com/dmitmel/ultimate-crosscode-typedefs/blob/f09433a688bf1db86172f40aa4156566ae1d2c1e/.eslintrc.yml#L37-L39>
'@typescript-eslint/no-unused-vars': off
- files: 'src/**/*.ts'
parserOptions:
project: 'tsconfig.json'
- files: 'enhanced-ui/src/**/*.ts'
parserOptions:
project: 'enhanced-ui/tsconfig.json'
- files: 'tool/src/**/*.ts'
parserOptions:
project: 'tool/tsconfig.json'