import-js/eslint-plugin-import

[import/newline-after-import] can't Identify require statement when module name is declared by template string

Open

#1,614 opened on Jan 17, 2020

View on GitHub
 (1 comment) (2 reactions) (0 assignees)JavaScript (4,946 stars) (1,540 forks)batch import
enhancementhelp wanted

Description

test code:

const assert = require('assert');
const generate = require(`../../src/0118-Pascal's Triangle/generate`);

describe(`#0118-Pascal's Triangle`, () => {});

report error:

Expected 1 empty line after require statement not followed by another require.eslint(import/newline-after-import)

screenshot_2020-01-17_17-11-11

Contributor guide