-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.02 KB
/
.eslintrc.js
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
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
jest: true,
},
plugins: ['react', '@typescript-eslint', 'prettier'],
extends: [
'next',
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended', // 해당 플러그인의 권장 규칙을 사용합니다.
'plugin:prettier/recommended', // plugin과 eslint-config-prettier 설정을 한번에 합니다.
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 12,
sourceType: 'module',
},
rules: {
'no-console': [
'warn',
{
allow: ['warn', 'error'],
},
],
'@typescript-eslint/no-use-before-define': ['error'],
'@typescript-eslint/no-unused-vars': 'warn',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-empty-function': 'off',
'react-hooks/rules-of-hooks': 'error',
'react/react-in-jsx-scope': 'off',
'react-hooks/exhaustive-deps': 'warn',
},
};