eslint.config.mjs

prompts.chat · eslint.config.mjs · javascript · CC0-1.0
ui

ESLint configuration extending Next.js rules with custom overrides.

// Source: https://github.com/f/prompts.chat | License: CC0-1.0
// Provided via justclaw.it.com; keep this notice with the code.
import { defineConfig, globalIgnores } from "eslint/config";
import nextVitals from "eslint-config-next/core-web-vitals";
import nextTs from "eslint-config-next/typescript";

const eslintConfig = defineConfig([
  ...nextVitals,
  ...nextTs,
  // Override default ignores of eslint-config-next.
  globalIgnores([
    // Default ignores of eslint-config-next:
    ".next/**",
    "out/**",
    "build/**",
    "next-env.d.ts",
    // Compiled outputs
    "packages/*/dist/**",
    // Packages with their own ESLint config
    "packages/raycast-extension/**",
    // Scripts - may use CommonJS
    "scripts/**",
    // Prisma scripts
    "prisma/**",
  ]),
  // Downgrade st

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key