@motech-development/eslint-config-motech-react
v2.1.0
Published
Reusable ESLint config for React apps
Downloads
283
Readme
Motech Development ESLint config for React apps
Reusable ESLint config
Installation
- 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
- 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.json
andtsconfig.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.