mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
chore(frontend): enable additional oxlint rules for better code hygiene (#38145)
This commit is contained in:
@@ -87,7 +87,7 @@ Handlebars.registerHelper('dateFormat', function (context, block) {
|
||||
Handlebars.registerHelper('stringify', (obj: any, obj2: any) => {
|
||||
// calling without an argument
|
||||
if (obj2 === undefined)
|
||||
throw Error('Please call with an object. Example: `stringify myObj`');
|
||||
throw new Error('Please call with an object. Example: `stringify myObj`');
|
||||
return isPlainObject(obj) ? JSON.stringify(obj) : String(obj);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user