Skip to content

Commit 156b0dd

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

4 files changed

Lines changed: 29 additions & 83 deletions

File tree

.eslintignore

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

.eslintrc.json

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

eslint.config.mjs

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import formatjs from '@aboutbits/eslint-config/configs/formatjs'
2+
import jest from '@aboutbits/eslint-config/configs/jest'
3+
import react from '@aboutbits/eslint-config/configs/react'
4+
import ts from '@aboutbits/eslint-config/configs/ts'
5+
import { defineConfig } from 'eslint/config'
6+
7+
export default defineConfig([
8+
ts,
9+
react,
10+
jest,
11+
formatjs,
12+
{
13+
rules: {
14+
'import/order': [
15+
'error',
16+
{
17+
groups: ['builtin', 'external', 'unknown', 'parent', 'sibling', 'index'],
18+
},
19+
],
20+
},
21+
},
22+
{
23+
ignores: ['dist', 'node_modules'],
24+
},
25+
])

package.json

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
"build:esm": "tsc --project tsconfig.build.esm.json",
4444
"translations:extract": "formatjs extract 'src/**/*.{js,ts}' --out-file translations-template.json --format simple",
4545
"translations:diff": "echo 'de:' && json-diff --keys-only src/translations/de.json translations-template.json && echo 'it:' && json-diff --keys-only src/translations/it.json translations-template.json",
46-
"lint": "eslint --cache --ext js,ts,tsx,json .",
47-
"lint:fix": "npm run lint -- --cache --fix",
46+
"lint": "eslint --cache",
47+
"lint:fix": "npm run lint -- --fix",
4848
"typecheck": "tsc --noEmit",
4949
"test": "jest --config jest.config.js --passWithNoTests",
5050
"prepare": "npm run build",
@@ -57,20 +57,12 @@
5757
"zod": "^3"
5858
},
5959
"devDependencies": {
60+
"@aboutbits/eslint-config": "^5.1.0",
6061
"@formatjs/cli": "^6.7.2",
6162
"@types/jest": "^30.0.0",
6263
"@types/node": "^22",
63-
"@typescript-eslint/eslint-plugin": "^7.18.0",
64-
"@typescript-eslint/parser": "^7.18.0",
6564
"babel-jest": "^30.0.4",
66-
"eslint": "^8.57.1",
67-
"eslint-config-prettier": "^10.1.5",
68-
"eslint-plugin-formatjs": "~4.13.3",
69-
"eslint-plugin-import": "^2.32.0",
70-
"eslint-plugin-jest": "^28.14.0",
71-
"eslint-plugin-prettier": "^5.5.1",
72-
"eslint-plugin-react": "^7.37.5",
73-
"eslint-plugin-react-hooks": "^4.6.2",
65+
"eslint": "^9.39.0",
7466
"jest": "^30.0.4",
7567
"json-diff": "^1.0.6",
7668
"prettier": "^3.6.2",

0 commit comments

Comments
 (0)