Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type error with typescript-eslint recommended config #497

Open
stefanprobst opened this issue Sep 7, 2024 · 0 comments
Open

type error with typescript-eslint recommended config #497

stefanprobst opened this issue Sep 7, 2024 · 0 comments

Comments

@stefanprobst
Copy link

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: [email protected]
  • Builder: -
  • User Config: compatibilityDate, devtools, eslint, modules
  • Runtime Modules: @nuxt/[email protected]
  • 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

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

No branches or pull requests

1 participant