Skip to content

Commit 504b932

Browse files
committed
@typescript-eslint/camelcase
1 parent 5902b32 commit 504b932

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@typescript-eslint/array-type": "off",
2020
"@typescript-eslint/ban-types": "off",
2121
"camelcase": "off",
22-
"@typescript-eslint/camelcase": "off",
22+
"@typescript-eslint/camelcase": ["error", { "properties": "never", "allow": ["^[A-Za-z][a-zA-Za-z]+_[A-Za-z]+$"] }],
2323
"@typescript-eslint/class-name-casing": "error",
2424
"@typescript-eslint/explicit-member-accessibility": "off",
2525
"@typescript-eslint/import/order": "off",

scripts/authors.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import fs = require("fs");
22
import path = require("path");
3-
import child_process = require("child_process");
3+
import childProcess = require("child_process");
44

55
interface Author {
66
displayNames: string[];
@@ -116,7 +116,7 @@ namespace Commands {
116116
console.log(cmd);
117117
const outputRegExp = /\d+\s+([^<]+)<([^>]+)>/;
118118
const authors: { name: string, email: string, knownAuthor?: Author }[] = [];
119-
const {output: [error, stdout, stderr]} = child_process.spawnSync(`git`, ["shortlog", "-se", ...specs], { cwd: path.resolve(__dirname, "../") });
119+
const {output: [error, stdout, stderr]} = childProcess.spawnSync(`git`, ["shortlog", "-se", ...specs], { cwd: path.resolve(__dirname, "../") });
120120
if (error) {
121121
console.log(stderr.toString());
122122
}

scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as fs from "fs";
22
import * as path from "path";
3-
import * as child_process from "child_process";
3+
import * as childProcess from "child_process";
44

55

66
interface Map<T> {
@@ -59,7 +59,7 @@ function importDefinitelyTypedTest(tscPath: string, rwcTestPath: string, testCas
5959
}
6060
fs.mkdirSync(testDirectoryPath);
6161

62-
child_process.exec(cmd, {
62+
childProcess.exec(cmd, {
6363
maxBuffer: 1 * 1024 * 1024,
6464
cwd: testDirectoryPath
6565
}, (error, stdout, stderr) => {

src/testRunner/unittests/moduleResolution.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ import b = require("./moduleB");
966966

967967
function test(hasDirectoryExists: boolean) {
968968
const file1: File = { name: "/root/folder1/file1.ts" };
969-
const file1_1: File = { name: "/root/folder1/file1_1/index.d.ts" }; // tslint:disable-line variable-name
969+
const file1_1: File = { name: "/root/folder1/file1_1/index.d.ts" }; // eslint-disable-line @typescript-eslint/camelcase
970970
const file2: File = { name: "/root/generated/folder1/file2.ts" };
971971
const file3: File = { name: "/root/generated/folder2/file3.ts" };
972972
const host = createModuleResolutionHost(hasDirectoryExists, file1, file1_1, file2, file3);

0 commit comments

Comments
 (0)