duktape-esp32 icon indicating copy to clipboard operation
duktape-esp32 copied to clipboard

formatting & linting JavaScript

Open boneskull opened this issue 7 years ago • 0 comments

  • The documentation mentions use of JSHint, but I don't see a configuration file anywhere. AFAIK JSHint was actually abandoned as everyone (including JSHint's developers) has moved to using ESLint.

  • Automatic formatting may be desirable, and can be achieved with prettier. A common way to manage this sort of thing is with a pre-commit hook. There's some glue to make it work in tandem with ESLint as well.

Both of these necessitate Node.js and its package.json manifest; this should be present anyhow due to the stuff in tools/.

Comments?

boneskull avatar Feb 06 '18 20:02 boneskull