Open bestander opened 7 years ago
Could consider adding this ESLint plugin https://github.com/benmosher/eslint-plugin-import and use the no-commonjs
rule in .eslintrc
Report CommonJS require calls and module.exports or exports. (no-commonjs)
Thanks for the suggestion @rally25rs this eslint plugin seems to be quite configurable to handle different scenarios. I am going to take a shot in integrating this.
Do you want to request a feature or report a bug? refactoring
What is the expected behavior?
We need to use ES6 imports for all code and not a mix of imports and requires. This will make code more consistent and easier to automate with tools