robinloeffel / esbuild-plugin-eslint

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

Added patterns option: control by glob pattern which file get linted. #1

Closed YPetremann closed 2 years ago

YPetremann commented 2 years ago

This proposition allow selecting which files get linted:

robinloeffel commented 2 years ago

I will decline this PR. In https://github.com/robinloeffel/esbuild-plugin-eslint/commit/e05473583ab02dba37d622ad393231f70b500cdf I've added your fix along with the ability to freely define a filter directly for eslint, in order to achieve more flexibility and remedy the problem mentioned here https://github.com/robinloeffel/esbuild-plugin-eslint/issues/2#issuecomment-1081865618. Thanks for helping out and thinking of solutions, I took some inspiration from here!