@linhuibin/eslint-config-monorepo

0.0.4 • Public • Published

@linhuibin/eslint-config

Usage

Install

pnpm add -D eslint @linhuibin/eslint-config

Config .eslintrc

{
  "extends": "@linhuibin"
}

You don't need .eslintignore normally as it has been provided by the preset.

Add script for package.json

For example:

{
  "scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
  }
}

Config VS Code auto fix

Create .vscode/settings.json

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

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @linhuibin/eslint-config-monorepo

Weekly Downloads

1

Version

0.0.4

License

ISC

Unpacked Size

109 kB

Total Files

16

Last publish

Collaborators

  • linhuibin