import-js/eslint-plugin-import

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

Aperta

#1654 aperta il 11 feb 2020

 (5 commenti) (1 reazione) (0 assegnatari)JavaScript (1548 fork)batch import
bughelp wantedtypescript

Metriche repository

Star
 (5940 stelle)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor