import-js/eslint-plugin-import

[import/newline-after-import] false positive with typescript import = require

Open

#1,654 建立於 2020年2月11日

在 GitHub 查看
 (5 留言) (1 反應) (0 負責人)JavaScript (1,540 fork)batch import
bughelp wantedtypescript

倉庫指標

Star
 (4,946 star)
PR 合併指標
 (平均合併 138天 22小時) (30 天內合併 3 個 PR)

描述

When using import/newline-after-import with typescript import = require(..) I get a false positive requiring me to put a newline in the middle of the imports.

import foo from "foo";
import bar = require("bar");
import baz from "baz";

Expected results

No errors

Actual results

1:1 error Expected 1 empty line after import statement not followed by another import import/newline-after-import

貢獻者指南