File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change
1
+ module . exports = {
2
+ extends : [ 'semistandard' ]
3
+ } ;
Original file line number Diff line number Diff line change 329
329
"benchmark" : " ^2.1.4" ,
330
330
"bindings" : " ^1.5.0" ,
331
331
"clang-format" : " ^1.4.0" ,
332
+ "eslint" : " ^7.32.0" ,
333
+ "eslint-config-semistandard" : " ^16.0.0" ,
334
+ "eslint-config-standard" : " ^16.0.3" ,
335
+ "eslint-plugin-import" : " ^2.24.2" ,
336
+ "eslint-plugin-node" : " ^11.1.0" ,
337
+ "eslint-plugin-promise" : " ^5.1.0" ,
332
338
"fs-extra" : " ^9.0.1" ,
333
339
"path" : " ^0.12.7" ,
334
340
"pre-commit" : " ^1.2.2" ,
351
357
"license" : " MIT" ,
352
358
"main" : " index.js" ,
353
359
"name" : " node-addon-api" ,
354
- "optionalDependencies" : {},
355
360
"readme" : " README.md" ,
356
361
"repository" : {
357
362
"type" : " git" ,
372
377
"predev:incremental" : " node-gyp configure build -C test --debug" ,
373
378
"dev:incremental" : " node test" ,
374
379
"doc" : " doxygen doc/Doxyfile" ,
375
- "lint" : " node tools/clang-format" ,
376
- "lint:fix" : " node tools/clang-format --fix"
380
+ "lint" : " eslint $(git diff --name-only refs/remotes/origin/main '**/*.js' | xargs) && node tools/clang-format" ,
381
+ "lint:fix" : " node tools/clang-format --fix && eslint --fix $(git diff --cached --name-only '**/*.js' | xargs && git diff --name-only '**/*.js' | xargs) "
377
382
},
378
383
"pre-commit" : " lint" ,
379
384
"version" : " 4.2.0" ,
You can’t perform that action at this time.
0 commit comments