I use ESLint to format and lint my code:
Requires ESLint v9.5.0+
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@latest
If you prefer to set up manually:
pnpm i -D eslint @dhzh/eslint-config
And create eslint.config.mjs
in your project root:
// eslint.config.mjs
import { defineConfig } from '@dhzh/eslint-config';
export default defineConfig();
MIT License © 2022 Lyle Zheng