-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.eslintrc.cjs
More file actions
36 lines (35 loc) · 994 Bytes
/
.eslintrc.cjs
File metadata and controls
36 lines (35 loc) · 994 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
module.exports = {
overrides: [
{
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:jsx-a11y/recommended',
'airbnb', // Airbnb 스타일 가이드 사용
'airbnb/hooks',
'airbnb-typescript',
],
plugins: ['@typescript-eslint'],
parserOptions: {
project: './tsconfig.json',
},
rules: {
// 추가적인 규칙 설정
'@typescript-eslint/comma-dangle': ['error', 'always-multiline'],
'linebreak-style': 0,
'react/react-in-jsx-scope': 'off',
'react/jsx-props-no-spreading': 'off',
'import/no-absolute-path': 'off',
// jsx-a11y label-has-associated-control 규칙 설정
'jsx-a11y/label-has-associated-control': [
2,
{
some: ['nesting', 'id'],
},
],
},
},
],
};