Skip to content

Commit b104b02

Browse files
lukasviceCopilot
andauthored
eslint 9 (#21)
* update to eslint 9 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * update package-lock.json * remove custom eslint rules * make eslint automatic fixes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * make eslint manual fixes --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 3e66ef5 commit b104b02

21 files changed

Lines changed: 16599 additions & 6979 deletions

.eslintrc.json

Lines changed: 0 additions & 36 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 jest from '@aboutbits/eslint-config/configs/jest'
2+
import ts from '@aboutbits/eslint-config/configs/ts'
3+
import { defineConfig } from 'eslint/config'
4+
5+
export default defineConfig([
6+
ts,
7+
jest,
8+
{
9+
ignores: ['node_modules', 'dist'],
10+
},
11+
])

jest-setup.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
import '@testing-library/jest-dom';
1+
import '@testing-library/jest-dom'

jest.config.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"testEnvironment": "jsdom",
3-
"transform": {
4-
"^.+\\.(t|j)sx?$": "ts-jest"
5-
},
6-
"testRegex": "(/__tests?__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
7-
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
8-
"setupFilesAfterEnv": ["<rootDir>/jest-setup.ts"]
2+
"testEnvironment": "jsdom",
3+
"transform": {
4+
"^.+\\.(t|j)sx?$": "ts-jest"
5+
},
6+
"testRegex": "(/__tests?__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$",
7+
"moduleFileExtensions": ["ts", "tsx", "js", "jsx", "json", "node"],
8+
"setupFilesAfterEnv": ["<rootDir>/jest-setup.ts"]
99
}

0 commit comments

Comments
 (0)