You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created a new repo yesterday using create-typescript-app using the "everything" setting (woo!). I set up a few tasks in VS Code's tasks.json and pushed a PR, at which point I noticed that I was getting some eslint errors because of unsorted keys in my tasks.json.
These were reported via GitHub Actions CI and when I run pnpm lint, but they were not reported in VS Code like lint errors in .ts files are.
Actual
I would expect eslint issues in tasks.json to be reported in VS Code (so that I can quick fix them!).
Additional Info
I noticed that "json" is in the eslint.probe list in .code/settings.json, but maybe it also needs to be told about JSON files some other place?
🤖 Beep boop! This comment was added automatically by all-contributors-auto-action.
Not all contributions can be detected from Git & GitHub alone. Please comment any missing contribution types this bot missed.
...and of course, thank you for contributing! 💙
Adds @danvk as a contributor for bug.
This was requested by JoshuaKGoldberg [in this
comment](#1219 (comment))
---------
Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Hmm, looks like using eslint.probe for jsonc files isn't yet supported in vscode-eslint: microsoft/vscode-eslint#1786. Marking as blocked pending discussion there.
Worst case scenario, we can go back to eslint.validate. But that's described as old and legacy so I'd rather not for a bit.
Bug Report Checklist
main
branch of the repository.Expected
I created a new repo yesterday using
create-typescript-app
using the "everything" setting (woo!). I set up a few tasks in VS Code'stasks.json
and pushed a PR, at which point I noticed that I was getting some eslint errors because of unsorted keys in mytasks.json
.These were reported via GitHub Actions CI and when I run
pnpm lint
, but they were not reported in VS Code like lint errors in.ts
files are.Actual
I would expect eslint issues in
tasks.json
to be reported in VS Code (so that I can quick fix them!).Additional Info
I noticed that
"json"
is in theeslint.probe
list in.code/settings.json
, but maybe it also needs to be told about JSON files some other place?Here's the PR and repo: danvk/gravlax#3
The text was updated successfully, but these errors were encountered: