@instacart/eslint-config

0.3.0 • Public • Published

@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/

Readme

Keywords

none

Package Sidebar

Install

npm i @instacart/eslint-config

Weekly Downloads

2,094

Version

0.3.0

License

MIT

Unpacked Size

91.3 kB

Total Files

24

Last publish

Collaborators

  • dcocchia
  • wfro
  • ninjabanjo
  • nmarks
  • ic-npm