Tailored ESLint configurations
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>',
],
// ...
};
imports
- predefined config for thesimple-import-sort
pluginunicornCjsDefault
- predefined config for theunicorn
plugin for CJS packages; new rules left untouchedunicornCjsOff
- predefined config for theunicorn
plugin for CJS packages; new rules turned off by defaultunicornEsmDefault
- predefined config for theunicorn
plugin for ESM packages; new rules left untouchedunicornEsmOff
- predefined config for theunicorn
plugin for ESM packages; new rules turned off by default
MIT, full license text. Read more about it on TLDRLegal.