Skip to content

Commit 30c95b5

Browse files
authored
Prime the repository for Renovate (#1959)
* update dependencies * fix linting issues * use version 3.0.0 of code climate action * add more dependencies
1 parent 97b99e4 commit 30c95b5

File tree

15 files changed

+1707
-890
lines changed

15 files changed

+1707
-890
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838

3939
- run: yarn run lint
4040

41-
- uses: paambaati/codeclimate-action@v2.7.5
41+
- uses: paambaati/codeclimate-action@v3.0.0
4242
env:
4343
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
4444
with:

extension/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = {
1010
files: ['src/test/**/*.test.ts'],
1111
rules: {
1212
// These aren't jest tests, but still use `expect`
13+
'jest/no-standalone-expect': 'off',
1314
'jest/valid-expect': 'off',
1415
'no-unused-expressions': 'off'
1516
}

extension/package.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1501,10 +1501,10 @@
15011501
},
15021502
"dependencies": {
15031503
"@hediet/std": "^0.6.0",
1504-
"@vscode/extension-telemetry": "^0.4.10",
1504+
"@vscode/extension-telemetry": "^0.6.2",
15051505
"appdirs": "^1.1.0",
15061506
"execa": "^5.1.1",
1507-
"fs-extra": "^10.0.0",
1507+
"fs-extra": "^10.1.0",
15081508
"js-yaml": "^4.1.0",
15091509
"lodash.clonedeep": "^4.5.0",
15101510
"lodash.get": "^4.4.2",
@@ -1516,41 +1516,42 @@
15161516
"uuid": "^8.3.2"
15171517
},
15181518
"devDependencies": {
1519-
"@types/chai": "^4.2.22",
1519+
"@types/chai": "^4.3.1",
15201520
"@types/chai-as-promised": "^7.1.4",
15211521
"@types/copy-webpack-plugin": "^10.1.0",
15221522
"@types/fs-extra": "^9.0.13",
15231523
"@types/jest": "^27.4.1",
15241524
"@types/js-yaml": "^4.0.5",
1525-
"@types/lodash.clonedeep": "^4.5.6",
1526-
"@types/lodash.get": "^4.4.6",
1527-
"@types/lodash.isempty": "^4.4.6",
1528-
"@types/lodash.isequal": "^4.5.5",
1529-
"@types/lodash.merge": "^4.6.6",
1530-
"@types/lodash.omit": "^4.5.6",
1531-
"@types/mocha": "^9.1.0",
1525+
"@types/lodash.clonedeep": "^4.5.7",
1526+
"@types/lodash.get": "^4.4.7",
1527+
"@types/lodash.isempty": "^4.4.7",
1528+
"@types/lodash.isequal": "^4.5.6",
1529+
"@types/lodash.merge": "^4.6.7",
1530+
"@types/lodash.omit": "^4.5.7",
1531+
"@types/mocha": "^9.1.1",
15321532
"@types/mock-require": "^2.0.1",
15331533
"@types/node": "^16.11.8",
15341534
"@types/react-vega": "^7.0.0",
15351535
"@types/sinon-chai": "^3.2.6",
15361536
"@types/uuid": "^8.3.4",
15371537
"@types/vscode": "^1.64.0",
1538-
"@vscode/test-electron": "^2.1.4",
1538+
"@vscode/test-electron": "^2.1.5",
15391539
"chai": "^4.2.0",
15401540
"chai-as-promised": "^7.1.1",
15411541
"clean-webpack-plugin": "^4.0.0",
15421542
"copy-webpack-plugin": "^10.2.4",
1543-
"fork-ts-checker-webpack-plugin": "^6.5.0",
1544-
"jest": "^27.5.1",
1543+
"fork-ts-checker-webpack-plugin": "^7.2.11",
1544+
"jest": "^28.1.2",
1545+
"jest-environment-node": "^28.1.2",
15451546
"lint-staged": "^12.3.7",
1546-
"mocha": "^9.2.2",
1547+
"mocha": "^10.0.0",
15471548
"mock-require": "^3.0.3",
15481549
"shx": "^0.3.3",
1549-
"sinon": "^12.0.1",
1550+
"sinon": "^14.0.0",
15501551
"sinon-chai": "^3.5.0",
1551-
"ts-jest": "^27.1.4",
1552-
"ts-loader": "^9.2.6",
1553-
"vsce": "^2.6.7",
1552+
"ts-jest": "^28.0.5",
1553+
"ts-loader": "^9.3.1",
1554+
"vsce": "^2.9.2",
15541555
"vscode-uri": "^3.0.2",
15551556
"webpack": "^5.73.0",
15561557
"webpack-cli": "^4.9.2"

extension/src/cli/executor.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ describe('CliExecutor', () => {
409409

410410
expect(mockedCreateProcess).toBeCalledWith({
411411
args: ['move', target, destination],
412-
cwd: cwd,
412+
cwd,
413413
env: mockedEnv,
414414
executable: 'dvc'
415415
})

extension/src/experiments/model/filterBy/quickPick.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const addFilterValue = async (path: string, operator: Operator) => {
7777
}
7878

7979
return {
80-
operator: operator,
80+
operator,
8181
path,
8282
value
8383
}
@@ -106,7 +106,7 @@ export const pickFilterToAdd = async (
106106

107107
if ([Operator.IS_TRUE, Operator.IS_FALSE].includes(operator)) {
108108
return {
109-
operator: operator,
109+
operator,
110110
path: picked.path,
111111
value: undefined
112112
}

extension/src/repository/model/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export class RepositoryModel
141141
): PathStatus[] {
142142
return fileOrStage
143143
.map(entry => (entry as StageOrFileStatuses)?.[ChangedType.CHANGED_OUTS])
144-
.filter(value => value) as PathStatus[]
144+
.filter(Boolean) as PathStatus[]
145145
}
146146

147147
private collectStatuses(acc: ModifiedAndNotInCache, entry: PathStatus) {

extension/src/telemetry/index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { extensions } from 'vscode'
2+
// eslint-disable-next-line import/default
23
import TelemetryReporter from '@vscode/extension-telemetry'
34
import { getTelemetryReporter, sendTelemetryEvent } from '.'
45
import {

extension/src/telemetry/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// eslint-disable-next-line import/default
12
import TelemetryReporter from '@vscode/extension-telemetry'
23
import {
34
EXTENSION_ID,

extension/src/test/suite/cli/runner.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ suite('CLI Runner Test Suite', () => {
105105

106106
const cliRunner = disposable.track(
107107
new CliRunner({} as Config, 'echo', {
108-
processCompleted: processCompleted,
109-
processOutput: processOutput,
110-
processStarted: processStarted
108+
processCompleted,
109+
processOutput,
110+
processStarted
111111
})
112112
)
113113

extension/src/util/stdout.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
export const trim = (stdout: string): string => stdout.trim()
22

33
export const trimAndSplit = (stdout: string): string[] =>
4-
trim(stdout)
5-
.split('\n')
6-
.filter(i => i)
4+
trim(stdout).split('\n').filter(Boolean)

0 commit comments

Comments
 (0)