eslint-plugin-import icon indicating copy to clipboard operation
eslint-plugin-import copied to clipboard

import/newline-after-import doesn't warn comments

Open lgraziani2712 opened this issue 8 years ago • 1 comments

Hello!

This specific code doesn't warn about the need of a new line after import:

import { NamedExport } from 'path/to/module';
/**
 * Doc bla bla
 */
const defaultExport = () => ('bla bla');

I expect to get a warn about the import not having a new line. Is this behaviour correct? By the way, if I delete the comment the warn appears.

Thank you!

lgraziani2712 avatar Dec 05 '17 21:12 lgraziani2712

Hello from May 2019 👋 Same problem here 😅

kachkaev avatar May 14 '19 13:05 kachkaev