1.0.1 • Published 2 years ago

@jackjo/eslint-config v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@jackjo/eslint-config

npm

Usage

Install

pnpm add -D eslint @jackjo/eslint-config

Config .eslintrc

{
  "extends": [
    "@jackjo"
  ]
}

Config .eslintignore

dist
public

Add script for package.json

For example:

{
  "scripts": {
    "lint": "eslint \"**/*.{vue,ts,js}\""
  }
}

Config VSCode auto fix

Create .vscode/settings.json

{
  "prettier.enable": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  }
}