Skip to content

Commit 5cdc41d

Browse files
committed
chore: Avoid using deprecated FlatConfig eslint type
1 parent b5a9aad commit 5cdc41d

File tree

5 files changed

+9
-4
lines changed

5 files changed

+9
-4
lines changed

.changeset/warm-eyes-boil.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'eslint-plugin-svelte': patch
3+
---
4+
5+
chore: Avoid using deprecated FlatConfig eslint type

docs-svelte-kit/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as myPlugin from '@ota-meshi/eslint-plugin';
22
import globals from 'globals';
33

44
/**
5-
* @type {import('eslint').Linter.FlatConfig[]}
5+
* @type {import('eslint').Linter.Config[]}
66
*/
77
const config = [
88
{

docs-svelte-kit/src/lib/eslint/scripts/linter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export function getRule(ruleId) {
125125
}
126126

127127
/**
128-
* @returns {import('eslint').Linter.FlatConfig[]}
128+
* @returns {import('eslint').Linter.Config[]}
129129
*/
130130
export function createLinterConfig() {
131131
return [

packages/eslint-plugin-svelte/eslint.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as myPlugin from '@ota-meshi/eslint-plugin';
22
import * as tseslint from 'typescript-eslint';
33

44
/**
5-
* @type {import('eslint').Linter.FlatConfig[]}
5+
* @type {import('eslint').Linter.Config[]}
66
*/
77
const config = [
88
{

packages/eslint-plugin-svelte/src/configs/flat/all.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { Linter } from 'eslint';
22
import { rules } from '../../utils/rules';
33
import base from './base';
4-
const config: Linter.FlatConfig[] = [
4+
const config: Linter.Config[] = [
55
...base,
66
{
77
name: 'svelte:all:rules',

0 commit comments

Comments
 (0)