Skip to content

Commit

Permalink
chore: use eslint-plugin-yml on yaml files only
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic committed Aug 22, 2024
1 parent 5dbdd63 commit 67530b2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const INTERNAL_FILES = Object.fromEntries(
);

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

/**
* Resolve an absolute path or glob pattern.
Expand Down Expand Up @@ -274,5 +275,8 @@ module.exports = [
]]
}
},
...eslintPluginYml.configs["flat/recommended"]
...eslintPluginYml.configs["flat/recommended"].map(config => ({
...config,
files: [ALL_YAML_FILES]
}))
];

0 comments on commit 67530b2

Please sign in to comment.