@typescript-eslint/camelcase

This commit is contained in:
Alexander T
2019-06-19 17:30:28 +03:00
parent 5902b327db
commit 504b932f7b
4 changed files with 6 additions and 6 deletions

View File

@@ -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",

View File

@@ -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());
}

View File

@@ -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<T> {
@@ -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) => {

View File

@@ -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);