Home

Awesome

eslint-plugin-neverthrow

npm version Downloads/month

Installation

Use npm or a compatible tool to install.

npm install --save-dev eslint eslint-plugin-neverthrow @typescript-eslint/parser

Requirements

Usage

Write your config file such as .eslintrc.js.

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

See also Configuring ESLint.

Configs

Rules

<!--RULE_TABLE_BEGIN-->

Possible Errors

Rule IDDescription
neverthrow/must-use-resultNot handling neverthrow result is a possible error because errors could remain unhandled.⭐️
<!--RULE_TABLE_END-->

Semantic Versioning Policy

This plugin follows Semantic Versioning and ESLint's Semantic Versioning Policy.

Changelog

Contributing

Welcome your contribution!

See also ESLint Contribution Guide.

Development Tools

forked from mysticatea/template-eslint-plugin