-
Couldn't load subscription status.
- Fork 36
Open
Description
I’m using EsLint in a Nix environment and I have very large, ignored folders at the root of the project (like .devenv, .direnv, …)
This situation makes EsLint hangs basically infinitely, due to the amount of files to scan, when it executes the following code:
eslint-config-typescript/src/groupVueFiles.ts
Lines 11 to 15 in 504ff73
| const { vueFilesWithScriptTs, otherVueFiles } = fg | |
| .sync(['**/*.vue'], { | |
| cwd: rootDir, | |
| ignore: ['**/node_modules/**'], | |
| }) |
I guess the ideal fix for this would be to also ignore the patterns defined in EsLint config?
For anyone having a similar issue, I was able to work around it by changing the rootDir option:
import {
configureVueProject,
defineConfigWithVueTs,
vueTsConfigs,
} from '@vue/eslint-config-typescript';
configureVueProject({
rootDir: './src',
});
export default defineConfigWithVueTs(
// ...
vueTsConfigs.recommended,
// ...
)Metadata
Metadata
Assignees
Labels
No labels