import/no-cycle with TypeScript + ESM #6906
Unanswered
LukeNotable
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Are there any tsconfig.json configurations that could tell me this extension usage? The current resolver does not have oxc/crates/oxc_linter/src/service/runtime.rs Lines 53 to 68 in 6e68c93 I don't really want to add a resolver configuration to oxlintrc 😅 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Trying out oxlint for the first time in the hope that it can at least give us a fast check on
import/no-cycle
. I have a TypeScript project using ESM, thus files like:However, the rule fails to flag this as a problem. But if I remove the
.js
extension, the rule behaves correctly. However, the.js
extension is required under ESM.I recall a similar issue with the original
eslint-plugin-import
, which requiredeslint-import-resolver-typescript
, and I see there's anoxc-resolver
, so I wonder if I just need to do some additional configuration to use it.Beta Was this translation helpful? Give feedback.
All reactions