@sinh117801/eslint-config-typescript
v1.0.8
Published
Sinh's ESLint config presets specific for TypeScript which also includes @sinh117801/eslint-config-standard
Downloads
4
Readme
@sinh117801/eslint-config
Usage
Install
npm install --save-dev eslint @sinh117801/eslint-config-typescript
Config .eslintrc
{
"extends": "@sinh117801/eslint-config-typescript"
}
You don't need
.eslintignore
normally as it has been provided by the preset.
Add script for package.json
For example:
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
Config VS Code auto fix
Install VS Code ESLint extension and create .vscode/settings.json
{
"prettier.enable": false,
"editor.formatOnSave": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}