RobertAKARobin / eslint-import-debug

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ESLint and Deno

Goal

Work-in-progress, trying to make ESLint "work" on Deno projects.

"Work" means:

  1. ESLint correctly lints everything (npm run lint)
  2. Deno correctly builds everything (deno task serve)

Discussions

Blockers

  • 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
  • Eslint doesn't "know" about Deno's global types
    • Copied and pasted lib.deno.ns.d.ts
    • TODO: Don't manually copy this
  • vscode-eslint extension chokes on anything ending in .ts

About


Languages

Language:JavaScript 59.1%Language:TypeScript 37.0%Language:HTML 3.9%