Skip to content

Upgrading @nuxt/eslint-config 0.7 to 1

Breaking0.7.6 → 1.17.0Breaking1Platform1New3Changed13Fixed13

BreakingUpgrade verdict

1 breaking change and a platform requirement change.

  • This version no longer supports older configuration formats and needs ESLint version 9 with ES modules.
  • This package now accepts ESLint version 10 as a peer dependency, so you can upgrade ESLint without dependency conflicts.
2 items need code or config changes

Adds eslint-plugin-import-lite ^0.6.0.

Installs 179 packages in all (was 186).

Breaking1
Drops legacy configs and now requires ESLint v9 and ESM.
Platform1
Relaxes peer dependency range to support ESLint v10.

Generated by DepDelta from published .d.ts files. Not mixed with prose notes.

  • removed: function createConfigForNuxt(options?: NuxtESLintConfigOptions, ...userConfigs: ResolvableFlatConfig[]): FlatConfigComposer<Linter.Config>
  • removed: function defineFlatConfigs(...configs: ResolvableFlatConfig[]): FlatConfigComposer<Linter.Config>
  • removed: function resolveOptions(config: NuxtESLintConfigOptions): NuxtESLintConfigOptionsResolved
  • removed: interface NuxtESLintConfigOptions
  • removed: interface NuxtESLintConfigOptionsResolved
  • removed: interface NuxtESLintFeaturesOptions
  • removed: interface NuxtSpecificOptions
  • removed: interface OptionsFormatters
  • removed: interface ToolingOptions
  • removed: property NuxtESLintConfigOptions.dirs?: { src?: string[]; root?: string[]; pages?: string[]; layouts?: string[]; components?: string[]; componentsPrefixed?: string[]; composables?: string[]; plugins?: string[]; modules?: string[]; middleware?: string[]; servers?: string[] }
  • removed: property NuxtESLintConfigOptions.features?: NuxtESLintFeaturesOptions
  • removed: property NuxtESLintConfigOptionsResolved.dirs: Required<NotNill<NuxtESLintConfigOptions['dirs']>>
  • removed: property NuxtESLintConfigOptionsResolved.features: Required<NotNill<NuxtESLintFeaturesOptions>>
  • removed: property NuxtESLintFeaturesOptions.formatters?: boolean | OptionsFormatters
  • removed: property NuxtESLintFeaturesOptions.nuxt?: NuxtSpecificOptions
  • removed: property NuxtESLintFeaturesOptions.standalone?: boolean
  • removed: property NuxtESLintFeaturesOptions.stylistic?: boolean | StylisticCustomizeOptions<true>
  • removed: property NuxtESLintFeaturesOptions.tooling?: boolean | ToolingOptions
  • removed: property NuxtESLintFeaturesOptions.typescript?: boolean | { strict?: boolean }
  • removed: property NuxtSpecificOptions.sortConfigKeys?: boolean
  • removed: property OptionsFormatters.css?: 'prettier' | boolean
  • removed: property OptionsFormatters.dprintOptions?: boolean
  • removed: property OptionsFormatters.graphql?: 'prettier' | boolean
  • removed: property OptionsFormatters.html?: 'prettier' | boolean
  • removed: property OptionsFormatters.markdown?: 'prettier' | 'dprint' | boolean
  • removed: property OptionsFormatters.prettierOptions?: any
  • removed: property OptionsFormatters.svg?: 'prettier' | boolean
  • removed: property OptionsFormatters.xml?: 'prettier' | boolean
  • removed: property ToolingOptions.jsdoc?: boolean
  • removed: property ToolingOptions.regexp?: boolean
  • removed: property ToolingOptions.unicorn?: boolean
  • removed: type Awaitable<T> = T | Promise<T>
  • added: export { Awaitable } from './index'
  • added: export { ImportPluginOptions } from './index'
  • added: export { NuxtESLintConfigOptions } from './index'
  • added: export { NuxtESLintConfigOptionsResolved } from './index'
  • added: export { NuxtESLintFeaturesOptions } from './index'
  • added: export { NuxtSpecificOptions } from './index'
  • added: export { OptionsFormatters } from './index'
  • added: export { ToolingOptions } from './index'
  • added: export { createConfigForNuxt } from './index'
  • added: export { defineFlatConfigs } from './index'
  • added: export { resolveOptions } from './index'
  • added: function createConfigForNuxt(options?: NuxtESLintConfigOptions, ...userConfigs: ResolvableFlatConfig[]): FlatConfigComposer
  • added: function default(options?: NuxtESLintConfigOptions, ...userConfigs: ResolvableFlatConfig[]): FlatConfigComposer
  • added: function defineFlatConfigs(...configs: ResolvableFlatConfig[]): FlatConfigComposer
  • added: function resolveOptions(config: NuxtESLintConfigOptions): NuxtESLintConfigOptionsResolved
  • added: interface ImportPluginOptions
  • added: interface NuxtESLintConfigOptions
  • added: interface NuxtESLintConfigOptionsResolved
  • added: interface NuxtESLintFeaturesOptions
  • added: interface NuxtSpecificOptions
  • added: interface OptionsFormatters
  • added: interface ToolingOptions
  • added: property ImportPluginOptions.package?: 'eslint-plugin-import-lite' | 'eslint-plugin-import-x'
  • added: property NuxtESLintConfigOptions.dirs?: { src?: string[]; root?: string[]; pages?: string[]; layouts?: string[]; components?: string[]; componentsPrefixed?: string[]; composables?: string[]; plugins?: string[]; modules?: string[]; middleware?: string[]; servers?: string[] }
  • added: property NuxtESLintConfigOptions.features?: NuxtESLintFeaturesOptions
  • added: property NuxtESLintConfigOptionsResolved.dirs: Required<NotNill<NuxtESLintConfigOptions['dirs']>>
  • added: property NuxtESLintConfigOptionsResolved.features: Required<NotNill<NuxtESLintFeaturesOptions>>
  • added: property NuxtESLintFeaturesOptions.formatters?: boolean | OptionsFormatters
  • added: property NuxtESLintFeaturesOptions.import?: boolean | ImportPluginOptions
  • added: property NuxtESLintFeaturesOptions.nuxt?: NuxtSpecificOptions
  • added: property NuxtESLintFeaturesOptions.standalone?: boolean
  • added: property NuxtESLintFeaturesOptions.stylistic?: boolean | StylisticCustomizeOptions
  • added: property NuxtESLintFeaturesOptions.tooling?: boolean | ToolingOptions
  • added: property NuxtESLintFeaturesOptions.typescript?: boolean | { strict?: boolean; tsconfigPath?: string }
  • added: property NuxtSpecificOptions.sortConfigKeys?: boolean
  • added: property OptionsFormatters.css?: 'prettier' | boolean
  • added: property OptionsFormatters.dprintOptions?: boolean
  • added: property OptionsFormatters.graphql?: 'prettier' | boolean
  • added: property OptionsFormatters.html?: 'prettier' | boolean
  • added: property OptionsFormatters.markdown?: 'prettier' | 'dprint' | boolean
  • added: property OptionsFormatters.prettierOptions?: any
  • added: property OptionsFormatters.svg?: 'prettier' | boolean
  • added: property OptionsFormatters.xml?: 'prettier' | boolean
  • added: property ToolingOptions.jsdoc?: boolean
  • added: property ToolingOptions.regexp?: boolean
  • added: property ToolingOptions.unicorn?: boolean
  • added: type Awaitable<T> = T | Promise<T>
  • removed: const default: ESLint.ConfigData