Skip to content

Commit 5f31ebb

Browse files
authored
update eslint version (#24868)
1 parent a9c38bf commit 5f31ebb

File tree

8 files changed

+956
-957
lines changed

8 files changed

+956
-957
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"@typescript-eslint/no-var-requires": "off",
5454

5555
// Other rules
56-
"class-methods-use-this": ["error", {"exceptMethods": ["dispose"]}],
56+
"class-methods-use-this": ["error", { "exceptMethods": ["dispose"] }],
5757
"func-names": "off",
5858
"import/extensions": "off",
5959
"import/namespace": "off",

package-lock.json

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

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@
15241524
"minimatch": "^5.0.1",
15251525
"named-js-regexp": "^1.3.3",
15261526
"node-stream-zip": "^1.6.0",
1527-
"reflect-metadata": "^0.1.12",
1527+
"reflect-metadata": "^0.2.2",
15281528
"rxjs": "^6.5.4",
15291529
"rxjs-compat": "^6.5.4",
15301530
"semver": "^7.5.2",
@@ -1576,9 +1576,9 @@
15761576
"cross-spawn": "^6.0.5",
15771577
"del": "^6.0.0",
15781578
"download": "^8.0.0",
1579-
"eslint": "^7.2.0",
1579+
"eslint": "^8.57.1",
15801580
"eslint-config-prettier": "^8.3.0",
1581-
"eslint-plugin-import": "^2.29.1",
1581+
"eslint-plugin-import": "^2.31.0",
15821582
"eslint-plugin-jsx-a11y": "^6.3.1",
15831583
"eslint-plugin-no-only-tests": "^3.3.0",
15841584
"eslint-plugin-react": "^7.20.3",

src/client/common/pipes/namedPipes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class CombinedReader implements rpc.MessageReader {
9292

9393
private _onPartialMessage = new rpc.Emitter<rpc.PartialMessageInfo>();
9494

95-
// eslint-disable-next-line @typescript-eslint/no-empty-function
95+
// eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-empty-function
9696
private _callback: rpc.DataCallback = () => {};
9797

9898
private _disposables: rpc.Disposable[] = [];

src/client/interpreter/activation/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,9 @@ export class EnvironmentActivationService implements IEnvironmentActivationServi
386386
return undefined;
387387
}
388388

389+
// eslint-disable-next-line class-methods-use-this
389390
@traceDecoratorError('Failed to parse Environment variables')
390391
@traceDecoratorVerbose('parseEnvironmentOutput', TraceOptions.None)
391-
// eslint-disable-next-line class-methods-use-this
392392
private parseEnvironmentOutput(output: string, parse: (out: string) => NodeJS.ProcessEnv | undefined) {
393393
if (output.indexOf(ENVIRONMENT_PREFIX) === -1) {
394394
return parse(output);

src/client/pythonEnvironments/common/environmentManagers/activestate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ export class ActiveState {
7575

7676
private static readonly defaultStateCommand: string = 'state';
7777

78-
@cache(30_000, true, 10_000)
7978
// eslint-disable-next-line class-methods-use-this
79+
@cache(30_000, true, 10_000)
8080
private async getProjectsCached(): Promise<ProjectInfo[] | undefined> {
8181
try {
8282
const stateCommand =

src/client/pythonEnvironments/common/environmentManagers/condaService.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ export class CondaService implements ICondaService {
5555
/**
5656
* Return the path to the "conda file".
5757
*/
58+
5859
// eslint-disable-next-line class-methods-use-this
5960
public async getCondaFile(forShellExecution?: boolean): Promise<string> {
6061
return Conda.getConda().then((conda) => {
@@ -142,8 +143,9 @@ export class CondaService implements ICondaService {
142143
* Return the info reported by the conda install.
143144
* The result is cached for 30s.
144145
*/
145-
@cache(60_000)
146+
146147
// eslint-disable-next-line class-methods-use-this
148+
@cache(60_000)
147149
public async getCondaInfo(): Promise<CondaInfo | undefined> {
148150
const conda = await Conda.getConda();
149151
return conda?.getInfo();

src/client/pythonEnvironments/common/environmentManagers/pixi.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,9 @@ export class Pixi {
154154
*
155155
* @param envDir The root directory (or prefix) of a conda environment
156156
*/
157-
@cache(5_000, true, 10_000)
157+
158158
// eslint-disable-next-line class-methods-use-this
159+
@cache(5_000, true, 10_000)
159160
async getPixiEnvironmentMetadata(envDir: string): Promise<PixiEnvMetadata | undefined> {
160161
const pixiPath = path.join(envDir, 'conda-meta/pixi');
161162
try {

0 commit comments

Comments
 (0)