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。)
ask by runtimeZero translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…