Skip to content

Commit fcc4b05

Browse files
authored
chore: migrate to ESLint v9 (#94)
1 parent 3c4a99e commit fcc4b05

File tree

3 files changed

+504
-598
lines changed

3 files changed

+504
-598
lines changed

eslint.config.mjs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import tseslint from "typescript-eslint";
44
import pluginReact from "eslint-plugin-react";
55
import pluginReactHooks from "eslint-plugin-react-hooks";
66
import pluginJsxA11y from "eslint-plugin-jsx-a11y";
7+
import { defineConfig, globalIgnores } from "@eslint/config-helpers";
78

8-
export default [
9+
export default defineConfig([
910
pluginJs.configs.recommended,
1011
...tseslint.configs.recommended,
1112
pluginReact.configs.flat.recommended,
@@ -35,7 +36,5 @@ export default [
3536
},
3637
},
3738
},
38-
{
39-
ignores: ["**/*.config.js", "build/**"],
40-
},
41-
];
39+
globalIgnores(["**/*.config.js", "build/**"]),
40+
]);

0 commit comments

Comments
 (0)