Remove distinction between CI lint and local lint (#36430)

This commit is contained in:
Wesley Wigham 2020-01-24 16:23:14 -08:00 committed by GitHub
parent 096e1b12e4
commit f3cc6f6d84
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 20 deletions

View file

@ -346,8 +346,6 @@ const lintFoldEnd = async () => { if (fold.isTravis()) console.log(fold.end("lin
/** @type { (folder: string) => { (): Promise<any>; displayName?: string } } */
const eslint = (folder) => async () => {
const ESLINTRC_CI = ".eslintrc.ci.json";
const isCIEnv = cmdLineOptions.ci || process.env.CI === "true";
const args = [
"node_modules/eslint/bin/eslint",
@ -358,13 +356,6 @@ const eslint = (folder) => async () => {
"--ext", ".ts",
];
if (
isCIEnv &&
fs.existsSync(path.resolve(folder, ESLINTRC_CI))
) {
args.push("--config", path.resolve(folder, ESLINTRC_CI));
}
if (cmdLineOptions.fix) {
args.push("--fix");
}

View file

@ -1,11 +0,0 @@
{
"extends": "./.eslintrc.json",
"parserOptions": {
"tsconfigRootDir": "src",
"project": "./tsconfig-base.json"
},
"rules": {
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error"
}
}

View file

@ -1,5 +1,13 @@
{
"extends": "../.eslintrc.json",
"parserOptions": {
"tsconfigRootDir": "src",
"project": "./tsconfig-base.json"
},
"rules": {
"@typescript-eslint/no-unnecessary-qualifier": "error",
"@typescript-eslint/no-unnecessary-type-assertion": "error"
},
"overrides": [
{
"files": ["lib/*.d.ts"],