Skip to content

Commit 0b499cb

Browse files
authored
Merge branch 'main' into alternative-jackal
2 parents 6a55699 + 5f31ebb commit 0b499cb

File tree

8 files changed

+953
-1028
lines changed

8 files changed

+953
-1028
lines changed

.eslintrc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"no-only-tests"
1111
],
1212
"extends": [
13-
"airbnb",
1413
"plugin:@typescript-eslint/recommended",
1514
"plugin:import/errors",
1615
"plugin:import/warnings",
@@ -54,7 +53,7 @@
5453
"@typescript-eslint/no-var-requires": "off",
5554

5655
// Other rules
57-
"class-methods-use-this": ["error", {"exceptMethods": ["dispose"]}],
56+
"class-methods-use-this": ["error", { "exceptMethods": ["dispose"] }],
5857
"func-names": "off",
5958
"import/extensions": "off",
6059
"import/namespace": "off",
@@ -101,6 +100,8 @@
101100
],
102101
"operator-assignment": "off",
103102
"strict": "off",
104-
"no-only-tests/no-only-tests": ["error", { "block": ["test", "suite"], "focus": ["only"] }]
103+
"no-only-tests/no-only-tests": ["error", { "block": ["test", "suite"], "focus": ["only"] }],
104+
"prefer-const": "off",
105+
"import/no-named-as-default-member": "off"
105106
}
106107
}

package-lock.json

Lines changed: 938 additions & 1016 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 & 4 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,10 +1576,9 @@
15761576
"cross-spawn": "^6.0.5",
15771577
"del": "^6.0.0",
15781578
"download": "^8.0.0",
1579-
"eslint": "^7.2.0",
1580-
"eslint-config-airbnb": "^18.2.0",
1579+
"eslint": "^8.57.1",
15811580
"eslint-config-prettier": "^8.3.0",
1582-
"eslint-plugin-import": "^2.29.1",
1581+
"eslint-plugin-import": "^2.31.0",
15831582
"eslint-plugin-jsx-a11y": "^6.3.1",
15841583
"eslint-plugin-no-only-tests": "^3.3.0",
15851584
"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)