@dhzh/eslint-config
v1.20.1
Published
Lyle's ESLint config
Readme
@dhzh/eslint-config
I use ESLint to format and lint my code:
| | | |
|---|---|---|
| react | ESLint React eslint-plugin-react-hooks eslint-plugin-react-refresh eslint-plugin-react-compiler eslint-plugin-react-google-translate |
| vue | eslint-plugin-vue vue-eslint-parser eslint-processor-vue-blocks |
| stylistic | ESLint Stylistic eslint-plugin-antfu eslint-plugin-hyoban |
| typescript | typescript-eslint |
| javascript | @eslint/js |
| node | eslint-plugin-n |
| json | eslint-plugin-jsonc eslint-plugin-package-json jsonc-eslint-parser |
| unicorn | eslint-plugin-unicorn |
| imports | eslint-plugin-import-x eslint-plugin-unused-imports eslint-plugin-simple-import-sort |
| formatters | eslint-plugin-format @prettier/plugin-xml | html/css/graphql/xml/svg |
| tailwindcss | eslint-plugin-tailwindcss |
| unocss | @unocss/eslint-config |
| yml | eslint-plugin-yml yaml-eslint-parser |
| toml | eslint-plugin-toml toml-eslint-parser |
| testing | eslint-plugin-vitest eslint-plugin-jest eslint-plugin-no-only-tests |
| regexp | eslint-plugin-regexp |
| eslint-comments | eslint-plugin-eslint-comments |
| markdown | @eslint/markdown |
| jsdoc | eslint-plugin-jsdoc |
Usage
Requires ESLint v9.5.0+
Starter Wizard
We provided a CLI tool to help you set up your project, or migrate from the legacy config to the new flat config with one command.
pnpm dlx @dhzh/eslint-config@latestManual Install
If you prefer to set up manually:
pnpm i -D eslint @dhzh/eslint-configAnd create eslint.config.mjs in your project root:
// eslint.config.mjs
import { defineConfig } from '@dhzh/eslint-config';
export default defineConfig();License
MIT License © 2022 Lyle Zheng
