-
Notifications
You must be signed in to change notification settings - Fork 35
/
.eslintrc.yaml
71 lines (71 loc) · 1.47 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
env:
browser: true
es2021: true
node: true
extends:
- eslint:recommended
- plugin:@typescript-eslint/recommended
parser: "@typescript-eslint/parser"
parserOptions:
ecmaVersion: latest
sourceType: module
ignorePatterns:
- node_modules
- Library/PackageCache
- Assets
- "**/*.d.ts"
plugins:
- "@typescript-eslint"
rules:
indent:
- warn
- tab
- SwitchCase: 1
space-in-parens:
- warn
- never
linebreak-style:
- off
- unix
quotes:
- warn
- single
- avoidEscape: true
allowTemplateLiterals: true
camelcase:
- warn
- allow:
- UI_
- m_
- Prefab_
- Scene_
consistent-return:
- error
no-empty: warn
no-debugger: warn
no-constant-condition: off
prefer-rest-params: warn
prefer-const: warn
no-useless-escape: off
no-async-promise-executor: off
no-ex-assign: off
no-mixed-spaces-and-tabs: warn
semi:
- warn
- always
"@typescript-eslint/no-explicit-any":
- warn
- ignoreRestArgs: true
"@typescript-eslint/no-unused-vars":
- warn
- vars: all
args: none
ignoreRestSiblings: true
"@typescript-eslint/ban-types": warn
"@typescript-eslint/ban-ts-comment": off
"@typescript-eslint/no-var-requires": off
"@typescript-eslint/no-empty-function": off
"@typescript-eslint/no-inferrable-types": off
"@typescript-eslint/prefer-namespace-keyword": off
"@typescript-eslint/no-namespace": off
"@typescript-eslint/no-this-alias": off