node-red / nrlint

Node-RED Flow Linter
Apache License 2.0
36 stars 15 forks source link

Typo when generating nrlint configuration #20

Closed augjoh closed 3 years ago

augjoh commented 3 years ago

Current Behavior

When generating a configuration file as described in the documentation, the configuration key for no-loop has an additional s:

> npx nrlint --init > .nrlintrc.js.generated
> diff .nrlintrc.js .nrlintrc.js.generated 
5d4
<         "no-loop": false,
6a6
>         "no-loops": true,

Expected Behavior

The configuration key should generated as it is recognized during linting.

Steps To Reproduce

> npx nrlint --init > .nrlintrc.js.generated

Example flow

N/A

Environment

augjoh commented 3 years ago

Seems to be working when using "off" instead of false.