1
ESLint錯誤'計數值無效'我運行lint測試時有大約7000 lint錯誤。但是,如果我嘗試使用--fix
像下面當運行--fix
> esw -c .eslintrc ./src '.js, .jsx' --color --fix
我收到以下錯誤
Invalid count value
RangeError: Invalid count value
at String.repeat (native)
at report (/Users/Projects/uni-sh/fr-webapp/node_modules/eslint/lib/rules/indent.js:267:73)
at checkLastReturnStatementLineIndent (/Users/Projects/uni-sh/fr-webapp/node_modules/eslint/lib/rules/indent.js:430:17)
at EventEmitter.ReturnStatement (/Users/Projects/uni-sh/fr-webapp/node_modules/eslint/lib/rules/indent.js:1050:21)
at emitOne (events.js:101:20)
at EventEmitter.emit (events.js:188:7)
at NodeEventGenerator.enterNode (/Users/Projects/uni-sh/fr-webapp/node_modules/eslint/lib/util/node-event-generator.js:40:22)
at CodePathAnalyzer.enterNode (/Users/Projects/uni-sh/fr-webapp/node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:608:23)
at CommentEventGenerator.enterNode (/Users/Projects/uni-sh/fr-webapp/node_modules/eslint/lib/util/comment-event-generator.js:97:23)
at Controller.enter (/Users/Projects/uniqlo-sh/fr-webapp/node_modules/eslint/lib/eslint.js:927:36)
Adipoli日本卡拉:p –
@NevinMadhukarK kollalo ninaku kure聲譽okke undalloo .... – mshameer
@mshameer你可以請記錄硫作爲一個問題在這裏,我認爲這需要修復。 https://github.com/eslint/eslint/issues – Gyandeep