Equisoft's ESLint configuration
This project hosts Equisoft's ESLint configuration for TypeScript.
It is versatile enough to be used with NodeJS or Web projects.
Versioning
The versioning of this project respects semver.
That means your project's package.json can caret (^
) import it.
Installation
Install the prerequisites.
Install the extra libraries from eslint-config-react
Install the extra libraries from eslint-config-typescript
Install the libraries in your project:
yarn add --dev @equisoft/eslint-config-typescript-react
Then create a .eslintrc.json
file that uses Equisoft's configuration:
{
"extends": ["@equisoft/eslint-config-typescript-react"]
}
Finally create a script in your package.json
to easily run ESLint:
{
"scripts": {
"eslint": "eslint src",
"eslint:ci": "yarn eslint"
}
}
Now you can use yarn eslint
to validate the code style of your TypeScript files!
Continuous Integration
See here.
Migrating an existing codebase
See here.