Commit graph

3 commits

Author SHA1 Message Date
Rod Vagg
e40c99e283
src: implement standard.js linting
In addition:

* moved module.exports to the bottom
* no single-line if statements
* no if statements without a {
* const for requires
* array declarations get spaces inside [ ]
* 'use strict' in all .js files

PR-URL: https://github.com/nodejs/node-gyp/pull/1794
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: João Reis <reis@janeasystems.com>
2019-07-06 14:36:37 +10:00
João Reis
788e767179
test: remove unused variable
This fixes linting.

https://github.com/nodejs/node-gyp/pull/1561
Reviewed-By: Refael Ackermann <refack@gmail.com>
2019-04-24 10:28:59 +10:00
Rod Vagg
6cd84b84fc test: formatting and minor fixes for execFileSync replacement
PR-URL: https://github.com/nodejs/node-gyp/pull/1521
Reviewed-By: Jon Moss <me@jonathanmoss.me>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
2018-08-09 10:16:12 +10:00