0.0.5 • Published 4 years ago
eslint-plugin-pri
Licence
ISC
Version
0.0.5
Deps
2
Size
11 kB
Vulns
0
Weekly
0
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 pathno-self-import: Forbid import package using name in the package itself