eslint not working as expected on Webpack + TypeScript template project
- Dominant language
- TypeScript
- Stars
- 7.1k
- Forks
- 641
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 30
Description
### Pre-flight checklist
- [x] I have read the [contribution documentation](https://github.com/electron/forge/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [code of conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project uses.
- [X] I have searched the issue tracker for a bug that matches the one I want to file, without success.
### Electron Forge version
6.2.1
### Electron version
25.3.1
### Operating system
macOS Ventura 13.4
### Last known working Electron Forge version
_No response_
### Expected behavior
Running `npm run lint` should output errors such as referring to an undefined variable.
### Actual behavior
Nothing gets outputted
### Steps to reproduce
Create new electron app using the Webpack + TypeScript template:
```bash
npm init electron-app@latest my-new-app -- --template=webpack-typescript
```
Modify l. 31 in `renderer.js` to artificially include a reference to an undefined variable:
```ts
console.log(`👋 This message is being logged by "renderer.js", included via webpack ${a}`); // a is not defined
```
Run eslint:
```bash
npm run eslint
```
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.