Skip to content

Commit 8ba8cf1

Browse files
committed
🏷️ import { defineConfig } from "eslint/config"
1 parent f190820 commit 8ba8cf1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

eslint.config.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import eslint from "@eslint/js"
22
import prettier from "eslint-config-prettier"
3-
import globals from "globals"
3+
import { browser, node } from "globals"
44
import tseslint from "typescript-eslint"
5+
import { defineConfig } from "eslint/config"
56

6-
export default tseslint.config(
7+
export default defineConfig(
78
{
89
languageOptions: {
9-
globals: { ...globals.browser, ...globals.node },
10+
globals: { ...browser, ...node },
1011
parserOptions: { project: "./tsconfig.eslint.json" },
1112
},
1213
},

0 commit comments

Comments
 (0)