Open
Description
Issue
In nextjs and other frontend frameworks, files can be named with []()
characters e.g. src/(main)/product/[id]/page.tsx
.
eslint fails to recognize these paths when you dont surround them with quotes.
e.g.
eslint src/(main)/product/[id]/page.tsx
it does not error when wrapping the filepath in quotes
e.g.
eslint "src/(main)/product/[id]/page.tsx"
is there a way to pass a "template" command for the lint-cmd
option? something like:
lint-cmd:
- javascript:eslint "<file>"
- typescript:eslint "<file>"
o that the resulting command would wrap the filepath in quotes
Here are some screenshots of the issue:


Version and model info
No response