diff --git a/.changeset/warm-eyes-boil.md b/.changeset/warm-eyes-boil.md new file mode 100644 index 000000000..13adee538 --- /dev/null +++ b/.changeset/warm-eyes-boil.md @@ -0,0 +1,5 @@ +--- +'eslint-plugin-svelte': patch +--- + +chore: Avoid using deprecated FlatConfig eslint type diff --git a/docs-svelte-kit/eslint.config.mjs b/docs-svelte-kit/eslint.config.mjs index 5e336f604..87b510ab9 100644 --- a/docs-svelte-kit/eslint.config.mjs +++ b/docs-svelte-kit/eslint.config.mjs @@ -2,7 +2,7 @@ import * as myPlugin from '@ota-meshi/eslint-plugin'; import globals from 'globals'; /** - * @type {import('eslint').Linter.FlatConfig[]} + * @type {import('eslint').Linter.Config[]} */ const config = [ { diff --git a/docs-svelte-kit/src/lib/eslint/scripts/linter.js b/docs-svelte-kit/src/lib/eslint/scripts/linter.js index 01dd44666..6f8d92013 100644 --- a/docs-svelte-kit/src/lib/eslint/scripts/linter.js +++ b/docs-svelte-kit/src/lib/eslint/scripts/linter.js @@ -125,7 +125,7 @@ export function getRule(ruleId) { } /** - * @returns {import('eslint').Linter.FlatConfig[]} + * @returns {import('eslint').Linter.Config[]} */ export function createLinterConfig() { return [ diff --git a/packages/eslint-plugin-svelte/eslint.config.mjs b/packages/eslint-plugin-svelte/eslint.config.mjs index bd2489353..a85da9487 100644 --- a/packages/eslint-plugin-svelte/eslint.config.mjs +++ b/packages/eslint-plugin-svelte/eslint.config.mjs @@ -2,7 +2,7 @@ import * as myPlugin from '@ota-meshi/eslint-plugin'; import * as tseslint from 'typescript-eslint'; /** - * @type {import('eslint').Linter.FlatConfig[]} + * @type {import('eslint').Linter.Config[]} */ const config = [ { diff --git a/packages/eslint-plugin-svelte/src/configs/flat/all.ts b/packages/eslint-plugin-svelte/src/configs/flat/all.ts index da7addd7f..8f179ed36 100644 --- a/packages/eslint-plugin-svelte/src/configs/flat/all.ts +++ b/packages/eslint-plugin-svelte/src/configs/flat/all.ts @@ -1,7 +1,7 @@ import type { Linter } from 'eslint'; import { rules } from '../../utils/rules'; import base from './base'; -const config: Linter.FlatConfig[] = [ +const config: Linter.Config[] = [ ...base, { name: 'svelte:all:rules',