-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
31 lines (31 loc) · 1009 Bytes
/
.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
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: ['airbnb', 'plugin:prettier/recommended'],
ignorePatterns: ['dist', '.eslintrc.cjs'],
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: {
react: { version: '18.2' },
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
plugins: ['react-refresh', 'react', 'prettier'],
rules: {
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
'no-restricted-exports': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'react/react-in-jsx-scope': 'off',
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
'react/prop-types': 'off', // prop-type 체크 규칙 비활성화
'import/extensions': 'off', // import/extensions 규칙 비활성화
},
}