node-red-node-test-helper
node-red-node-test-helper copied to clipboard
code style
I have a few suggestions:
- The code should be linted with ESLint for consistency. NR consumes JSHint, but it's basically a dead project at this point. There should be some module that'll convert a JSHint config to a ESLint config, though.
- Optionally, use prettier for automatic formatting.
- NR now only runs on Node.js v4 or newer; some ES6 features are now OK to use. For example,
letandconstare both allowed in strict mode, and template strings are available. See Kangax' compat table for more info - Add an
.editorconfig