Skip to content

Commit dca3538

Browse files
Merge pull request #328 from DonOmalVindula/fix-ci-errors
Fix lint issues in vue, express, node, i18n, react-router, tanstack-router
2 parents d554e80 + 019cd19 commit dca3538

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1740
-1256
lines changed

.changeset/sixty-toys-enjoy.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
'@asgardeo/tanstack-router': patch
3+
'@asgardeo/react-router': patch
4+
'@asgardeo/browser': patch
5+
'@asgardeo/express': patch
6+
'@asgardeo/nextjs': patch
7+
'@asgardeo/react': patch
8+
'@asgardeo/i18n': patch
9+
'@asgardeo/node': patch
10+
'@asgardeo/vue': patch
11+
---
12+
13+
Fix failures in the CI

package.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
},
3131
"devDependencies": {
3232
"@changesets/changelog-github": "0.5.1",
33-
"@changesets/cli": "2.29.4",
33+
"@changesets/cli": "2.29.8",
3434
"@wso2/eslint-plugin": "catalog:",
3535
"@wso2/prettier-config": "catalog:",
3636
"eslint": "8.57.0",
@@ -46,7 +46,18 @@
4646
"test-exclude>glob": "10.5.0",
4747
"js-beautify>glob": "10.5.0",
4848
"@types/react": "19.1.5",
49-
"@types/react-dom": "19.1.5"
49+
"@types/react-dom": "19.1.5",
50+
"js-yaml": "4.1.1",
51+
"read-yaml-file": "2.1.0",
52+
"brace-expansion": "2.0.2",
53+
"@eslint/plugin-kit": "0.3.4",
54+
"tmp": "0.2.4",
55+
"min-document": "2.19.1",
56+
"lodash": "4.17.23",
57+
"tar": "7.5.4",
58+
"seroval": "1.4.1",
59+
"qs": "6.14.1",
60+
"@vitejs/plugin-vue>vite": "7.1.12"
5061
}
5162
},
5263
"publishConfig": {

packages/browser/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
"esbuild-plugin-inline-worker": "0.1.1",
5151
"esbuild-plugins-node-modules-polyfill": "1.7.0",
5252
"eslint": "8.57.0",
53+
"jsdom": "^27.4.0",
5354
"playwright": "1.55.1",
5455
"prettier": "2.6.2",
5556
"rimraf": "6.1.0",

packages/browser/src/utils/__tests__/navigate.test.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616
* under the License.
1717
*/
1818

19-
import {vi} from 'vitest';
19+
/**
20+
* @vitest-environment jsdom
21+
*/
22+
23+
import {vi, describe, it, expect, beforeEach, afterEach} from 'vitest';
2024
import navigate from '../navigate';
2125

2226
describe('navigate', () => {
@@ -28,8 +32,6 @@ describe('navigate', () => {
2832
// @ts-ignore
2933
window.dispatchEvent = vi.fn();
3034
// @ts-ignore
31-
window.location.assign = vi.fn();
32-
// @ts-ignore
3335
delete window.location;
3436
// @ts-ignore
3537
window.location = {

packages/browser/vitest.config.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,9 @@ import {defineConfig} from 'vitest/config';
2020

2121
export default defineConfig({
2222
test: {
23-
browser: {
24-
enabled: true,
25-
headless: true,
26-
instances: [{browser: 'chromium'}],
27-
provider: 'playwright',
28-
},
23+
environment: 'jsdom',
2924
globals: true,
25+
testTimeout: 10000,
26+
hookTimeout: 10000,
3027
},
3128
});

packages/express/.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/dist
22
/build
33
/node_modules
4-
/coverage
4+
/coverage
5+
/src/__legacy__

packages/express/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
"clean": "rimraf dist",
3838
"fix:lint": "eslint . --ext .js,.jsx,.ts,.tsx,.cjs,.mjs",
3939
"lint": "eslint . --ext .js,.jsx,.ts,.tsx,.cjs,.mjs",
40-
"test": "vitest",
40+
"test": "vitest --passWithNoTests",
4141
"typecheck": "tsc -p tsconfig.lib.json"
4242
},
4343
"devDependencies": {
@@ -46,7 +46,7 @@
4646
"@wso2/prettier-config": "catalog:",
4747
"esbuild": "0.25.9",
4848
"eslint": "8.57.0",
49-
"express": "5.1.0",
49+
"express": "5.2.1",
5050
"prettier": "2.6.2",
5151
"rimraf": "6.1.0",
5252
"typescript": "5.7.2",

packages/express/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
2-
* Copyright (c) 2022, WSO2 Inc. (http://www.wso2.com) All Rights Reserved.
2+
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
33
*
4-
* WSO2 Inc. licenses this file to you under the Apache License,
4+
* WSO2 LLC. licenses this file to you under the Apache License,
55
* Version 2.0 (the "License"); you may not use this file except
66
* in compliance with the License.
77
* You may obtain a copy of the License at
@@ -16,7 +16,7 @@
1616
* under the License.
1717
*/
1818

19-
export * from "./__legacy__/models";
20-
export * from "./__legacy__/client";
19+
export * from './__legacy__/models';
20+
export * from './__legacy__/client';
2121

2222
export * from '@asgardeo/node';

packages/express/vitest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* under the License.
1717
*/
1818

19+
// eslint-disable-next-line import/no-extraneous-dependencies
1920
import {defineConfig} from 'vitest/config';
2021

2122
export default defineConfig({

packages/i18n/src/translations/hi-IN.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
*/
1818

1919
/* eslint-disable sort-keys */
20+
/* eslint-disable @typescript-eslint/naming-convention */
2021

2122
import {I18nTranslations, I18nMetadata, I18nBundle} from '../models/i18n';
2223

0 commit comments

Comments
 (0)