@trevortan/eslint-config
v0.0.3
Published
ESLint config presets inspired by antfu
Downloads
3
Readme
ESLint Config Presets
Usage
Install
yarn add -D @trevortan/eslint-config
Config .eslintrc
module.exports = {
extends: '@trevortan'
}
Add script for package.json
{
"scripts": {
"lint": "eslint .",
"lint:fix": "eslint . --fix"
}
}
Config VS Code auto fix
- Install ESLint VS Code Plugin
- Create
.vscode/settings.json
{
"prettier.enable": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
}
}