所以我正在使用Cmder在终端上使用eslint处理节点js项目。
我有这个截图。
如果您复制并粘贴终端的内容。您会看到行号被粘贴在文本框中。
C:\Users\Bangonkali\Desktop\Projects\oneinbox-api (develop -> origin) (api@0.0.118)
λ npm run lint
> api@0.0.118 lint C:\Users\Bangonkali\Desktop\Projects\oneinbox-api
> npm run flow && eslint src/ test/
> api@0.0.118 flow C:\Users\Bangonkali\Desktop\Projects\oneinbox-api
> flow check
Found 0 errors
C:\Users\Bangonkali\Desktop\Projects\oneinbox-api\test\invitation\invite.js
25:1 error More than 1 blank line not allowed no-multiple-empty-lines
✖ 1 problem (1 error, 0 warnings)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! api@0.0.118 lint: `npm run flow && eslint src/ test/`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the api@0.0.118 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Bangonkali\AppData\Roaming\npm-cache\_logs\2017-11-10T05_20_53_362Z-debug.log