mirror of https://github.com/TriliumNext/Notes
refactor(deps): use different approach for eslint
parent
c4f8e9605f
commit
0273fad0ba
File diff suppressed because one or more lines are too long
@ -0,0 +1,9 @@
|
|||||||
|
export async function lint(code: string) {
|
||||||
|
|
||||||
|
const Linter = (await import("eslint-linter-browserify")).Linter;
|
||||||
|
|
||||||
|
return new Linter().verify(code, {
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue