-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patheslint.config.js
More file actions
32 lines (31 loc) · 955 Bytes
/
eslint.config.js
File metadata and controls
32 lines (31 loc) · 955 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
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import pluginReact from "eslint-plugin-react";
import { defineConfig } from "eslint/config";
import importPlugin from "eslint-plugin-import";
export default defineConfig([
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
plugins: { js, 'import': importPlugin },
extends: ["js/recommended", "plugin:import/typescript"],
settings: {
'import/resolver': {
typescript: {},
},
},
},
{ files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
languageOptions: { globals: globals.browser },
},
tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
rules: {
"react/react-in-jsx-scope": "off",
"import/no-unresolved": "off", // TS 에서 이미 처리하는 규칙이므로 비활성화
},
},
]);