2.2.4 • Published 9 months ago
@motech-development/eslint-config-motech-react v2.2.4
Motech Development ESLint config for React apps
Reusable ESLint config
Installation
- Install
@motech-development/eslint-config-motech-reactas a development dependency.
# Yarn
yarn add -D @motech-development/eslint-config-motech-react
# NPM
npm i -D @motech-development/eslint-config-motech-react- Extend your ESLint config.
{
"extends": "@motech-development/eslint-config-motech-react"
}module.exports = {
extends: '@motech-development/eslint-config-motech-react',
};- Configure TypeScript by ensuring there is both a
tsconfig.jsonandtsconfig.eslint.jsonfile in your project. The latter config is for any additional files that are outside your TypeScript project that are picked up by ESLint.