eslint-config
eslint-config copied to clipboard
Enable usage with `@nuxt/eslint`
Clear and concise description of the problem
With the latest version of @nuxt/eslint
, it would be great if we could also use this config inside the new withNuxt
in eslint.config.mjs
.
Basically, the idea would be to enable replacing antfu()
with sxzz()
in this example. When I do this now, it throws the following tsc error:
Argument of type 'FlatESLintConfigItem[]' is not assignable to parameter of type 'ResolvableFlatConfig'.
Type 'FlatESLintConfigItem[]' is not assignable to type 'FlatConfig<RulesRecord>[]'.
Type 'FlatESLintConfigItem' is not assignable to type 'FlatConfig<RulesRecord>'.
Types of property 'languageOptions' are incompatible.
Suggested solution
Make sure languageOptions
types are compatible between the two packages. This might just involve updating eslint-define-config
(#49) since it is there that the Globals
type mismatches.
Alternative
No response
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.