import-js/eslint-plugin-import

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

Open

#2,458 opened on 2022年5月19日

GitHub で見る
 (11 comments) (0 reactions) (0 assignees)JavaScript (1,540 forks)batch import
enhancementhelp wantedtypescript

Repository metrics

Stars
 (4,946 stars)
PR merge metrics
 (平均マージ 138d 22h) (30d で 3 merged PRs)

説明

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.

コントリビューターガイド