vuejs / eslint-config-typescript

ESLint configuration for Vue 3 + TypeScript projects
MIT License
133 stars 30 forks source link

Glob-relevant characters in file paths are not escaped #102

Closed chrisvfritz closed 1 week ago

chrisvfritz commented 2 weeks ago

The generated paths for non-TS Vue files do not escape glob-relevant characters. For example:

{
  name: 'typescript-eslint/disable-type-checked',
  files: [
    'src/pages/[...404].vue',
  ],
  // ...
}

In this case, 'src/pages/[...404].vue' should be escaped as 'src/pages/\\[...404\\].vue'.

haoqunjiang commented 1 week ago

Thanks!!! What an oversight! I did know that the paths are actually globs, but forgot to test file-based routing.