1.0.0-beta.4 • Published 8 months ago
@aak.lear/eslint-config-typescript v1.0.0-beta.4
@aak.lear/eslint-config-typescript
This package contains my ESLint rules configuration for TypeScript.
You should already have installed ESLint package to use this configuration.
Install
Install with CLI
Run following command in your project root and select the desired options
npx @aak.lear/eslint-config
Install manually
npm
npm i -D @aak.lear/eslint-config-typescript
yarn
yarn add -D @aak.lear/eslint-config-typescript
For the correct work of configuration you should also install peer dependencies.
Run this command:
npx install-peerdeps --dev @aak.lear/eslint-config-typescript
npm info @aak.lear/eslint-config-typescript peerDependencies
Then install all dependencies from list with this template:
npm
npm i -D <dependency>@<version>
yarn
yarn add -D <dependency>@<version>
Usage
Note: You can skip this configuration step if you chose CLI installation.
Use this extension in your eslint configuration file.
Example for .eslintrc.js
:
module.exports = {
extends: [
'@aak-lear/typescript',
],
};