eslint-plugin
eslint-plugin copied to clipboard
Lazy load module config
The @babel/eslint-parser module is essentially a hard dependency, since the "module" config with a require('@babel/eslint-parser') is always loaded.
This is fixed in this PR by deferring the require() until it is first accessed. This allows it to work with code bases that use the "recommended" config along with other parsers.