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

Commit

Permalink
[fixed] favor eslint-disable-next-line over disabling and then re-e…
Browse files Browse the repository at this point in the history
…nabling a rule manually
  • Loading branch information
thealjey committed Apr 5, 2017
1 parent a30d433 commit 41c8c95
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/JSLint.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,8 @@ export class JSLint {
*/
linter: CLIEngine;

/* eslint-disable require-jsdoc */
// eslint-disable-next-line require-jsdoc
constructor(configFile: string = defaultConfigFile) {
/* eslint-enable require-jsdoc */
this.linter = new CLIEngine({configFile});
}

Expand Down
3 changes: 1 addition & 2 deletions src/NativeProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,8 @@ export class NativeProcess {
*/
proc: any;

/* eslint-disable require-jsdoc */
// eslint-disable-next-line require-jsdoc
constructor(task: string) {
/* eslint-enable require-jsdoc */
this.task = task;
}

Expand Down
3 changes: 1 addition & 2 deletions src/SASSLint.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ export class SASSLint {
*/
configFile: string;

/* eslint-disable require-jsdoc */
// eslint-disable-next-line require-jsdoc
constructor(configFile: string = defaultConfigFile) {
/* eslint-enable require-jsdoc */
this.configFile = configFile;
}

Expand Down
4 changes: 1 addition & 3 deletions src/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,9 @@ export function highlight(value: string): {dom: any; lines: any} {
const dom = load(el.innerHTML),
lines = dom('.CodeMirror-line');

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

/* eslint-enable lodash/prefer-lodash-method */

return {dom, lines};
}

Expand Down
3 changes: 1 addition & 2 deletions src/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,8 @@ export class Message {
*/
styles: string[] = [];

/* eslint-disable require-jsdoc */
// eslint-disable-next-line require-jsdoc
constructor(style: ConsoleStyleConfig) {
/* eslint-enable require-jsdoc */
this.style = style;
}

Expand Down

0 comments on commit 41c8c95

Please sign in to comment.