0.0.5 • Published 2 years ago

eslint-plugin-pri v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Usage

Add pri to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
  "plugins": ["pri"]
}

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

{
  "rules": {
    "pri/no-src-import": 2,
    "pri/no-self-import": 2
  }
}

Supported Rules

  • no-src-import: Forbid import another package using relative path
  • no-self-import: Forbid import package using name in the package itself