2.1.0 • Published 10 months ago

@motech-development/eslint-config-motech-react v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

npm size

Motech Development ESLint config for React apps

Reusable ESLint config

Installation

  1. Install @motech-development/eslint-config-motech-react as a development dependency.
# Yarn
yarn add -D @motech-development/eslint-config-motech-react

# NPM
npm i -D @motech-development/eslint-config-motech-react
  1. Extend your ESLint config.
{
  "extends": "@motech-development/eslint-config-motech-react"
}
module.exports = {
  extends: '@motech-development/eslint-config-motech-react',
};
  1. Configure TypeScript by ensuring there is both a tsconfig.json and tsconfig.eslint.json file in your project. The latter config is for any additional files that are outside your TypeScript project that are picked up by ESLint.