diff --git a/.github/workflows/pr-checks.yml b/.github/workflows/pr-checks.yml index 8cba1413..077df05e 100644 --- a/.github/workflows/pr-checks.yml +++ b/.github/workflows/pr-checks.yml @@ -7,15 +7,15 @@ jobs: runs-on: ubuntu-latest # Host's operating system. steps: - name: Checkout commit # Download the code from triggering commit. - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v4 with: - node-version: '12.x' + node-version: '20.x' - name: Cache NPM # Leverage npm cache on repeated workflow runs if package.json didn't change. - uses: actions/cache@v1 + uses: actions/cache@v4 with: path: ~/.npm key: ${{ runner.os }}-node-${{ hashFiles('**/vscode/package-lock.json') }} # Make sure to target the `vscode` directory. diff --git a/vscode/src/pebbles/pebble-pabel-provider.ts b/vscode/src/pebbles/pebble-pabel-provider.ts index 7bc6b04d..3d691a5c 100644 --- a/vscode/src/pebbles/pebble-pabel-provider.ts +++ b/vscode/src/pebbles/pebble-pabel-provider.ts @@ -4,7 +4,7 @@ import * as fs from 'fs'; import * as yaml from 'js-yaml'; import path = require('path'); import { extractDartCode } from '../utilities/code-processing'; -import { promptGithubLogin } from '../extension' +import { promptGithubLogin } from '../extension'; import { makeAuthorizedHttpRequest, makeHttpRequest } from '../repository/http-utils'; import TelemetryReporter from '@vscode/extension-telemetry'; import { logEvent } from '../utilities/telemetry-reporter'; diff --git a/vscode/src/pebbles/pebble_repository.ts b/vscode/src/pebbles/pebble_repository.ts index 1499b68d..516baaa9 100644 --- a/vscode/src/pebbles/pebble_repository.ts +++ b/vscode/src/pebbles/pebble_repository.ts @@ -4,7 +4,7 @@ import { extractDartCode } from '../utilities/code-processing'; import * as fs from 'fs'; import * as yaml from 'js-yaml'; import path = require('path'); -import { promptGithubLogin } from '../extension' +import { promptGithubLogin } from '../extension'; import { makeAuthorizedHttpRequest, makeHttpRequest } from '../repository/http-utils'; import { logEvent } from '../utilities/telemetry-reporter'; import { GeminiRepository } from '../repository/gemini-repository'; @@ -193,6 +193,6 @@ async function addPebbleUsage( method: 'post', url: process.env["pebble_used"], data: params, - } + }; const response = await makeAuthorizedHttpRequest(config, context); } \ No newline at end of file diff --git a/vscode/src/tools/create/widget_from_description.ts b/vscode/src/tools/create/widget_from_description.ts index 4fa16c26..97a8fb7c 100644 --- a/vscode/src/tools/create/widget_from_description.ts +++ b/vscode/src/tools/create/widget_from_description.ts @@ -16,6 +16,7 @@ export async function createWidgetFromDescription(geminiRepo: GeminiRepository, canSelectFolders: false, canSelectMany: false, filters: { + // eslint-disable-next-line @typescript-eslint/naming-convention Images: ['png', 'jpg', 'jpeg', 'gif', 'bmp'] } });