Work-in-progress, trying to make ESLint "work" on Deno projects.
"Work" means:
- ESLint correctly lints everything (
npm run lint
) - Deno correctly builds everything (
deno task serve
)
- https://discord.com/channels/684898665143206084/775366479143108608/1037410165126873129
- denoland/deno_lint#25 (comment)
- typescript-eslint/typescript-eslint#5921 (comment)
Eslint can't resolve .ts extensions- Used custom resolver
Eslint can't resolve Deno's remote dependencies- Used
eslint-import-resolver-deno
- TODO: Repo isn't really maintained, so reproduce the relevant business logic
- Used
Eslint doesn't "know" about Deno's global types- Copied and pasted
lib.deno.ns.d.ts
- TODO: Don't manually copy this
- Copied and pasted
vscode-eslint
extension chokes on anything ending in.ts