Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/warm-eyes-boil.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'eslint-plugin-svelte': patch
---

chore: Avoid using deprecated FlatConfig eslint type
2 changes: 1 addition & 1 deletion docs-svelte-kit/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down
2 changes: 1 addition & 1 deletion docs-svelte-kit/src/lib/eslint/scripts/linter.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function getRule(ruleId) {
}

/**
* @returns {import('eslint').Linter.FlatConfig[]}
* @returns {import('eslint').Linter.Config[]}
*/
export function createLinterConfig() {
return [
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-svelte/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-svelte/src/configs/flat/all.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down
Loading