You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-07-13 00:10:37 +02:00
Tools: Implement @typescript-eslint/no-explicit-any rule
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import * as fs from 'fs-extra';
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
export async function readJsonFile(manifestPath: string, defaultValue: any = null): Promise<any> {
|
||||
if (!(await fs.pathExists(manifestPath))) {
|
||||
if (defaultValue === null) throw new Error(`No such file: ${manifestPath}`);
|
||||
@ -16,6 +17,7 @@ function stripOffPackageOrg(name: string): string {
|
||||
return n.join('/');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
|
||||
export function isJoplinPluginPackage(pack: any): boolean {
|
||||
if (!pack.keywords || !pack.keywords.includes('joplin-plugin')) return false;
|
||||
if (stripOffPackageOrg(pack.name).indexOf('joplin-plugin') !== 0) return false;
|
||||
|
Reference in New Issue
Block a user