-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.mjs
52 lines (50 loc) · 1.55 KB
/
eslint.config.mjs
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
// eslint.config.mjs
import typescriptPlugin from '@typescript-eslint/eslint-plugin'
import typescriptParser from '@typescript-eslint/parser'
import prettier from 'eslint-plugin-prettier'
export default [
{
files: ['src/**/*.ts', 'test/**/*.ts'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
parser: typescriptParser,
globals: {
process: 'readonly',
__dirname: 'readonly',
module: 'readonly',
require: 'readonly',
},
},
plugins: {
'@typescript-eslint': typescriptPlugin,
prettier: prettier,
},
rules: {
...typescriptPlugin.configs.recommended.rules,
'prettier/prettier': [
'error',
{
singleQuote: true,
semi: false,
},
],
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-unused-vars': ['warn'],
'@typescript-eslint/no-explicit-any': 'off',
// ESLint와 Prettier의 충돌 가능성이 있는 규칙 비활성화
quotes: 'off', // Prettier가 자체적으로 처리
semi: 'off', // Prettier가 자체적으로 처리
'arrow-body-style': 'off',
'prefer-arrow-callback': 'off',
'no-mixed-operators': 'off',
'no-multiple-empty-lines': 'off',
'no-extra-semi': 'off',
'no-floating-decimal': 'off',
'space-before-function-paren': 'off',
'comma-dangle': 'off',
},
ignores: ['**/node_modules/**', '**/dist/**'],
},
]