[WIP]tools: simply eslint tasks
This is subtask of https://github.com/nodejs/node/issues/25908.
Main Changes made
- delete all
tools/node_modules/eslint
,tools/node_modules/babel-eslint
- create
package.json
with lint task - rewrite
Makefile
andvcbuild.bat
- related change to
.eslintrc.js
andtools/lint-js.js
Process
- I tested on windows using
.\vcbuild.bat nobuild lint-js
, not tested on linux - npm install looks like failed, not sure why. Though on windows the task still works. Failed log see https://travis-ci.org/gengjiawen/node/jobs/492161168.
I am not fluent in bash
or bat
, nor familiar with the whole lint process.
Any help would be very welcome.
cc @trott @refack @joyeecheung
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines