-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
38 lines (38 loc) ยท 1.5 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
module.exports = {
env: {
// ์ ์ญ ๋ณ์ ์ฌ์ฉ์ ์ ์ํฉ๋๋ค. ์ถ๊ฐํ์ง ์์ผ๋ฉด ESLint ๊ท์น์ ๊ฑธ๋ฆฌ๊ฒ ๋ฉ๋๋ค.
browser: true,
es6: true,
node: true,
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:@typescript-eslint/recommended', // ํด๋น ํ๋ฌ๊ทธ์ธ์ ๊ถ์ฅ ๊ท์น์ ์ฌ์ฉํฉ๋๋ค.
],
parser: '@typescript-eslint/parser', // ESLint ํ์๋ฅผ ์ง์ ํฉ๋๋ค.
parserOptions: {
ecmaFeatures: {
jsx: true, // JSX๋ฅผ ํ์ฑํ ์ ์์ต๋๋ค.
},
ecmaVersion: 12, // Modern ECMAScript๋ฅผ ํ์ฑํ ์ ์์ต๋๋ค.
sourceType: 'module', // import, export๋ฅผ ์ฌ์ฉํ ์ ์์ต๋๋ค.
},
plugins: ['react', '@typescript-eslint'],
rules: {
// ESLint ๊ท์น์ ์ง์ ํฉ๋๋ค. extends์์ ์ง์ ๋ ๊ท์น์ ๋ฎ์ด ์ธ์๋ ์์ต๋๋ค.
'react/react-in-jsx-scope': 'off',
'react/prop-types': 'off',
'react/no-unknown-property': ['error', { ignore: ['css'] }],
'react/no-unescaped-entities': 'off',
'@next/next/no-page-custom-font': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'no-useless-escape': 'off',
},
settings: {
react: {
version: 'detect', // ํ์ฌ ์ฌ์ฉํ๊ณ ์๋ react ๋ฒ์ ์ eslint-plugin-react๊ฐ ์๋์ผ๋ก ๊ฐ์งํฉ๋๋ค.
},
},
ignorePatterns: ['!.storybook', 'next.config.js', 'public/*.js'],
};