Skip to content

danielwaltz/eslint-config

Repository files navigation

@danielwaltz/eslint-config npm

My personal ESLint configuration. Extends from @sxzz/eslint-config.

Installation

npx -y nypm@latest i -D eslint prettier @danielwaltz/eslint-config

Usage

Using a TypeScript eslint.config.ts config file is ideal.

import { danielwaltz } from "@danielwaltz/eslint-config";

export default danielwaltz();

Customization

Refer to eslint-flat-config-utils for all available options.

import { danielwaltz } from "@danielwaltz/eslint-config";

export default danielwaltz([...customConfigs])
  .prepend([...prependConfigs])
  .append([...appendConfigs]);

Nuxt

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());