Skip to content

Commit 888020b

Browse files
authored
Silence max-classes-per-file for eslint (#15025)
1 parent c1035cd commit 888020b

File tree

8 files changed

+9
-248
lines changed

8 files changed

+9
-248
lines changed

package-lock.json

Lines changed: 0 additions & 247 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/client/activation/common/cancellationUtils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-classes-per-file */
12
/*
23
* cancellationUtils.ts
34
* Copyright (c) Microsoft Corporation.

src/client/pythonEnvironments/discovery/locators/services/KnownPathsService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-classes-per-file */
12
// tslint:disable:no-require-imports no-var-requires no-unnecessary-callback-wrapper
23
import { inject, injectable } from 'inversify';
34
import * as path from 'path';
@@ -10,6 +11,7 @@ import { EnvironmentType, PythonEnvironment } from '../../../info';
1011
import { lookForInterpretersInDirectory } from '../helpers';
1112
import { CacheableLocatorService } from './cacheableLocatorService';
1213

14+
// eslint-disable-next-line global-require
1315
const flatten = require('lodash/flatten') as typeof import('lodash/flatten');
1416

1517
/**
@@ -70,7 +72,7 @@ export class KnownPathsService extends CacheableLocatorService {
7072
private async getInterpreterDetails(interpreter: string) {
7173
const details = await this.helper.getInterpreterInformation(interpreter);
7274
if (!details) {
73-
return;
75+
return undefined;
7476
}
7577
this._hasInterpreters.resolve(true);
7678
return {

src/client/pythonEnvironments/discovery/locators/services/currentPathService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-classes-per-file */
12
// tslint:disable:no-require-imports no-var-requires underscore-consistent-invocation no-unnecessary-callback-wrapper
23
import { inject, injectable } from 'inversify';
34
import { Uri } from 'vscode';

src/client/pythonEnvironments/discovery/locators/services/globalVirtualEnvService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-classes-per-file */
12
// Copyright (c) Microsoft Corporation. All rights reserved.
23
// Licensed under the MIT License.
34

src/client/pythonEnvironments/discovery/locators/services/workspaceVirtualEnvService.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-classes-per-file */
12
// Copyright (c) Microsoft Corporation. All rights reserved.
23
// Licensed under the MIT License.
34

src/test/pythonEnvironments/discovery/locators/cacheableLocatorService.unit.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-classes-per-file */
12
// Copyright (c) Microsoft Corporation. All rights reserved.
23
// Licensed under the MIT License.
34

src/test/pythonEnvironments/discovery/locators/workspaceVirtualEnvWatcherService.unit.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable max-classes-per-file */
12
// Copyright (c) Microsoft Corporation. All rights reserved.
23
// Licensed under the MIT License.
34

0 commit comments

Comments
 (0)