Skip to content

Doesn't work with "@typescript-eslint/parser": "6.1.0" #14

@IMalaniak

Description

@IMalaniak

After a major update of @typescript-eslint/parser there are some problems parsing types from neverthrow. While linting I've got the following:

ESLint: 8.45.0

Error: Error while loading rule 'neverthrow/must-use-result': types not available, maybe you need set the parser to @typescript-eslint/parser
Occurred while linting /packages/backend/src/app.module.ts
    at Object.create (/node_modules/eslint-plugin-neverthrow/dist/src/rules/must-use-result.js:158:19)
    at createRuleListeners (/node_modules/eslint/lib/linter/linter.js:870:21)
    at /node_modules/eslint/lib/linter/linter.js:1040:110
    at Array.forEach (<anonymous>)
    at runRules (/node_modules/eslint/lib/linter/linter.js:977:34)
    at Linter._verifyWithoutProcessors (/node_modules/eslint/lib/linter/linter.js:1330:31)
    at Linter._verifyWithConfigArray (/node_modules/eslint/lib/linter/linter.js:1706:21)
    at Linter.verify (/node_modules/eslint/lib/linter/linter.js:1412:65)
    at Linter.verifyAndFix (/node_modules/eslint/lib/linter/linter.js:1967:29)
    at verifyText (/node_modules/eslint/lib/cli-engine/cli-engine.js:254:48)
npm ERR! Lifecycle script `lint` failed with error: 
npm ERR! Error: command failed 

Setup:

  • Node 18.16.0
  • NPM workspace
    "@typescript-eslint/eslint-plugin": "6.1.0",
    "@typescript-eslint/parser": "6.1.0",
    "eslint": "8.45.0",
    "eslint-plugin-neverthrow": "1.1.4"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions