Skip to content

Vue files lookup makes EsLint hangs in very large projects #225

@LeBenLeBen

Description

@LeBenLeBen

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:

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions