Skip to content

Commit

Permalink
chore: Avoid using deprecated FlatConfig eslint type (#856)
Browse files Browse the repository at this point in the history
  • Loading branch information
KuSh authored Sep 29, 2024
1 parent 29545a2 commit cf6c842
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 4 deletions.
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

0 comments on commit cf6c842

Please sign in to comment.