Socket
Socket
Sign inDemoInstall

@instacart/eslint-config

Package Overview
Dependencies
3
Maintainers
5
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @instacart/eslint-config

Instacart's ESLint configuration


Version published
Maintainers
5
Install size
116 kB
Created

Readme

Source

@instacart/eslint-plugin

NPM version

Instacart's shared ESLint configuration.

Installation

$ yarn add --dev @instacart/eslint-config

Usage

To use all of the eslint rules, simply extend the package (@instacart/eslint-config). This includes rules for TypeScript and integration with Prettier.

// .eslintrc.js
module.exports = {
  extends: ['@instacart/eslint-config'],
}

The package allows for selective use by exposing the following configs to extend:

  • @instacart/eslint-config/core (required) - core eslint rules for all projects
  • @instacart/eslint-config/react - rules from eslint-plugin-react, eslint-plugin-react-hooks and eslint-plugin-jsx-a11y
  • @instacart/eslint-config/typescript - sets up overrides for .ts/.tsx files using the parser and rules from typescript-eslint
  • @instacart/eslint-config/prettier - extends the prettier rule configurations to disable the appropriate eslint rules and adds the prettier plugin for integration with eslint https://prettier.io/

FAQs

Last updated on 22 Feb 2021

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc