studnitz / eslint-config

My eslint config preset

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@antfu/eslint-config

npm

Usage

Install

pnpm add -D eslint @antfu/eslint-config

Config .eslintrc

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

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

About

My eslint config preset

License:MIT License


Languages

Language:JavaScript 99.0%Language:TypeScript 1.0%