Skip to content

Commit 0f68a85

Browse files
authored
chore: use eslint-plugin-yml on yaml files only (#18801)
1 parent 5dbdd63 commit 0f68a85

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎eslint.config.js‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ const INTERNAL_FILES = Object.fromEntries(
3737
);
3838

3939
const ALL_JS_FILES = "**/*.js";
40+
const ALL_YAML_FILES = "**/*.y?(a)ml";
4041

4142
/**
4243
* Resolve an absolute path or glob pattern.
@@ -274,5 +275,8 @@ module.exports = [
274275
]]
275276
}
276277
},
277-
...eslintPluginYml.configs["flat/recommended"]
278+
...eslintPluginYml.configs["flat/recommended"].map(config => ({
279+
...config,
280+
files: [ALL_YAML_FILES]
281+
}))
278282
];

0 commit comments

Comments
 (0)