import-js/eslint-plugin-import

import/newline-after-import: allow disable newline after required in block

Open

#2,458 opened on May 19, 2022

 (11 comments) (0 reactions) (0 assignees)JavaScript (1,549 forks)batch import
enhancementhelp wantedtypescript

Repository metrics

Stars
 (5,940 stars)
PR merge metrics
 (Avg merge 138d 22h) (3 merged PRs in 30d)

Description

Expected:

import { foo } from 'bar'
// newline required here

declare module '*.foo' {
  import { type Foo } from 'bar'
  // no newline required here
  const content: Foo<{}>
  export default content
}

An option like topLevelOnly or disabledInBlockScope would be nice.

Contributor guide