This past week I revisited community modules for parallelizing ESLint runs and I found esprint by the wonderful developers at Pinterest. I last looked into this about a year ago and it wasn’t possible to easily get my ESLint configuration to run.
In my setup, I have custom ESLint rules in a local directory and ESLint only accepted the directory on the command-line through the
--rulesdir option. Luckily there have been two changes since I last looked into this:
- ESLint now supports a
.eslintrc.jsfile which lets developers write more complex configurations.
- The module eslint-plugin-rulesdir lets me easily configure the
--rulesdirsetting in my new
After these changes I was easily able to set up
esprint and go from a run time of 1.5 minutes to 30 seconds.