From 2b3101f0dd04c5f61622c1415f7f5146bb98601f Mon Sep 17 00:00:00 2001 From: Gunter Chou Date: Tue, 16 Jul 2024 00:48:20 +0800 Subject: [PATCH] fix(linter): Correctly collect lintable files for project in @nx/eslint plugin (#26638) (cherry picked from commit a41a8d68cfb456a599366b07a505e2cd0fc2bbc2) --- packages/eslint/src/plugins/plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/eslint/src/plugins/plugin.ts b/packages/eslint/src/plugins/plugin.ts index 9ed9c9ba3286e..1dec11415ddcd 100644 --- a/packages/eslint/src/plugins/plugin.ts +++ b/packages/eslint/src/plugins/plugin.ts @@ -13,7 +13,7 @@ import { } from '@nx/devkit'; import { calculateHashForCreateNodes } from '@nx/devkit/src/utils/calculate-hash-for-create-nodes'; import { existsSync } from 'node:fs'; -import { basename, dirname, join, normalize, sep } from 'node:path'; +import { basename, dirname, join, normalize, sep } from 'node:path/posix'; import { hashObject } from 'nx/src/hasher/file-hasher'; import { workspaceDataDirectory } from 'nx/src/utils/cache-directory'; import { combineGlobPatterns } from 'nx/src/utils/globs';