Remove distinction between CI lint and local lint (#36430)
This commit is contained in:
parent
096e1b12e4
commit
f3cc6f6d84
|
@ -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");
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
|
@ -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"],
|
||||
|
|
Loading…
Reference in a new issue