build: refactor linting

This commit is contained in:
iCrawl
2023-08-22 09:40:11 +02:00
parent 2e40a05adf
commit d37632da05
72 changed files with 427 additions and 530 deletions

View File

@@ -1,5 +1,4 @@
export function formatTag(tag: string) {
// eslint-disable-next-line unicorn/no-unsafe-regex
const parsed = /(?:^@.*\/(?<package>.*)@v?)?(?<semver>\d+.\d+.\d+)-?.*/.exec(tag);
const parsedPackage = /(?<package>.*)@v?-?.*/.exec(tag);