问题:
In order to turn off linting rule for a particular line in JSHint we use the following rule: 为了关闭JSHint中特定行的linting规则,我们使用以下规则:
/* jshint ignore:start*/
$scope.someVar = ConstructorFunction();
/* jshint ignore:end */
I have been trying to locate the equivalent of the above for eslint. 我一直试图找到相当于以上的eslint。
解决方案:
参考一: https://stackoom.com/question/1sMPh/关闭特定行的eslint规则参考二: https://oldbug.net/q/1sMPh/Turning-off-eslint-rule-for-a-specific-line
来源:oschina
链接:https://my.oschina.net/u/4438370/blog/4493919