Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/b2d1/eslint-plugin-no-fatal
A series of mandatory measures to prevent low-level accidents
https://github.com/b2d1/eslint-plugin-no-fatal
Last synced: 21 days ago
JSON representation
A series of mandatory measures to prevent low-level accidents
- Host: GitHub
- URL: https://github.com/b2d1/eslint-plugin-no-fatal
- Owner: B2D1
- Created: 2022-02-05T09:35:55.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-05T09:40:30.000Z (almost 3 years ago)
- Last Synced: 2024-11-06T00:11:57.726Z (2 months ago)
- Language: JavaScript
- Size: 30.3 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# eslint-plugin-no-fatal
A series of mandatory measures to prevent low-level accidents
## Installation
You'll first need to install [ESLint](https://eslint.org/):
```sh
npm i eslint --save-dev
```Next, install `eslint-plugin-no-fatal`:
```sh
npm install eslint-plugin-no-fatal --save-dev
```## Usage
Add `no-fatal` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": ["no-fatal"]
}
```Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"no-fatal/rule-name": 2
}
}
```## Supported Rules
- force-optional-chaining