SebastienGllmt / eslint-plugin-no-floating-promise

Detects missing await on async function calls
17 stars 3 forks source link

Plugin fails with vscode-eslint - entry point issues #12

Open RobertSandiford opened 3 years ago

RobertSandiford commented 3 years ago

The popular VS Code plugin is failing with this plugin. It doesn't like the entry point specification

    "main": "lib/index.js",

Changing this to

"main": "./lib/index.js",

fixes the issue. As does moving the files to the root and using "index.js"

The error is with the plugin - but perhaps worth making the change anyway.

RobertSandiford commented 3 years ago

Weirdly it has now started working as is, for reasons unknown...