Closed steinybot closed 3 years ago
@steinybot Looks like this is an issue with Rollup's TS plugin: https://github.com/rollup/plugins/issues/1010
@rollup/plugin-typescript
transforms TS to JS during the load step, so ESLint gets the transpiled JS, not the TS source code.
Google search terms
Describe the bug
ESLint does not run during the build.
How do we reproduce?
Change
src/background/index.ts
to:Run
pnpm build
Expected behavior
Expected:
Actual behavior
No warning.
Screenshots
Please complete the following information:
Additional context
Weird stuff happens if I try and add
eslint()
to theplugins
. It seems to lint some transformed input rather than the original. The warnings/errors don't match up with the source.