Skip to content

Commit 0b87aaf

Browse files
committed
eslint cleanup
1 parent 321c623 commit 0b87aaf

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/actions/find/src/pluginManager.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import { dynamicImport } from './dynamicImport.js'
77
const __filename = fileURLToPath(import.meta.url)
88
const __dirname = path.dirname(__filename)
99

10+
// - plugins are js files right now, so they dont have a type
11+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1012
const plugins: any[] = []
1113
let pluginsLoaded = false
1214

@@ -19,7 +21,7 @@ export async function loadPlugins() {
1921
await loadBuiltInPlugins()
2022
await loadCustomPlugins()
2123
}
22-
} catch (e) {
24+
} catch {
2325
plugins.length = 0
2426
console.log(abortError)
2527
} finally {
@@ -70,7 +72,6 @@ export async function loadPluginsFromPath({ readPath, importPath }: { readPath:
7072
const res = fs.readdirSync(readPath)
7173
for (const pluginFolder of res) {
7274
console.log('Found plugin: ', pluginFolder)
73-
// @ts-ignore
7475
plugins.push(await dynamicImport(path.join(importPath, pluginFolder, '/index.js')))
7576
}
7677
} catch (e) {

0 commit comments

Comments
 (0)