-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
101 lines (101 loc) · 2.28 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
env:
commonjs: true
es6: true
node: true
jest: true
extends:
- 'eslint:recommended'
- 'plugin:@typescript-eslint/eslint-recommended'
- 'plugin:@typescript-eslint/recommended'
globals:
Atomics: readonly
SharedArrayBuffer: readonly
NodeJS: true
parser: '@typescript-eslint/parser'
plugins:
- '@typescript-eslint'
parserOptions:
ecmaVersion: 2021
sourceType: module
rules:
indent:
# 들여쓰기 2칸
- error
- 2
- SwitchCase: 1
linebreak-style:
- error
- unix
no-case-declarations:
- off
no-undef:
- error
no-useless-escape:
- off
no-unused-vars:
- off
keyword-spacing: warn
comma-spacing: warn
space-infix-ops: warn
block-spacing: warn
dot-location: warn
func-call-spacing: warn
key-spacing: warn
no-multi-spaces: warn
no-return-assign: warn
no-unsafe-negation: warn
space-before-blocks: warn
space-in-parens: warn
spaced-comment: warn
template-curly-spacing: warn
comma-dangle:
- error
- objects: never
arrays: never
imports: never
exports: never
functions: never
object-curly-spacing:
- error
- never
quotes:
- error
- single
semi:
- error
- never
"@typescript-eslint/explicit-function-return-type": error
"@typescript-eslint/no-explicit-any": warn
"@typescript-eslint/naming-convention":
- error
- selector:
- classProperty
- parameterProperty
modifiers:
- private
format:
- camelCase
leadingUnderscore: require
- selector:
- classProperty
- parameterProperty
modifiers:
- protected
format:
- camelCase
leadingUnderscore: require
- selector:
- interface
format:
- PascalCase
custom:
regex: ^I[A-Z]
match: true
- selector:
- typeAlias
format:
- PascalCase
leadingUnderscore: forbid
custom:
regex: ^(T|I)[A-Z]
match: true