0.1.1 • Published 5 years ago
@ebot7/eslint-config-typescript v0.1.1
@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-typescriptor
npm install -D eslint @ebot7/eslint-config @ebot7/eslint-config-typescriptUsage
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