Skip to content

Commit

Permalink
feat: ✨ support eslint v9
Browse files Browse the repository at this point in the history
BREAKING CHANGE: 💥 drop support for `eslint` v8 and require at least
v9.10.0
  • Loading branch information
jimmy-guzman committed Oct 31, 2024
1 parent b0462c4 commit 47d28f8
Show file tree
Hide file tree
Showing 13 changed files with 1,204 additions and 1,254 deletions.
2 changes: 1 addition & 1 deletion .lefthook.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"commands": {
"lint": {
"glob": "*.ts",
"run": "pnpm exec eslint --fix {staged_files}",
"run": "pnpm exec eslint --flag unstable_ts_config --fix {staged_files}",
"stage_fixed": true
},
"format": {
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"eslint.experimental.useFlatConfig": true,
"eslint.useFlatConfig": true,
"eslint.validate": [
"javascript",
"javascriptreact",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ And if you're using [VS Code](https://code.visualstudio.com), make sure to enabl
```jsonc
// .vscode/settings.json
{
"eslint.experimental.useFlatConfig": true,
"eslint.useFlatConfig": true,
}
```

Expand Down
12 changes: 0 additions & 12 deletions eslint.config.mjs

This file was deleted.

3 changes: 3 additions & 0 deletions eslint.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import jimmyDotCodes from "./src";

export default jimmyDotCodes({ autoDetect: true });
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"docs:view": "npx @eslint/config-inspector --open=false",
"format": "prettier --check --cache .",
"format:fix": "prettier --write --cache .",
"lint": "eslint .",
"lint": "eslint --flag unstable_ts_config .",
"lint:fix": "pnpm lint --fix",
"prepack": "pnpm build && clean-pkg-json",
"prepare": "is-ci || lefthook install",
Expand All @@ -48,9 +48,9 @@
},
"prettier": "@jimmy.codes/prettier-config",
"dependencies": {
"@eslint/js": "^8.57.0",
"@eslint/js": "^9.13.0",
"@tanstack/eslint-plugin-query": "^5.59.7",
"@types/eslint": "8.56.10",
"@types/eslint": "9.6.1",
"@types/eslint__js": "8.42.3",
"@typescript-eslint/parser": "^8.12.2",
"@typescript-eslint/utils": "^8.12.2",
Expand All @@ -67,7 +67,7 @@
"eslint-plugin-react-hooks": "^5.0.0",
"eslint-plugin-react-refresh": "0.4.14",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-testing-library": "^6.4.0",
"eslint-plugin-testing-library": "7.0.0-beta.3",
"globals": "^15.11.0",
"local-pkg": "0.5.0",
"typescript-eslint": "^8.12.2"
Expand All @@ -90,8 +90,8 @@
"astro": "4.16.7",
"clean-pkg-json": "1.2.0",
"commitlint": "19.5.0",
"eslint": "8.57.0",
"eslint-typegen": "0.2.4",
"eslint": "9.13.0",
"eslint-typegen": "0.3.2",
"gitzy": "5.4.0",
"is-ci": "3.0.1",
"jiti": "2.3.3",
Expand All @@ -106,7 +106,7 @@
"vitest": "2.1.4"
},
"peerDependencies": {
"eslint": "^8.57.0"
"eslint": "^9.10.0"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
Loading

0 comments on commit 47d28f8

Please sign in to comment.