Skip to content

public-js/eslint-plugin-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@public-js/eslint-plugin-node

Build Version Downloads Size

CodeQL Codacy Codecov Code Climate

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 the simple-import-sort plugin
  • unicornCjsDefault - predefined config for the unicorn plugin for CJS packages; new rules left untouched
  • unicornCjsOff - predefined config for the unicorn plugin for CJS packages; new rules turned off by default
  • unicornEsmDefault - predefined config for the unicorn plugin for ESM packages; new rules left untouched
  • unicornEsmOff - predefined config for the unicorn plugin for ESM packages; new rules turned off by default

Resources

License

MIT, full license text. Read more about it on TLDRLegal.