0.0.15 ⢠Published 9 months ago
eslint-plugin-justive-no-literal-link v0.0.15
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 '/'. | š§ |