Skip to content

jsonz1993/eslint-config

Repository files navigation

@jsonz/eslint-config

Reference @antfu/eslint-config

npm

Usage

Install

pnpm add -D eslint @jsonz/eslint-config

Config .eslintrc

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

Config .eslintignore

dist
public

Add script for package.json

For example:

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

Config VSCode auto fix

Create .vscode/settings.json

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

About

My eslint config preset

Resources

License

Stars

Watchers

Forks

Packages

No packages published