duktape-esp32
duktape-esp32 copied to clipboard
formatting & linting JavaScript
-
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?