eslint-plugin-fk-null-check
v1.0.5
Published
ESLint rule package to prevent runtime nullability issues
Downloads
3
Maintainers
Readme
eslint-plugin-fk-null-check
Disallowing property access on records and object literals without type checking
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-fk-null-check
:
npm install eslint-plugin-fk-null-check --save-dev
Usage
Add fk-null-check
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"fk-null-check"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"fk-null-check/rule-name": 2
}
}
Rules
TODO: Run eslint-doc-generator to generate the rules list.