import-js/eslint-plugin-import

`import/no-unresolved` ignores require statements with backticks

オープン

#1,575 opened on 2019/12/19

 (0 件のコメント) (1 件のリアクション) (0 人の担当者)JavaScript (1,549 件のフォーク)batch import
bughelp wanted

Repository metrics

Stars
 (5,939 個のスター)
PR merge metrics
 (平均マージ 138d 22h) (30d で 3 merged PRs)

説明

First of all, thanks for this plugin! It's great!

We're using the backtick option with the quotes rule in our codebase. About a week ago, we realized that our linter wasn't catching bad imports. After scratching our heads for a bit, we realized that import/no-unresolved doesn't check require statements that use backticks.

// index.js
// Assume a, b, and c do not exist

// Does not result in a linting error
const sweetPotato = require(`a`);

// Shows linting error
const biscuit = require("b");

// Shows linting error
import babyYoda from "c";

コントリビューターガイド