From d8ceeffe531148bd5a32b1a25009833d100ca370 Mon Sep 17 00:00:00 2001 From: Jed Fox Date: Thu, 19 Oct 2017 19:04:47 -0400 Subject: [PATCH] Fix lint-disabling comments --- app/test/unit/git/reset-test.ts | 2 +- script/build.ts | 2 +- script/generate-octicons.ts | 3 +-- script/package.ts | 2 +- script/review-logs.ts | 2 +- script/test-review.ts | 2 +- script/test-setup.ts | 2 +- 7 files changed, 7 insertions(+), 8 deletions(-) diff --git a/app/test/unit/git/reset-test.ts b/app/test/unit/git/reset-test.ts index c6b12f2a477..de0b8ecb176 100644 --- a/app/test/unit/git/reset-test.ts +++ b/app/test/unit/git/reset-test.ts @@ -1,4 +1,4 @@ -/* tslint:disable:no-sync-functions */ +/* eslint-disable no-sync */ import * as path from 'path' import { expect } from 'chai' diff --git a/script/build.ts b/script/build.ts index 15738601bce..4cab1002bb3 100755 --- a/script/build.ts +++ b/script/build.ts @@ -1,4 +1,4 @@ -/* tslint:disable:no-sync-functions */ +/* eslint-disable no-sync */ import * as path from 'path' import * as cp from 'child_process' diff --git a/script/generate-octicons.ts b/script/generate-octicons.ts index 2397b0ad87c..bdad35dce4e 100644 --- a/script/generate-octicons.ts +++ b/script/generate-octicons.ts @@ -19,8 +19,7 @@ const filePath = path.resolve( 'sprite.octicons.svg' ) -/* tslint:disable:no-sync-functions */ -const file = fs.readFileSync(filePath, 'utf-8') +const file = fs.readFileSync(filePath, 'utf-8') // eslint-disable-line no-sync interface IXML2JSResult { svg: { symbol: ReadonlyArray } diff --git a/script/package.ts b/script/package.ts index 1b02d41d5ac..baf89215dcf 100644 --- a/script/package.ts +++ b/script/package.ts @@ -1,4 +1,4 @@ -/* tslint:disable:no-sync-functions */ +/* eslint-disable no-sync */ import * as fs from 'fs-extra' import * as cp from 'child_process' diff --git a/script/review-logs.ts b/script/review-logs.ts index 24639ce4987..b0018667cb9 100644 --- a/script/review-logs.ts +++ b/script/review-logs.ts @@ -1,4 +1,4 @@ -/* tslint:disable:no-sync-functions */ +/* eslint-disable no-sync */ import * as fs from 'fs' import * as path from 'path' diff --git a/script/test-review.ts b/script/test-review.ts index c66dbfb038f..ecc82d1427b 100644 --- a/script/test-review.ts +++ b/script/test-review.ts @@ -1,4 +1,4 @@ -/* tslint:disable:no-sync-functions */ +/* eslint-disable no-sync */ import * as fs from 'fs' import { getLogFiles } from './review-logs' diff --git a/script/test-setup.ts b/script/test-setup.ts index 3df59cc5b1a..c917c1d1620 100644 --- a/script/test-setup.ts +++ b/script/test-setup.ts @@ -1,4 +1,4 @@ -/* tslint:disable:no-sync-functions */ +/* eslint-disable no-sync */ import * as fs from 'fs' import * as cp from 'child_process'