1.0.5 • Published 2 years ago
eslint-plugin-fk-null-check v1.0.5
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-devNext, install eslint-plugin-fk-null-check:
npm install eslint-plugin-fk-null-check --save-devUsage
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.