[x] Bugfix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
Proposed changes
The configuration generated by nrlint --init contains "extends": "eslint:recommended". However, this value is not interpreted by ESLint's linter.verify(). This fix expand the setting of the rule corresponding to eslint:recommended as the value of rules.
To ensure correct linting of undefined variables etc., function and variable definitions have been included in the string surrounding the code, and comments have been added to prevent these lines from being linted.
Proposed changes
nrlint --init
contains"extends": "eslint:recommended"
. However, this value is not interpreted by ESLint's linter.verify(). This fix expand the setting of the rule corresponding toeslint:recommended
as the value ofrules
.Checklist