Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-usecases

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-usecases

ESLint configs by usecase

  • 3.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-14.29%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-config-usecases

NPM version Build Status

ESLint configs by usecase with a strong bias towards quality, strictness and the decision to ban useless semicolons (;) for legibility and efficiency (cf. the "semi" never rule).

Those ESLint configs are devised around some specific use cases of JavaScript:

All those usecases have their special env and rules set, while inheriting some common properties.

Usage

If not already present, install the eslint package locally in your project:

$ npm install eslint --save-dev

Then, still in your project, locally install the eslint-config-usecases package:

$ npm install eslint-config-usecases --save-dev

And finally, you have to add an .eslintrc.js file at the root of your project with the following content:

module.exports = {
    extends: 'usecases/usecase/nodejs'
}

And you can change usecases/usecase/nodejs to the value of the corresponding usecase.

Note that you can add many different .eslintrc.js files in the tree structure of your project depending on what is inside each directory.

For more information read ESLint Shareable Configs

Note

Because JavaScript is more powerful, flexible and expressive, I prefer to use JavaScript ESLint configuration files over JSON or YML. That's why there isn't any .eslintrc, .eslintrc.json or .eslintrc.yml files.

Contributions

Those use cases are focusing only on some needs on purpose. Exhaustiveness is not intended. Feel free to contribute if you have similar needs.

Keywords

FAQs

Package last updated on 19 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc