Skip to content

Commit e31c483

Browse files
lukasviceCopilot
andcommitted
update to eslint 9
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent affde62 commit e31c483

3 files changed

Lines changed: 14 additions & 18 deletions

File tree

.eslintrc.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import react from '@aboutbits/eslint-config/configs/react'
2+
import ts from '@aboutbits/eslint-config/configs/ts'
3+
import { defineConfig } from 'eslint/config'
4+
5+
export default defineConfig([
6+
ts,
7+
react,
8+
{
9+
ignores: ['node_modules', 'dist', 'vite.config.mts'],
10+
},
11+
])

package.json

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"build": "rimraf dist && npm run build:esm && npm run build:cjs",
3939
"build:esm": "tsc -p tsconfig.esm.json",
4040
"build:cjs": "tsc -p tsconfig.cjs.json",
41-
"lint": "eslint --cache .",
41+
"lint": "eslint --cache",
4242
"lint:fix": "npm run lint -- --fix",
4343
"test": "vitest run --passWithNoTests",
4444
"test:watch": "vitest watch --passWithNoTests",
@@ -51,7 +51,7 @@
5151
"postversion": "git push && git push --tags"
5252
},
5353
"devDependencies": {
54-
"@aboutbits/eslint-config": "^4.0.3",
54+
"@aboutbits/eslint-config": "^5.1.0",
5555
"@aboutbits/prettier-config": "^2.0.2",
5656
"@aboutbits/ts-config": "^1.1.16",
5757
"@testing-library/jest-dom": "^6.4.2",
@@ -60,15 +60,7 @@
6060
"@types/react": "^18.2.70",
6161
"@types/react-dom": "^18.2.22",
6262
"@types/react-router-dom": "^5.3.3",
63-
"@typescript-eslint/eslint-plugin": "^7.3.1",
64-
"eslint": "^8.57.0",
65-
"eslint-plugin-import": "^2.29.1",
66-
"eslint-plugin-jest": "^27.9.0",
67-
"eslint-plugin-jsx-a11y": "^6.8.0",
68-
"eslint-plugin-prettier": "^5.1.3",
69-
"eslint-plugin-react": "^7.34.1",
70-
"eslint-plugin-react-hooks": "^6.1.0",
71-
"eslint-plugin-tailwindcss": "^3.15.1",
63+
"eslint": "^9.39.0",
7264
"jsdom": "^24.0.0",
7365
"next": "^14.1.4",
7466
"next-router-mock": "^0.9.12",

0 commit comments

Comments
 (0)