Typescript: >=3.2.1 <3.8.0
npm install eslint-uniqbit --save-dev
Uninstall tslint extension and install the eslint extension
Install eslint:
npm install eslint --save-dev
create a .eslintrc.json File
Add this line on top of the file
{
"extends": "eslint-uniqbit"
}
Add scripts in your package.json. e.g
"lint": "eslint src/** --ext .js,.ts --no-error-on-unmatched-pattern",
"lintFix": "eslint src/** --ext .js,.ts --no-error-on-unmatched-pattern --fix",
In the following example you can see how rules can be overwritten.
"overrides": [
{
"files": [
"*.ts"
],
"rules": {
"@typescript-eslint/no-explicit-any": "warn"
}
}
]