Update deps (#430)

This commit is contained in:
Seth Vargo 2024-08-05 16:15:15 -04:00 committed by GitHub
parent 5e210ff4ed
commit 984b9cfee9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 504 additions and 502 deletions

View File

@ -1,15 +0,0 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
rules: {
'@typescript-eslint/no-explicit-any': 'off',
},
};

18
eslint.config.mjs Normal file
View File

@ -0,0 +1,18 @@
import js from '@eslint/js';
import ts from 'typescript-eslint';
import tsParser from '@typescript-eslint/parser';
import prettierRecommended from 'eslint-plugin-prettier/recommended';
export default ts.config(
js.configs.recommended,
ts.configs.eslintRecommended,
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parser: tsParser,
},
},
{ ignores: ['dist/', '**/*.js'] },
prettierRecommended,
);

941
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,8 +5,8 @@
"main": "dist/main/index.js", "main": "dist/main/index.js",
"scripts": { "scripts": {
"build": "ncc build -m src/main.ts -o dist/main && ncc build -m src/post.ts -o dist/post", "build": "ncc build -m src/main.ts -o dist/main && ncc build -m src/post.ts -o dist/post",
"lint": "eslint . --ext .ts,.tsx", "lint": "eslint .",
"format": "prettier --write **/*.ts", "format": "eslint . --fix",
"test": "bash ./bin/runTests.sh" "test": "bash ./bin/runTests.sh"
}, },
"repository": { "repository": {
@ -25,18 +25,20 @@
"dependencies": { "dependencies": {
"@actions/core": "^1.10.1", "@actions/core": "^1.10.1",
"@actions/http-client": "^2.2.1", "@actions/http-client": "^2.2.1",
"@google-github-actions/actions-utils": "^0.7.4" "@google-github-actions/actions-utils": "^0.8.3"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.12.8", "@eslint/eslintrc": "^3.1.0",
"@typescript-eslint/eslint-plugin": "^7.8.0", "@eslint/js": "^9.8.0",
"@typescript-eslint/parser": "^7.8.0", "@types/node": "^22.1.0",
"@vercel/ncc": "^0.38.1", "@vercel/ncc": "^0.38.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0", "eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3", "eslint-plugin-prettier": "^5.2.1",
"prettier": "^3.2.5", "eslint": "^9.8.0",
"prettier": "^3.3.3",
"ts-node": "^10.9.2", "ts-node": "^10.9.2",
"typescript": "^5.4.5" "typescript-eslint": "^8.0.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"typescript": "^5.5.4"
} }
} }

View File

@ -34,12 +34,12 @@ export interface AuthClient {
* other Google Cloud tools) that instructs the tool how to perform identity * other Google Cloud tools) that instructs the tool how to perform identity
* federation. * federation.
*/ */
createCredentialsFile(outputPath: string): Promise<string>; createCredentialsFile(outputPath: string): Promise<string>; // eslint-disable-line no-unused-vars
/** /**
* signJWT signs a JWT using the auth provider. * signJWT signs a JWT using the auth provider.
*/ */
signJWT(claims: any): Promise<string>; signJWT(claims: any): Promise<string>; // eslint-disable-line no-unused-vars
} }
export interface ClientParameters { export interface ClientParameters {

View File

@ -25,6 +25,7 @@ import {
* LoggerFunction is the type signature of a log function for the GitHub Actions * LoggerFunction is the type signature of a log function for the GitHub Actions
* SDK. * SDK.
*/ */
// eslint-disable-next-line no-unused-vars
type LoggerFunction = (message: string, properties?: AnnotationProperties) => void; type LoggerFunction = (message: string, properties?: AnnotationProperties) => void;
/** /**

View File

@ -19,7 +19,6 @@ import {
} from '@google-github-actions/actions-utils'; } from '@google-github-actions/actions-utils';
// Do not listen to the linter - this can NOT be rewritten as an ES6 import statement. // Do not listen to the linter - this can NOT be rewritten as an ES6 import statement.
// eslint-disable-next-line @typescript-eslint/no-var-requires
export const { version: appVersion } = require('../package.json'); export const { version: appVersion } = require('../package.json');
// userAgent is the default user agent. // userAgent is the default user agent.

View File

@ -3,9 +3,7 @@
"alwaysStrict": true, "alwaysStrict": true,
"target": "es6", "target": "es6",
"module": "commonjs", "module": "commonjs",
"lib": [ "lib": ["es6"],
"es6"
],
"outDir": "./dist", "outDir": "./dist",
"rootDir": "./src", "rootDir": "./src",
"strict": true, "strict": true,