Add more ESLint rules and change the formatting scripts (#626)
* Add curly rule in ESLint for consistency * Fix rules * More rules * REturn * Push * no else return * prefer const * destructing
This commit is contained in:
@ -37,7 +37,9 @@ export class ActionManager implements ActionsManagerInterface {
|
||||
action => action.keyTest && action.keyTest(event, appState, elements),
|
||||
);
|
||||
|
||||
if (data.length === 0) return null;
|
||||
if (data.length === 0) {
|
||||
return null;
|
||||
}
|
||||
|
||||
event.preventDefault();
|
||||
return data[0].perform(elements, appState, null);
|
||||
|
Reference in New Issue
Block a user