0.3.0 • Published 5 years ago
@instacart/eslint-config v0.3.0
@instacart/eslint-plugin
Instacart's shared ESLint configuration.
Installation
$ yarn add --dev @instacart/eslint-configUsage
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/.tsxfiles 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/