forked from SWM-Cupid/jikting-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
44 lines (39 loc) · 1.14 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
44
module.exports = {
env: { browser: true, es2020: true, node: true }, // node: true 추가
extends: [
// eslint-plugin-react 설정
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime', // new JSX transform from React 17 사용시 추가
// eslint-plugin-import 설정
'plugin:import/recommended',
'plugin:import/typescript',
// @typescript-eslint/eslint-plugin 설정
'plugin:@typescript-eslint/recommended',
// eslint-plugin-react-hooks 설정
'plugin:react-hooks/recommended',
// eslint-plugin-prettier 설정
// 'plugin:prettier/recommended', // prettier 에러 끄려면 주석처리
// eslint-config-prettier 설정
'prettier',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['react-refresh', 'import'],
rules: {
'react-refresh/only-export-components': 'warn',
// stomp/stompjs 오류 때문에 설정
'import/no-unresolved': 'off',
},
settings: {
// node import 경로 설정
'import/resolver': {
node: {
paths: ['src'],
},
},
},
};