@public-js/eslint-plugin-node
Tailored ESLint configurations
Installing
Add the package to your project by running:
npm i -D @public-js/eslint-plugin-node
Add the following to your ESLint config or modify the existing properties:
module.exports = {
// ...
extends: [
// ...
'plugin:@public-js/eslint-plugin-node/<config>',
],
// ...
};
Configs
-
imports
- predefined config for thesimple-import-sort
plugin -
unicornCjsDefault
- predefined config for theunicorn
plugin for CJS packages; new rules left untouched -
unicornCjsOff
- predefined config for theunicorn
plugin for CJS packages; new rules turned off by default -
unicornEsmDefault
- predefined config for theunicorn
plugin for ESM packages; new rules left untouched -
unicornEsmOff
- predefined config for theunicorn
plugin for ESM packages; new rules turned off by default
Resources
License
MIT, full license text. Read more about it on TLDRLegal.