@ebot7/eslint-config-typescript
v0.1.1
Published
Shared ESLint configuration for TypeScript projects
Downloads
5
Keywords
Readme
@ebot7/eslint-config-typescript
Base ESLint configuration for e-bot7 projects
Installation
It's highly recommended to also install base configuration
yarn add -D eslint @ebot7/eslint-config @ebot7/eslint-config-typescript
or
npm install -D eslint @ebot7/eslint-config @ebot7/eslint-config-typescript
Usage
In your .eslintrc.json
file (with base configuration)
{
"extends": ["@ebot7/eslint-config", "@ebot7/eslint-config-typescript"]
}
Then in package.json
you can add the following script
{
"scripts": {
+ "lint": "eslint ."
}
}
to use from command line
yarn lint # To report the linting errors in your project
yarn lint --fix # To fix the errors that can be fixed automatically