-
Notifications
You must be signed in to change notification settings - Fork 10
/
.eslintrc.cjs
43 lines (43 loc) · 1.62 KB
/
.eslintrc.cjs
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
module.exports = {
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: ['./tsconfig.eslint.json'],
tsconfigRootDir: __dirname,
},
plugins: ['@typescript-eslint'],
env: {
es6: true,
node: true,
},
root: true,
rules: {
'no-var': 'warn', // var 금지
eqeqeq: 'warn', // 일치 연산자 사용 필수
'no-multiple-empty-lines': 'warn', // 여러 줄 공백 금지
'@typescript-eslint/restrict-template-expressions': ['off'],
'@typescript-eslint/no-unused-vars': ['warn'],
'@typescript-eslint/no-explicit-any': ['warn'],
'@typescript-eslint/no-unsafe-assignment': ['off'],
'@typescript-eslint/no-unsafe-member-access': ['off'],
'@typescript-eslint/no-unsafe-call': ['off'],
'@typescript-eslint/no-unsafe-argument': ['off'],
'@typescript-eslint/no-useless-template-literals': 'error',
'@typescript-eslint/no-unsafe-return': ['off'],
'@typescript-eslint/await-thenable': ['warn'],
'@typescript-eslint/no-misused-promises': ['warn'],
'@typescript-eslint/no-var-requires': ['off'],
'@typescript-eslint/no-empty-function': ['off'],
'@typescript-eslint/prefer-nullish-coalescing': ['warn'],
'@typescript-eslint/prefer-for-of': ['warn'],
'@typescript-eslint/unbound-method': ['off'],
'@typescript-eslint/restrict-plus-operands': ['off'],
'@typescript-eslint/no-base-to-string': ['off'],
'@typescript-eslint/no-redundant-type-constituents': ['off'],
semi: 'error',
},
};