import-js/eslint-plugin-import

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

Open

#2458 aperta il 19 mag 2022

Vedi su GitHub
 (11 commenti) (0 reazioni) (0 assegnatari)JavaScript (1540 fork)batch import
enhancementhelp wantedtypescript

Metriche repository

Star
 (4946 star)
Metriche merge PR
 (Merge medio 138g 22h) (3 PR mergiate in 30 g)

Descrizione

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.

Guida contributor