-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
43 lines (43 loc) ยท 1.42 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
42
43
module.exports = {
root: true,
env: {
browser: true,
es2020: true,
node: true,
},
ignorePatterns: [
"dist",
".eslintrc.cjs",
"vite.config.ts",
"/test/*",
"jest.config.cjs"],
extends: [
'plugin:react-hooks/recommended',
'airbnb',
"airbnb-typescript",
'next'
],
parser: "@typescript-eslint/parser",
plugins: ["react-refresh", "@stylistic/eslint-plugin"],
rules: {
"react-refresh/only-export-components": [
"warn",
{ allowConstantExport: true },
],
"linebreak-style":"off",
"react/react-in-jsx-scope": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx",".ts", ".tsx"] }],
"import/no-absolute-path" : "off",
"@typescript-eslint/no-unused-vars" : "off", // ํ์ฅ๊ฐ๋ฅ์ฑ ๋ฌธ์ ๋ก ์๋ต.
"react/jsx-no-useless-fragment" : "off",
"consistent-return" : "off",
"react/no-unescaped-entities": "off",
"@next/next/no-page-custom-font": "off", // ๋น๋์ ๋ฌธ์ .
"@typescript-eslint/no-use-before-define" : "off", // ์ปดํฌ๋ํธ๋ฅผ ๋จผ์ ๋ณด๋๊ฒ ๋ ๊ฐ๋
์ฑ์ด ์ข๋ค๋ ์๊ฒฌ์ด ์์ด์ ์๋ต.
'react/function-component-definition':[2, {namedcomponents:'arrow-function'}], // ์ด๋ฏธ ๋๋ฌด ๋ง์ ์นจ๋ฒ์ด ์ผ์ด๋จ.
'react/require-default-props' : "off", // ํจ์ํ ์ ์์์ ๋ํดํธ๊ฐ์ ๊ฐ์ง๊ฒ ํ์ฌ๋ ๊ด์ฐฎ์.
},
parserOptions: {
project: "./tsconfig.json",
},
};