Reputation: 151702
typescript-eslint
recommends using "dual-linting" with Deno...
using those linters for what they support, then adding in ESLint for typed linting in a parallel or second step
...but doesn't explain how to add Deno support.
So how can typescript-eslint
be configured to support Deno syntax, such as:
import { expect } from 'jsr:@std/expect'
Deno
global and its methodsdeno.json
imports mapFor example, the following main_test.ts
should be linted without errors:
import { assertEquals } from "@std/assert";
Deno.test(function addTest() {
assertEquals(2 + 3, 5);
});
What I've tried so far:
deno_lint
repo in June 2024 - no responses, but a bunch of support.@redabacha/eslint-import-resolver-deno
but it doesn't document how to actually make eslint aware of Deno.Upvotes: 5
Views: 236
Reputation: 9788
This is the closest thing to what you are looking for.
using custom resolver to resolve .ts
to resolve Deno's remote dependencies eslint-import-resolver-deno
is used
there are some problems from typescript language itself
Upvotes: 0