0.0.3 • Published 6 months ago

@trevortan/eslint-config v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

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
  }
}