SebastienGllmt / eslint-plugin-no-floating-promise

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

Documentation as to activate the rule #5

Closed prebours closed 3 years ago

prebours commented 3 years ago

In the README, it is not clear how the rules are activated by default:

I do not think that there is a rule called rule-name.

{
    "rules": {
        "no-floating-promise/rule-name": 2
    }
}

Should it be instead?

'no-floating-promise/no-floating-promise': ['error'],
SebastienGllmt commented 3 years ago

Ah yes, this comes from the default template when creating a new ESLint rule. I just fixed it in 1753304b24a0928cf0c1e92f867e61d65601772b