@estjs/eslint-config-monorepo
v0.2.8
Published
Downloads
2
Readme
@estjs/eslint-config
Forked from antfu/eslint-config
Usage
pnpm i -D @estjs/eslint-config-basic # JavaScript only
# Or yarn add -D / npm install -D
pnpm i -D @estjs/eslint-config-ts # JavaScript and TypeScript
pnpm i -D @estjs/eslint-config-vue # JavaScript, TypeScript and Vue 3
pnpm i -D @estjs/eslint-config-vue2 # JavaScript, TypeScript and Vue 2
pnpm i -D @estjs/eslint-config-prettier # Prettier only
pnpm i -D @estjs/eslint-config # JavaScript, TypeScript, Vue 3&2 and Prettier
Install
pnpm add -D eslint @estjs/eslint-config
Config .eslintrc
{
"extends": ["@estjs/eslint-config"]
}
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
}
}