🔧 更新 ESLint 配置以支持更多 YAML 文件

This commit is contained in:
BTMuli
2026-05-19 23:19:07 +08:00
parent 16cb6888bb
commit fc2534bbf6

View File

@@ -1,13 +1,13 @@
/**
* YAML 文件的 ESLint 配置
* @since Beta v0.9.3
* @since Beta v0.10.2
*/
import pluginYml from "eslint-plugin-yml";
import * as ymlParser from "yaml-eslint-parser";
const eslintConfigYml = [
{
files: ["**/*.yml", "**/*.yaml"],
files: ["**/*.yml", "**/*.yaml", "pnpm-workspace.yaml", ".stylelintrc.yml", ".prettierrc.yml"],
plugins: { yml: pluginYml },
languageOptions: {
parser: ymlParser,