Skip to content

Commit

Permalink
feat: support eslint flat config on windows (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
asasinmode authored Nov 27, 2023
1 parent 8357a59 commit accdc41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/caches.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function createCache(cwd, eslint_path_arg) {
// Use new ESLintFlatConfig
if (process.env.ESLINT_USE_FLAT_CONFIG) {
absolute_eslint_path
= absolute_eslint_path.replace('/lib/api.js', '/lib/unsupported-api.js');
= path.join(path.dirname(absolute_eslint_path), 'unsupported-api.js');
}
return lru_cache.set(cwd, {
eslint: require(absolute_eslint_path),
Expand Down

0 comments on commit accdc41

Please sign in to comment.