@motech-development/eslint-config-motech-base
v3.1.0
Published
Reusable ESLint config
Downloads
354
Readme
Motech Development base ESLint config
Reusable ESLint config
Installation
- Install
@motech-development/eslint-config-motech-base
as a development dependency.
# Yarn
yarn add -D @motech-development/eslint-config-motech-base
# NPM
npm i -D @motech-development/eslint-config-motech-base
- Extend your ESLint config.
{
"extends": "@motech-development/eslint-config-motech-base"
}
module.exports = {
extends: '@motech-development/eslint-config-motech-base',
};
- 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.