ESLint rules for TypeScript
Note: This package was not developed on demand for general use, the rules that are configured in it refer to the use of specific projects for the needs of the owner. Use it if you need such rules for your linter
- npm
npm install --save-dev @amollo-lint/eslint-config-ts eslint typescript
- yarn
yarn add -D @amollo-lint/eslint-config-ts eslint typescript
Create a tsconfig.json file:
$ tsc --init
Set your eslint config to:
{
"extends": "@amollo-lint/eslint-config-ts",
"parserOptions": {
"project": "tsconfig.json"
}
}
@amollo-lint/eslint-config-js
@typescript-eslint/eslint-plugin
@typescript-eslint/parser