Skip to content
This repository was archived by the owner on Jul 9, 2021. It is now read-only.

Commit 41c8c95

Browse files
committed
[fixed] favor eslint-disable-next-line over disabling and then re-enabling a rule manually
1 parent a30d433 commit 41c8c95

5 files changed

Lines changed: 5 additions & 11 deletions

File tree

src/JSLint.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,8 @@ export class JSLint {
3535
*/
3636
linter: CLIEngine;
3737

38-
/* eslint-disable require-jsdoc */
38+
// eslint-disable-next-line require-jsdoc
3939
constructor(configFile: string = defaultConfigFile) {
40-
/* eslint-enable require-jsdoc */
4140
this.linter = new CLIEngine({configFile});
4241
}
4342

src/NativeProcess.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ export class NativeProcess {
4242
*/
4343
proc: any;
4444

45-
/* eslint-disable require-jsdoc */
45+
// eslint-disable-next-line require-jsdoc
4646
constructor(task: string) {
47-
/* eslint-enable require-jsdoc */
4847
this.task = task;
4948
}
5049

src/SASSLint.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ export class SASSLint {
3636
*/
3737
configFile: string;
3838

39-
/* eslint-disable require-jsdoc */
39+
// eslint-disable-next-line require-jsdoc
4040
constructor(configFile: string = defaultConfigFile) {
41-
/* eslint-enable require-jsdoc */
4241
this.configFile = configFile;
4342
}
4443

src/highlight.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,9 @@ export function highlight(value: string): {dom: any; lines: any} {
4949
const dom = load(el.innerHTML),
5050
lines = dom('.CodeMirror-line');
5151

52-
/* eslint-disable lodash/prefer-lodash-method */
52+
// eslint-disable-next-line lodash/prefer-lodash-method
5353
lines.find('> span').removeAttr('style');
5454

55-
/* eslint-enable lodash/prefer-lodash-method */
56-
5755
return {dom, lines};
5856
}
5957

src/logger.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ export class Message {
8181
*/
8282
styles: string[] = [];
8383

84-
/* eslint-disable require-jsdoc */
84+
// eslint-disable-next-line require-jsdoc
8585
constructor(style: ConsoleStyleConfig) {
86-
/* eslint-enable require-jsdoc */
8786
this.style = style;
8887
}
8988

0 commit comments

Comments
 (0)