Last active
July 11, 2024 16:29
-
-
Save kariudo/07629189774ee828105336523ac99071 to your computer and use it in GitHub Desktop.
VSCode - Biome - Full project scan task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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 | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.