mirror of
https://github.com/home-assistant/frontend.git
synced 2025-10-20 00:59:51 +00:00
Add and fix stylistic eslint rules (#23735)
* Fix stylistic eslint rules * Fix eslint issues
This commit is contained in:
@@ -218,8 +218,8 @@ export class DialogDataTableSettings extends LitElement {
|
||||
|
||||
// Array.findLastIndex when supported or core-js polyfill
|
||||
const findLastIndex = (
|
||||
arr: Array<any>,
|
||||
fn: (item: any, index: number, arr: Array<any>) => boolean
|
||||
arr: any[],
|
||||
fn: (item: any, index: number, arr: any[]) => boolean
|
||||
) => {
|
||||
for (let i = arr.length - 1; i >= 0; i--) {
|
||||
if (fn(arr[i], i, arr)) return i;
|
||||
|
Reference in New Issue
Block a user