forked from 9oormthonUniv-seoultech/PROJECT_TEAM_WEB_FE2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
29 lines (27 loc) · 1013 Bytes
/
eslint.config.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
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";
import prettierConfig from "eslint-config-prettier";
import prettierPlugin from "eslint-plugin-prettier";
export default [
{ files: ["**/*.{js,mjs,cjs,ts,jsx,tsx}"] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
// Prettier 설정 추가
prettierConfig, // Prettier 설정이 ESLint 포맷 규칙을 덮어씌움
{
plugins: {
prettier: prettierPlugin,
},
rules: {
"react/react-in-jsx-scope": "off", //React를 import하지 않아도 react를 사용 가능
"prettier/prettier": ["error", { endOfLine: "auto" }], // Prettier 규칙을 ESLint 오류로 표시
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/no-explicit-any": "off",
},
env: { node: true },
},
];