robinloeffel / esbuild-plugin-eslint

Lint your esbuild bundles with eslint. 🧐
https://npmjs.com/esbuild-plugin-eslint
MIT License
7 stars 7 forks source link

Release 0.3.1 will only show errors for one file per repository #6

Closed KKoukiou closed 1 year ago

KKoukiou commented 1 year ago

The problematic line is https://github.com/robinloeffel/esbuild-plugin-eslint/commit/9b25f90c8027c34710d692278a21bd0d54e674bd#diff-88a99604221821c7258fe9c24fc58a4ef42242b97aeae97d6c438db3f62be6cdR23

Eslint will return an array of results, one result per file. With this change you store in the 'result' variable the first item of the array. See: const [result] = [1,2,3,4] result will be here 1

This is not what you want, as in this case, it will ignore all errors apart from the ones for the first file.

robinloeffel commented 1 year ago

hey @KKoukiou! thanks for all the feedback! i've now finally figured out what exactly was necessary and have implemented quite a nice solution. hope this works as expected now! please feel free to test again and report back!

KKoukiou commented 1 year ago

This one is fixed. But in the same release (0.3.1) one more issue was introduced. I reported seperately https://github.com/robinloeffel/esbuild-plugin-eslint/issues/8