My personal ESLint configuration. Extends from @sxzz/eslint-config.
npx -y nypm@latest i -D eslint prettier @danielwaltz/eslint-config
Using a TypeScript eslint.config.ts
config file is ideal.
import { danielwaltz } from "@danielwaltz/eslint-config";
export default danielwaltz();
Refer to eslint-flat-config-utils for all available options.
import { danielwaltz } from "@danielwaltz/eslint-config";
export default danielwaltz([...customConfigs])
.prepend([...prependConfigs])
.append([...appendConfigs]);
Install the official Nuxt ESLint module.
npx nuxi module add eslint
Update the generated config.
import { danielwaltz } from "@danielwaltz/eslint-config";
import { withNuxt } from "./.nuxt/eslint.config.mjs";
export default withNuxt(danielwaltz());