eslint-plugin-justive-no-literal-link
v0.0.15
Published
prevent using literal link in project
Downloads
14
Maintainers
Readme
eslint-plugin-justive-no-literal-link
prevent using non-exhaustive pattern matching in typescript
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-justive-no-literal-link
:
npm eslint-plugin-justive-no-literal-link --save-dev
Usage
Add justive-no-literal-link
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"justive-no-literal-link"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"justive-no-literal-link/noLiteralLink": 2
}
}
Rules
🔧 Automatically fixable by the --fix
CLI option.
| Name | Description | 🔧 | | :------------------------------------------- | :------------------------------ | :- | | noLiteralLink | no literal link containing '/'. | 🔧 |