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