-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc.cjs
41 lines (41 loc) · 1.33 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
module.exports = {
root: true,
env: { browser: true, es2020: true },
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react/jsx-runtime',
'plugin:react-hooks/recommended',
'plugin:import/recommended',
'plugin:jsx-a11y/recommended',
'airbnb',
'airbnb/hooks',
// This disables the formatting rules in ESLint that Prettier is going to be responsible for handling.
// Make sure it's always the last config, so it gets the chance to override other configs.
'eslint-config-prettier',
],
ignorePatterns: ['dist', '.eslintrc.cjs', 'vite.config.js'], //module 에러 나는 파일들을 예외처리해줌
parserOptions: { ecmaVersion: 'latest', sourceType: 'module' },
settings: {
react: { version: '18.2' },
// Tells eslint how to resolve imports
'import/resolver': {
node: {
paths: ['src'],
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
plugins: ['react', 'react-refresh'],
rules: {
'react/jsx-no-target-blank': 'off',
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'react/prop-types': 'off',
'import/no-unresolved': 'off',
'no-alert': 'off',
'no-console': 'off',
'react/button-has-type': 'off',
'no-unused-vars': 'off',
'import/prefer-default-export': 'off',
},
};