@pyyupsk/eslint-config
v0.3.0
Published
pyyupsk's personal ESLint flat config
Maintainers
Readme
@pyyupsk/eslint-config
Personal ESLint flat config with TypeScript, Unicorn, Perfectionist, Stylistic, and Vue presets.
Install
bun add -D @pyyupsk/eslint-config eslintUsage
defineConfig (recommended)
Single entry point that composes presets. .gitignore is automatically respected — no need to list those paths manually.
// eslint.config.mjs
import { defineConfig } from "@pyyupsk/eslint-config";
export default defineConfig({
ignores: ["dist/**"], // additional ignores on top of .gitignore
perfectionist: true,
stylistic: true,
vue: true, // or { unocss: true }
});Options:
| Option | Type | Default | Description |
| --------------- | ----------------------- | ------- | ---------------------------------- |
| ignores | string[] | [] | Additional glob patterns to ignore |
| perfectionist | boolean | false | Enable perfectionist preset |
| stylistic | boolean | false | Enable stylistic preset |
| vue | boolean \| VueOptions | false | Enable Vue preset |
Manual composition
Individual presets are also exported for custom setups. core always handles global ignores.
import { core, perfectionist, stylistic, vue } from "@pyyupsk/eslint-config";
export default [
...core({ ignores: ["dist/**"] }),
...perfectionist(),
...stylistic(),
...vue({ unocss: true }),
];Rules
Core (always enabled)
| Rule | Setting |
| ------------------------------------------------ | ----------- |
| @typescript-eslint/consistent-type-definitions | type only |
| @typescript-eslint/no-explicit-any | error |
| unicorn/prefer-string-replace-all | error |
| unicorn/prefer-at | error |
| unicorn/prefer-structured-clone | error |
| unicorn/prefer-number-properties | error |
| prefer-object-has-own | error |
Vue
| Rule | Setting |
| -------------------------------- | ------- |
| vue/multi-word-component-names | off |
License
MIT
