Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Aug 3, 2023
1 parent 0d5aaa0 commit e861299
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/util/module-resolution/module-resolution-util.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type {TS} from "../../type/ts";
import type {TS} from "../../type/ts.js";

/**
* On TypeScript versions 4.5 and 4.6, nodenext is available as a Compiler Option, but selecting it
Expand Down
3 changes: 2 additions & 1 deletion src/util/plugin-options/get-plugin-options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import TSModule from "typescript";
import type {Transpiler, TranspilerOptions, TypescriptPluginOptions} from "../../plugin/typescript-plugin-options.js";
import {ensureAbsolute} from "../path/path-util.js";
import path from "crosspath";
import type {TS} from "../../type/ts.js";

/**
* Gets normalized PluginOptions based on the given ones
Expand All @@ -26,7 +27,7 @@ export function getPluginOptions(options: Partial<TypescriptPluginOptions>): Typ
} = options;

return {
typescript,
typescript: typescript as typeof TS,
transpiler,
browserslist,
cwd: ensureAbsolute(process.cwd(), cwd),
Expand Down
2 changes: 2 additions & 0 deletions test/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ test.serial("Integrates with @rollup/plugin-alias without problems. #1", "*", as
debug: false,
tsconfig: "tsconfig.json",
prePlugins: [
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
alias({
entries: [{find: "@src", replacement: "src"}]
})
Expand Down
2 changes: 2 additions & 0 deletions test/json.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ test.serial("Handles .JSON files that has been pre-transformed by other plugins.
typescript,
rollup,
debug: false,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
prePlugins: [json()],
tsconfig: {
resolveJsonModule: true
Expand Down
2 changes: 2 additions & 0 deletions test/multi-entry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ test.serial("Can generate declarations for a virtual entry file using @rollup/pl
typescript,
rollup,
debug: false,
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
prePlugins: [multiEntry()]
}
);
Expand Down

0 comments on commit e861299

Please sign in to comment.