Skip to content

viodotcom/eslint-plugin-no-package-self-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-no-package-self-import

An ESLint plugin for finding instances of a package importing from itself

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-no-package-self-import:

npm install eslint-plugin-no-package-self-import --save-dev

Usage

Add no-package-self-import to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "no-package-self-import"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "no-package-self-import/rule-name": "warn"
    }
}

Or use the recommended configuration:

{
    "extends": [
        "plugin:no-package-self-import/recommended"
    ]
}

Configurations

Name
recommended

Rules

💼 Configurations enabled in.
✅ Set in the recommended configuration.

Name Description 💼
no-package-self-import Disallow importing from the same package

About

An ESLint plugin for finding packages that import themselves

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published