Skip to content

Commit

Permalink
Merge pull request #15 from cnkang/dev
Browse files Browse the repository at this point in the history
upgrade eslint to v9
  • Loading branch information
cnkang authored Oct 18, 2024
2 parents f962cb0 + ba56ddf commit cbde0df
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 156 deletions.
6 changes: 0 additions & 6 deletions .eslintrc.json

This file was deleted.

13 changes: 13 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});
export default [...compat.extends("next/core-web-vitals", "next/typescript")];
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
},
"devDependencies": {
"@eslint/config-array": "^0.18.0",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.12.0",
"@eslint/object-schema": "^2.1.4",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.0.1",
Expand All @@ -39,7 +41,7 @@
"dotenv": "^16.4.5",
"dotenv-cli": "^7.4.2",
"esbuild": "^0.24.0",
"eslint": "^8.57.1",
"eslint": "^9.12.0",
"eslint-config-next": "^14.2.15",
"happy-dom": "^15.7.4",
"typescript": "^5.6.2",
Expand All @@ -52,6 +54,7 @@
],
"resolutions": {
"glob": "^11",
"rimraf": "^4"
"rimraf": "^4",
"eslint-config-next": "^15.0.0-rc.1"
}
}
Loading

0 comments on commit cbde0df

Please sign in to comment.