Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ESLint and other Dependencies #62

Merged
merged 1 commit into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.6.0
20.11.1
12 changes: 4 additions & 8 deletions dist/index.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.min.js.map

Large diffs are not rendered by default.

12 changes: 4 additions & 8 deletions dist/index.mjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.mjs.map

Large diffs are not rendered by default.

11 changes: 11 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";


export default [
{files: ["**/*.{js,mjs,cjs,ts}"]},
{languageOptions: { globals: globals.browser }},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];
21 changes: 9 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,27 @@
"Applause"
],
"devDependencies": {
"@eslint/js": "^9.12.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "15.2.1",
"@rollup/plugin-node-resolve": "15.3.0",
"@rollup/plugin-terser": "^0.4.3",
"@rollup/plugin-typescript": "^11.1.3",
"@tsconfig/node20": "^20.1.2",
"@types/jest": "^29.5.4",
"@types/mailparser": "^3.4.4",
"@types/node": "^20.6.0",
"@types/node": "^22.7.4",
"@types/validator": "^13.11.1",
"@typescript-eslint/eslint-plugin": "^6.7.0",
"@typescript-eslint/parser": "^6.7.0",
"eslint": "^8.49.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^5.0.0",
"jest": "^29.6.4",
"eslint": "^9.12.0",
"globals": "^15.11.0",
"jest": "^29.7.0",
"prettier": "^3.0.3",
"rollup": "^3.29.5",
"rollup-plugin-dts": "^6.0.2",
"ts-jest": "^29.1.1",
"ts-node": "10.9.1",
"ts-node": "10.9.2",
"tslib": "^2.6.2",
"typescript": "^5.2.2"
"typescript": "^5.2.2",
"typescript-eslint": "^8.8.1"
},
"dependencies": {
"axios": "^1.6.0",
Expand Down
4 changes: 2 additions & 2 deletions src/auto-api/auto-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ export class AutoApi {
});

this.client.interceptors.response.use(
function (response: AxiosResponse<any, any>) {
function (response: AxiosResponse<unknown, unknown>) {
return response;
},
(error: AxiosError) => {
// log and rethrow
const errText =
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
error.response?.data !== undefined
? JSON.stringify(error.response.data)
: `error-code [${error.response?.status}] with error [${error.response?.statusText}]`;
Expand Down
2 changes: 1 addition & 1 deletion src/auto-api/heartbeat.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import winston = require('winston');
import winston from 'winston';
import { AutoApi } from './auto-api.ts';
import { constructDefaultLogger } from '../shared/logging.ts';

Expand Down
2 changes: 1 addition & 1 deletion src/auto-api/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export class RunReporter {
testRunId: this.testRunId,
// If the additional params provides either test case id, it will override the parsed value we set above
...Object.fromEntries(
Object.entries(params || {}).filter(([_, v]) => v !== undefined)
Object.entries(params || {}).filter(params => params[1] !== undefined)
),
})
.then(res => {
Expand Down
2 changes: 1 addition & 1 deletion src/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export function overrideConfig(
{},
config,
Object.fromEntries(
Object.entries(overrides ?? {}).filter(([_, v]) => v !== undefined)
Object.entries(overrides ?? {}).filter(params => params[1] !== undefined)
)
);
}
Expand Down
4 changes: 2 additions & 2 deletions src/public-api/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ export class PublicApi {
responseType: 'json',
});
this.client.interceptors.response.use(
function (response: AxiosResponse<any, any>) {
function (response: AxiosResponse<unknown, unknown>) {
return response;
},
(error: AxiosError) => {
// log and rethrow
const errText =
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
error.response?.data !== undefined
? JSON.stringify(error.response.data)
: `error-code [${error.response?.status}] with error [${error.response?.statusText}]`;
Expand Down
Loading
Loading