Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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/language-config-in-shareable-configs.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"eslint-plugin-yml": major
---

Use language config in shareable configs. The shareable configs now use the new ESLint v9 language config API (`language: "yml/yaml"`) instead of the legacy parser approach (`languageOptions: { parser }`). This is a breaking change that aligns with ESLint's language plugin architecture.
5 changes: 1 addition & 4 deletions src/configs/flat/base.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import type { ESLint, Linter } from "eslint";
import * as parser from "yaml-eslint-parser";
import plugin from "../../index.js";

export default [
Expand All @@ -13,9 +12,7 @@ export default [
},
{
files: ["*.yaml", "**/*.yaml", "*.yml", "**/*.yml"],
languageOptions: {
parser,
},
language: "yml/yaml",
rules: {
// ESLint core rules known to cause problems with YAML.
"no-irregular-whitespace": "off",
Expand Down