Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps!: update eslint-config-ipfs #1374

Merged
merged 2 commits into from
Sep 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
"env-paths": "^3.0.0",
"esbuild": "^0.19.2",
"eslint": "^8.31.0",
"eslint-config-ipfs": "^5.0.0",
"eslint-config-ipfs": "^6.0.0",
"eslint-plugin-etc": "^2.0.2",
"eslint-plugin-import": "^2.18.0",
"eslint-plugin-jsdoc": "^46.4.3",
Expand Down
4 changes: 2 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,12 +253,12 @@ interface TestOptions {
* Before tests hook
*/
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
before: (options: GlobalOptions & TestOptions) => Promise<TestBeforeResult | void >
before(options: GlobalOptions & TestOptions): Promise<TestBeforeResult | void >
/**
* After tests hook
*/
// eslint-disable-next-line @typescript-eslint/no-invalid-void-type
after: (options: GlobalOptions & TestOptions, beforeResult: TestBeforeResult | void) => Promise<void>
after(options: GlobalOptions & TestOptions, beforeResult: TestBeforeResult | void): Promise<void>
}

interface TestBeforeResult {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export interface ExportedButNotInExports {
aMethod: () => void
aMethod(): void
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export interface ExportedButNotInExports {
aMethod: () => void
aMethod(): void
}
4 changes: 2 additions & 2 deletions test/fixtures/projects/a-ts-project/src/a-module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export interface ExportedButNotInExports {
aMethod: () => void
aMethod(): void
}

export interface UsedButNotExported {
aMethod: () => void
aMethod(): void
}
2 changes: 1 addition & 1 deletion test/fixtures/projects/a-ts-project/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const useDerp = (): void => {
}

export interface AnExportedInterface {
aMethod: () => void
aMethod(): void
}

export type { ExportedButNotInExports } from './a-module.js'
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/projects/an-esm-project/src/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export interface ExportedButNotInExports {
aMethod: () => void
aMethod(): void
}

export interface UsedButNotExported {
aMethod: () => void
aMethod(): void
}