0.0.11 • Published 4 months ago

@tunnel/eslint-plugin-neverthrow v0.0.11

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@tunnel/eslint-plugin-neverthrow

This ESLint plugin is a fork of the excellent eslint-plugin-neverthrow package by @mdbetancourt

Installation

Install @tunnel/eslint-plugin-neverthrow using your favorite package manager:

npm install --save-dev eslint-plugin-neverthrow

Requirements

  • Node.js LTS
  • ESLint (v8 or higher)
  • @typescript-eslint/parser (v6 or higher)

Usage

Add @tunnel/neverthrow to the plugins section of your ESLint config file:

// .eslintrc.cjs

module.exports = {
  plugins: ['@tunnel/neverthrow'],
  rules: {
    '@tunnel/neverthrow/must-use-result': 'error',
  },
  parser: '@typescript-eslint/parser',
  parserOptions: {
    ecmaVersion: 2021,
    sourceType: 'module',
    project: ['./tsconfig.json'],
    tsconfigRootDir: __dirname,
  },
};

See also Configuring ESLint.

Configs

  • @tunnel/neverthrow/recommended ... enables the recommended rules.

Rules

Possible Errors

Rule IDDescription
@tunnel/neverthrow/must-use-resultNot handling neverthrow result is a possible error because errors could remain unhandled.⭐️
0.0.11

4 months ago

0.0.10

4 months ago

0.0.9

4 months ago

0.0.8

4 months ago

0.0.7

4 months ago

0.0.6

4 months ago

0.0.5

4 months ago

0.0.4

4 months ago

0.0.3

4 months ago

0.0.2

4 months ago

0.0.1

4 months ago

0.0.0

4 months ago