Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 451 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 451 Bytes

@nolawnchairs/no-import-gaps

This rule enforces the absencse of newlines between import statements.

👎 Invalid

import foo from 'foo'
import bar from 'bar'

import baz from 'baz'

console.log('Hello, Newman')

👍 Valid

import foo from 'foo'
import bar from 'bar'
import baz from 'baz'

console.log('Hello, Newman')

Config

The rule takes no arguments.

{
  '@nolawnchairs/no-import-gaps': 'error'
}