Introduce new noFloatingPromises lint rule and fix violiations
This commit is contained in:
@@ -138,7 +138,7 @@ function dateTable(d: Date, utc: boolean): LuaTable {
|
||||
});
|
||||
|
||||
if (!utc) {
|
||||
tbl.rawSet("isdst", isDST(d));
|
||||
void tbl.rawSet("isdst", isDST(d));
|
||||
}
|
||||
|
||||
return tbl;
|
||||
|
||||
@@ -399,7 +399,7 @@ export const tableApi = new LuaTable({
|
||||
for (let i = 0; i < n; i++) {
|
||||
await luaSet(tbl, i + 1, args[i], sf);
|
||||
}
|
||||
tbl.rawSet("n", n);
|
||||
void tbl.rawSet("n", n);
|
||||
return tbl;
|
||||
}),
|
||||
|
||||
|
||||
Reference in New Issue
Block a user