diff --git a/.eslintrc.cjs b/.eslintrc.cjs index 5bb87a1..91f6920 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -5,7 +5,7 @@ module.exports = { es6: true, }, extends: ['standard', 'plugin:svelte/recommended', 'prettier'], - plugins: ['svelte', 'simple-import-sort', 'json-files'], + plugins: ['svelte', 'simple-import-sort'], rules: { 'simple-import-sort/imports': 'error', 'simple-import-sort/exports': 'error', @@ -31,14 +31,6 @@ module.exports = { 'plugin:@typescript-eslint/stylistic', 'prettier', ], - rules: { - '@typescript-eslint/ban-types': [ - 'error', - { types: { '{}': false }, extendDefaults: true }, - ], - '@typescript-eslint/no-explicit-any': 'off', - 'import/export': 'off', - }, }, ], parserOptions: { diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d4a16b5..c9eb8a7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -29,6 +29,8 @@ updates: versions: ['>=9'] - dependency-name: 'eslint-plugin-n' versions: ['>=17'] + - dependency-name: 'eslint-plugin-promise' + versions: ['>=7'] # Update GitHub Actions dependencies - package-ecosystem: 'github-actions' diff --git a/package.json b/package.json index 15fcd34..6581340 100644 --- a/package.json +++ b/package.json @@ -97,8 +97,8 @@ "@sveltejs/vite-plugin-svelte": "^3.1.1", "@testing-library/jest-dom": "^6.3.0", "@testing-library/user-event": "^14.5.2", - "@typescript-eslint/eslint-plugin": "^7.16.0", - "@typescript-eslint/parser": "^7.16.0", + "@typescript-eslint/eslint-plugin": "^8.0.0", + "@typescript-eslint/parser": "^8.0.0", "@vitest/coverage-v8": "^2.0.2", "all-contributors-cli": "^6.26.1", "doctoc": "^2.2.1", @@ -106,7 +106,6 @@ "eslint-config-prettier": "^9.1.0", "eslint-config-standard": "^17.1.0", "eslint-plugin-import": "^2.29.1", - "eslint-plugin-json-files": "^4.1.0", "eslint-plugin-n": "^16.6.2", "eslint-plugin-promise": "^6.4.0", "eslint-plugin-simple-import-sort": "^12.1.1", diff --git a/src/__tests__/types.test-d.ts b/src/__tests__/types.test-d.ts index 9927a05..077bbcd 100644 --- a/src/__tests__/types.test-d.ts +++ b/src/__tests__/types.test-d.ts @@ -90,6 +90,7 @@ describe('types', () => { expectTypeOf(subject.fireEvent.click).toMatchTypeOf< ( element: Element | Node | Document | Window, + // eslint-disable-next-line @typescript-eslint/no-empty-object-type options?: {} ) => Promise >()