@ayingott/eslint-config
v1.4.10
Published
@ayingott/eslint-config
Downloads
350
Readme
@ayingott/eslint-config
An ESlint config suits my taste.
Usage
ni -D eslint @ayingott/eslint-config
It has already integrated with prettier. You can also refer to @ayingott/prettier-config.
With custom configs
// eslint.config.js
// @ts-check
import { defineConfig } from "@ayingott/eslint-config"
export default defineConfig({
// custom configs
})
Port with @antfu/eslint-config
// eslint.config.js
// @ts-check
import { defineConfig } from "@ayingott/eslint-config/antfu"
export default defineConfig({
// custom configs
})
VSCode
.vscode/settings.json
with prettier
{
"eslint.experimental.useFlatConfig": true,
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
}
}