-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
66 lines (64 loc) · 2.04 KB
/
eslint.config.js
File metadata and controls
66 lines (64 loc) · 2.04 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
import js from '@eslint/js'
import { FlatCompat } from '@eslint/eslintrc'
import eslintPluginReact from 'eslint-plugin-react'
import eslintPluginReactHooks from 'eslint-plugin-react-hooks'
import eslintPluginJsxA11y from 'eslint-plugin-jsx-a11y'
import eslintPluginPrettier from 'eslint-plugin-prettier'
import eslintPluginTypeScript from '@typescript-eslint/eslint-plugin'
const compat = new FlatCompat()
export default [
js.configs.recommended,
...compat.extends('next/core-web-vitals'),
...compat.extends('plugin:react/recommended'),
...compat.extends('plugin:react-hooks/recommended'),
...compat.extends('plugin:jsx-a11y/recommended'),
...compat.extends('prettier'),
{
ignores: [
'.next/**',
'node_modules/**',
'build/**',
'dist/**',
'*.config.js',
'*.config.mjs',
],
plugins: {
'@typescript-eslint': eslintPluginTypeScript,
react: eslintPluginReact,
'react-hooks': eslintPluginReactHooks,
'jsx-a11y': eslintPluginJsxA11y,
prettier: eslintPluginPrettier,
},
rules: {
// react import 누락 무시
'react/react-in-jsx-scope': 'off',
// 미사용 변수 무시
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
// no-undef 무시
'no-undef': 'off',
// unreachable code 무시
'no-unreachable': 'off',
// React Hooks 관련 무시
'react-hooks/exhaustive-deps': 'off',
'react-hooks/rules-of-hooks': 'off',
// 접근성 관련 무시
'jsx-a11y/heading-has-content': 'off',
'jsx-a11y/anchor-has-content': 'off',
'jsx-a11y/label-has-associated-control': 'off',
// React 관련 무시
'react/no-unescaped-entities': 'off',
'react/no-unknown-property': 'off',
// Next.js 관련 무시
'@next/next/no-img-element': 'off',
'@next/next/no-assign-module-variable': 'off',
// TypeScript 관련 무시
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
// 기타 기존 룰
'prettier/prettier': 'off',
'react/prop-types': 'off',
},
},
]