Skip to content

Instantly share code, notes, and snippets.

@kariudo
Last active July 11, 2024 16:29
Show Gist options
  • Save kariudo/07629189774ee828105336523ac99071 to your computer and use it in GitHub Desktop.
Save kariudo/07629189774ee828105336523ac99071 to your computer and use it in GitHub Desktop.
VSCode - Biome - Full project scan task
{
"version": "2.0.0",
"tasks": [
{
"label": "Biome - Full Lint",
"type": "shell",
"command": "yarn",
"args": [
"biome",
"lint",
"--write",
"--reporter=github",
"--max-diagnostics=10000"
],
"problemMatcher": [
{
"owner": "biome",
"fileLocation": [
"absolute"
],
"pattern": {
"regexp": "::(\\w+) title=(.+?),file=(.+?),line=(\\d+),endLine=(\\d+),col=(\\d+),endColumn=(\\d+)::(.*?)((?=::)|$)",
"file": 3,
"line": 4,
"column": 6,
"severity": 1,
"code": 2,
"message": 8
}
}
],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"echo": false,
"reveal": "silent",
"focus": false,
"panel": "shared",
"showReuseMessage": false,
"clear": false,
"close": true,
"revealProblems": "onProblem"
},
"isBackground": false
}
]
}
@kariudo
Copy link
Author

kariudo commented Jul 11, 2024

This task will run a full scan with biome and log all the problems to the problems tab in VSCode.

This was not built into the Biome extension, so it leverages the reporter with a custom problemMatcher to parse the output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment