Skip to content

Commit

Permalink
fixup: align eslint deps for compat
Browse files Browse the repository at this point in the history
  • Loading branch information
mcous committed Aug 3, 2024
1 parent 9fab9a5 commit a80b52e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
10 changes: 1 addition & 9 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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: {
Expand Down
2 changes: 2 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,8 @@
"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": "^7.0.0",
"eslint-plugin-promise": "^6.4.0",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-svelte": "^2.42.0",
"expect-type": "^0.19.0",
Expand Down
1 change: 1 addition & 0 deletions src/__tests__/types.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<boolean>
>()
Expand Down

0 comments on commit a80b52e

Please sign in to comment.