node-red-node-test-helper icon indicating copy to clipboard operation
node-red-node-test-helper copied to clipboard

code style

Open boneskull opened this issue 7 years ago • 0 comments

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, let and const are both allowed in strict mode, and template strings are available. See Kangax' compat table for more info
  • Add an .editorconfig

boneskull avatar Mar 14 '18 17:03 boneskull