Skip to content

Commit c8d918e

Browse files
authored
chore(react): use ts-ignore for ecosystem-ci (#956)
1 parent b5f471f commit c8d918e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

packages/plugin-react/src/index.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ export default function viteReact(opts: Options = {}): Plugin[] {
189189
configResolved(config) {
190190
runningInVite = true
191191
base = config.base
192-
// @ts-expect-error only available in newer rolldown-vite
192+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- use ts-ignore for ecosystem-ci
193+
// @ts-ignore only available in newer rolldown-vite
193194
if (config.experimental.fullBundleMode) {
194195
isFullBundle = true
195196
}
@@ -225,9 +226,11 @@ export default function viteReact(opts: Options = {}): Plugin[] {
225226
},
226227
options(options) {
227228
if (!runningInVite) {
228-
// @ts-expect-error Rolldown has `transform.jsx`
229+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- use ts-ignore for ecosystem-ci
230+
// @ts-ignore Rolldown has `transform.jsx`
229231
options.transform ??= {}
230-
// @ts-expect-error Rolldown has `transform.jsx`
232+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- use ts-ignore for ecosystem-ci
233+
// @ts-ignore Rolldown has `transform.jsx`
231234
options.transform.jsx = {
232235
runtime: opts.jsxRuntime,
233236
importSource: opts.jsxImportSource,

0 commit comments

Comments
 (0)