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

eslint-config-recommended

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-recommended

Pluggable ESLint configs for ECMAScript Next, Node.js and React Native that you can import, extend and override

  • 1.3.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

eslint-config

Pluggable ESLint configs for ECMAScript Next, Node.js and React Native that you can import, extend and override

Join the chat at https://gitter.im/kunalgolani/eslint-config npm version npm downloads GitHub issues Deps Dev Deps

Usage

In your js project directory:

npm install --save-dev eslint-config-recommended

Choose the configs you want to include in your .eslintrc.yaml:

---
  extends:
    - recommended/esnext
    - recommended/esnext/style-guide
    - recommended/node
    - recommended/node/style-guide
    - recommended/react-native
    - recommended/react-native/style-guide

Alternatively, in your .eslintrc.js or .eslintrc.json:

{
  "extends": [
    "recommended/esnext",
    "recommended/esnext/style-guide",
    "recommended/node",
    "recommended/node/style-guide",
    "recommended/react-native",
    "recommended/react-native/style-guide"
  ]
}

recommended/node and recommended/react-native extend recommended/esnext

recommended/node/style-guide and recommended/react-native/style-guide extend recommended/esnext/style-guide

If you don't need all these configs, you can also install them individually:

To add a git-hook to your commits, consider using husky

npm install --save-dev husky

And in your package.json:

  "scripts": {
    "precommit": "eslint ."
  }

Config

These configs are biased and opinionated, and err on the side of too many rules instead of too few. Think of them as a superset of your repo's lint config, and discard what you don't like in them. It's easy to override and disable the rules you find inconvenient.

Keywords

FAQs

Package last updated on 08 Aug 2016

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