Skip to content

Rule proposal: no-empty-line-separating-import #172

@gajus

Description

@gajus

This is stylistic rule. I often see import statements separated one from another using arbitrary rules, e.g.

import yargs from 'yargs';
import getStdin from 'get-stdin';


import {
    lintFiles,
    lintText
} from './../../utilities';

import {
    failHandler,
    getTargetPaths,
    outputReport
} from './../../utilities/bin';

This rule would enforce no spacing between import statements, i.e.

import yargs from 'yargs';
import getStdin from 'get-stdin';
import {
    lintFiles,
    lintText
} from './../../utilities';
import {
    failHandler,
    getTargetPaths,
    outputReport
} from './../../utilities/bin';

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions