Skip to content

type error with typescript-eslint recommended configΒ #497

Open
@stefanprobst

Description

Environment

  • Operating System: Linux
  • Node Version: v22.8.0
  • Nuxt Version: 3.13.1
  • CLI Version: 3.13.1
  • Nitro Version: 2.9.7
  • Package Manager: pnpm@9.9.0
  • Builder: -
  • User Config: compatibilityDate, devtools, eslint, modules
  • Runtime Modules: @nuxt/eslint@0.5.6
  • Build Modules: -

Package

@nuxt/eslint-module

Reproduction

https://github.com/stefanprobst/issue-nuxt-eslint-types/blob/main/eslint.config.js

Describe the bug

i am using nuxt eslint in "standalone" mode, and trying to add the recommended js and ts configs. i get a type error when adding typescript-eslint's recommended config:

// eslint.config.js

// @ts-check

import js from "@eslint/js";
import ts from "typescript-eslint";
import withNuxt from "./.nuxt/eslint.config.mjs";

export default withNuxt(
  js.configs.recommended,
  // Argument of type 'Config' is not assignable to parameter of type 'ResolvableFlatConfig'.
  // Type 'Config' is not assignable to type 'Config<RulesRecord>'.
  ...ts.configs.recommended
);

Additional context

No response

Logs

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions