From 504b932f7b293ef9a4904622501dd7ed6bb89af7 Mon Sep 17 00:00:00 2001 From: Alexander T Date: Wed, 19 Jun 2019 17:30:28 +0300 Subject: [PATCH] @typescript-eslint/camelcase --- .eslintrc | 2 +- scripts/authors.ts | 4 ++-- .../importDefinitelyTypedTests/importDefinitelyTypedTests.ts | 4 ++-- src/testRunner/unittests/moduleResolution.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.eslintrc b/.eslintrc index a3ed20a4ebe..6fd1a872d7b 100644 --- a/.eslintrc +++ b/.eslintrc @@ -19,7 +19,7 @@ "@typescript-eslint/array-type": "off", "@typescript-eslint/ban-types": "off", "camelcase": "off", - "@typescript-eslint/camelcase": "off", + "@typescript-eslint/camelcase": ["error", { "properties": "never", "allow": ["^[A-Za-z][a-zA-Za-z]+_[A-Za-z]+$"] }], "@typescript-eslint/class-name-casing": "error", "@typescript-eslint/explicit-member-accessibility": "off", "@typescript-eslint/import/order": "off", diff --git a/scripts/authors.ts b/scripts/authors.ts index acc265b02f1..7e15e266222 100644 --- a/scripts/authors.ts +++ b/scripts/authors.ts @@ -1,6 +1,6 @@ import fs = require("fs"); import path = require("path"); -import child_process = require("child_process"); +import childProcess = require("child_process"); interface Author { displayNames: string[]; @@ -116,7 +116,7 @@ namespace Commands { console.log(cmd); const outputRegExp = /\d+\s+([^<]+)<([^>]+)>/; const authors: { name: string, email: string, knownAuthor?: Author }[] = []; - const {output: [error, stdout, stderr]} = child_process.spawnSync(`git`, ["shortlog", "-se", ...specs], { cwd: path.resolve(__dirname, "../") }); + const {output: [error, stdout, stderr]} = childProcess.spawnSync(`git`, ["shortlog", "-se", ...specs], { cwd: path.resolve(__dirname, "../") }); if (error) { console.log(stderr.toString()); } diff --git a/scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts b/scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts index 1032cdcb867..270e78c128a 100644 --- a/scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts +++ b/scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts @@ -1,6 +1,6 @@ import * as fs from "fs"; import * as path from "path"; -import * as child_process from "child_process"; +import * as childProcess from "child_process"; interface Map { @@ -59,7 +59,7 @@ function importDefinitelyTypedTest(tscPath: string, rwcTestPath: string, testCas } fs.mkdirSync(testDirectoryPath); - child_process.exec(cmd, { + childProcess.exec(cmd, { maxBuffer: 1 * 1024 * 1024, cwd: testDirectoryPath }, (error, stdout, stderr) => { diff --git a/src/testRunner/unittests/moduleResolution.ts b/src/testRunner/unittests/moduleResolution.ts index 4fecc6c09f3..6194b2b55b0 100644 --- a/src/testRunner/unittests/moduleResolution.ts +++ b/src/testRunner/unittests/moduleResolution.ts @@ -966,7 +966,7 @@ import b = require("./moduleB"); function test(hasDirectoryExists: boolean) { const file1: File = { name: "/root/folder1/file1.ts" }; - const file1_1: File = { name: "/root/folder1/file1_1/index.d.ts" }; // tslint:disable-line variable-name + const file1_1: File = { name: "/root/folder1/file1_1/index.d.ts" }; // eslint-disable-line @typescript-eslint/camelcase const file2: File = { name: "/root/generated/folder1/file2.ts" }; const file3: File = { name: "/root/generated/folder2/file3.ts" }; const host = createModuleResolutionHost(hasDirectoryExists, file1, file1_1, file2, file3);