Me gustaría aplicar JSHint y "use strict";
a mi código Node.js, pero cuando lo hago, JSHint se queja:
$ jshint .
binfix.js: line 14, col 1, 'exports' is not defined.
binfix.js: line 24, col 1, 'exports' is not defined.
binfix.js: line 48, col 1, 'exports' is not defined.
use la opción /*jshint node:true */
.
@antonkovalyov ¡Gracias de nuevo! ¡Todas las advertencias desaparecieron cuando agregué "node": true
a mi .jshintrc
!
Agregué esto:
{
"node" : true
}
en el archivo .jshintrc y funcionó bien para mí. ¡Gracias @mcandre y @valueof !
Comentario más útil
Agregué esto:
en el archivo .jshintrc y funcionó bien para mí. ¡Gracias @mcandre y @valueof !