Skip to content

Commit f3cc6f6

Browse files
authored
Remove distinction between CI lint and local lint (microsoft#36430)
1 parent 096e1b1 commit f3cc6f6

File tree

3 files changed

+8
-20
lines changed

3 files changed

+8
-20
lines changed

Gulpfile.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,6 @@ const lintFoldEnd = async () => { if (fold.isTravis()) console.log(fold.end("lin
346346

347347
/** @type { (folder: string) => { (): Promise<any>; displayName?: string } } */
348348
const eslint = (folder) => async () => {
349-
const ESLINTRC_CI = ".eslintrc.ci.json";
350-
const isCIEnv = cmdLineOptions.ci || process.env.CI === "true";
351349

352350
const args = [
353351
"node_modules/eslint/bin/eslint",
@@ -358,13 +356,6 @@ const eslint = (folder) => async () => {
358356
"--ext", ".ts",
359357
];
360358

361-
if (
362-
isCIEnv &&
363-
fs.existsSync(path.resolve(folder, ESLINTRC_CI))
364-
) {
365-
args.push("--config", path.resolve(folder, ESLINTRC_CI));
366-
}
367-
368359
if (cmdLineOptions.fix) {
369360
args.push("--fix");
370361
}

src/.eslintrc.ci.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/.eslintrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
{
22
"extends": "../.eslintrc.json",
3+
"parserOptions": {
4+
"tsconfigRootDir": "src",
5+
"project": "./tsconfig-base.json"
6+
},
7+
"rules": {
8+
"@typescript-eslint/no-unnecessary-qualifier": "error",
9+
"@typescript-eslint/no-unnecessary-type-assertion": "error"
10+
},
311
"overrides": [
412
{
513
"files": ["lib/*.d.ts"],

0 commit comments

Comments
 (0)