Skip to content

zsoltszavo/eslint-plugin-import-lines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

@zsoltszavo/eslint-plugin-import-lines

Plugin for import multilines waring.

Currently having only one rule, the imports-multiline which will throw error in case of more than 5 imports in a line, and if its multiline already it will throw error if there is not only one in a line

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install @zsoltszavo/eslint-plugin-import-lines:

$ npm install @zsoltszavo/eslint-plugin-import-lines --save-dev

Usage

Add @zsoltszavo/import-lines to the plugins section of your .eslintrc configuration file.

{
    "plugins": [
        "@zsoltszavo/import-lines"
    ]
}

Then add the rule in the rules section.

{
    "rules": {
        "@zsoltszavo/import-lines/imports-multiline": "error"
    }
}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published