-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.mjs
More file actions
37 lines (36 loc) · 941 Bytes
/
eslint.config.mjs
File metadata and controls
37 lines (36 loc) · 941 Bytes
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
import reactPlugin from 'eslint-plugin-react';
import prettierPlugin from 'eslint-plugin-prettier';
import prettierConfig from 'eslint-config-prettier';
export default [
{
files: ['**/*.js', '**/*.jsx'], // 원하는 파일 확장자 지정
ignores: ['node_modules', 'build', 'dist'], // 무시할 경로
languageOptions: {
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
ecmaFeatures: {
jsx: true,
},
},
},
plugins: {
react: reactPlugin,
prettier: prettierPlugin,
},
rules: {
'prettier/prettier': 'error',
'react/react-in-jsx-scope': 'off', // React 17+에서 불필요한 경우 비활성화
},
settings: {
react: {
version: 'detect',
},
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
prettierConfig, // Prettier 설정과 통합
],
},
];