mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-22 03:35:31 -05:00
Remove all but 2 eslint-disable pragmas (#1335)
Turns off: - no-explicit-any (we need to handle any return values from runPython) - no-unsafe-assignment (noisy and pointless) And resolves all but two remaining ones. The last two lints regard access to private Pyodide variables and so: - they are not easy to work around without an upstream Pyodide patch - they should trigger linter and require explicit override
This commit is contained in:
@@ -106,11 +106,10 @@ export class RemoteInterpreter extends Object {
|
||||
fullStdLib: false,
|
||||
}),
|
||||
);
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
this.FS = this.interface.FS;
|
||||
// eslint-disable-next-line
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
this.PATH = (this.interface as any)._module.PATH;
|
||||
// eslint-disable-next-line
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
||||
this.PATH_FS = (this.interface as any)._module.PATH_FS;
|
||||
|
||||
// TODO: Remove this once `runtimes` is removed!
|
||||
@@ -270,10 +269,8 @@ export class RemoteInterpreter extends Object {
|
||||
return Synclink.proxy(this.interface.pyimport(mod_name));
|
||||
}
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
setHandler(func_name: string, handler: any): void {
|
||||
const pyscript_module = this.interface.pyimport('pyscript');
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
pyscript_module[func_name] = handler;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user