type error with typescript-eslint recommended configΒ #497
Open
Description
opened on Sep 7, 2024
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