From 574c1e43d50bda29b599195d72ddfe0e0634b40e Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 3 Aug 2024 07:48:47 -0400 Subject: [PATCH] chore(deps-dev): bump the lint group with 2 updates (#397) * chore(deps-dev): bump the lint group with 2 updates Bumps the lint group with 2 updates: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) and [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser). Updates `@typescript-eslint/eslint-plugin` from 7.18.0 to 8.0.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.0.0/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 7.18.0 to 8.0.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.0.0/packages/parser) --- updated-dependencies: - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-major dependency-group: lint - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-major dependency-group: lint ... Signed-off-by: dependabot[bot] Co-authored-by: Michael Cousins --- .eslintrc.cjs | 10 +--------- .github/dependabot.yml | 2 ++ package.json | 5 ++--- src/__tests__/types.test-d.ts | 1 + 4 files changed, 6 insertions(+), 12 deletions(-) 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 >()