fix(lint): use errors instead of warnings, refactor log impl (#1170)
This commit is contained in:
1 parent
1a18410a1f
commit
fd457b15f7
6 files changed
+44
-31
No files matched your search
+1
-2
@@ -67,14 +67,13 @@ export const getUserstylesData = (): Userstyles => {
|
||||
const groups =
|
||||
/(?<message>.*) at line (?<line>\d+), column (?<column>\d+):[\S\s]*/
|
||||
.exec(err.message)?.groups;
|
||||
log(
|
||||
log.error(
|
||||
groups!.message,
|
||||
{
|
||||
file: "scripts/userstyles.yml",
|
||||
startLine: Number(groups!.line),
|
||||
content: content,
|
||||
},
|
||||
"error",
|
||||
);
|
||||
} else {
|
||||
console.log(err);
|
||||
|
||||
Reference in new issue
Block a user