Skip to content

Commit 77ea6c9

Browse files
committed
updated dep
1 parent be5dd41 commit 77ea6c9

File tree

13 files changed

+2357
-1770
lines changed

13 files changed

+2357
-1770
lines changed

.eslintrc.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

eslint.config.js

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
const {
2+
defineConfig,
3+
} = require("eslint/config");
4+
5+
const tsParser = require("@typescript-eslint/parser");
6+
const typescriptEslint = require("@typescript-eslint/eslint-plugin");
7+
const js = require("@eslint/js");
8+
9+
const {
10+
FlatCompat,
11+
} = require("@eslint/eslintrc");
12+
13+
const compat = new FlatCompat({
14+
baseDirectory: __dirname,
15+
recommendedConfig: js.configs.recommended,
16+
allConfig: js.configs.all
17+
});
18+
19+
module.exports = defineConfig([{
20+
languageOptions: {
21+
parser: tsParser,
22+
},
23+
24+
plugins: {
25+
"@typescript-eslint": typescriptEslint,
26+
},
27+
28+
extends: compat.extends("eslint:recommended", "plugin:@typescript-eslint/recommended"),
29+
}]);

package-lock.json

Lines changed: 2300 additions & 1751 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@
3131
"@babel/plugin-transform-runtime": "^7.25.9",
3232
"@babel/preset-env": "~7.26.7",
3333
"@babel/preset-typescript": "~7.26.0",
34-
"@types/jest": "^29.5.14",
35-
"@typescript-eslint/eslint-plugin": "^5.62.0",
36-
"@typescript-eslint/parser": "^5.62.0",
37-
"eslint": "^8.57.1",
38-
"jest": "^29.7.0",
39-
"jest-environment-jsdom": "^29.7.0",
34+
"@types/jest": "^30.0.0",
35+
"@typescript-eslint/eslint-plugin": "^8.34.0",
36+
"@typescript-eslint/parser": "^8.34.0",
37+
"eslint": "^9.28.0",
38+
"jest": "^30.0.2",
39+
"jest-environment-jsdom": "^30.0.2",
4040
"jest-environment-node-debug": "^2.0.0",
4141
"jest-fetch-mock": "^3.0.3",
4242
"typescript": "^5.7.3"
4343
},
4444
"dependencies": {
4545
"@inrupt/solid-client-authn-browser": "1.17",
4646
"lint-staged": "^15.4.3",
47-
"rdflib": "^2.2.36",
47+
"rdflib": "^2.2.37",
4848
"solid-namespace": "^0.5.4"
4949
}
5050
}

src/acl/aclLogic.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ export function createAclLogic(store): AclLogic {
8787

8888
return fetcher.load(docURI).then(result => {
8989
if (!result.ok) {
90-
throw new Error('fetchACLRel: While loading:' + (result as any).error)
90+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
91+
throw new Error('fetchACLRel: While loading:' + (result as any).error)
9192
}
9293

9394
const aclDoc = store.any(

src/authn/authUtil.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import * as debug from '../util/debug'
77
* see: https://github.com/facebook/jest/issues/936#issuecomment-545080082 for more
88
* @return {any} - an appContext object
99
*/
10+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1011
export const appContext = ():any => {
12+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
1113
let { SolidAppContext }: any = window
1214
SolidAppContext ||= {}
1315
SolidAppContext.viewingNoAuthPage = false
@@ -40,6 +42,7 @@ export const appContext = ():any => {
4042
* @returns {NamedNode|null}
4143
*/
4244
export function offlineTestID (): NamedNode | null {
45+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4346
const { $SolidTestEnvironment }: any = window
4447
if (
4548
typeof $SolidTestEnvironment !== 'undefined' &&

src/chat/chatLogic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export function createChatLogic(store, profileLogic): ChatLogic {
9696
await store.fetcher.load(
9797
new NamedNode(chatContainer.value + "index.ttl#this")
9898
);
99+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
99100
} catch (e) {
100101
exists = false;
101102
}

src/inbox/inboxLogic.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
import { NamedNode, sym } from "rdflib";
1+
import { NamedNode } from "rdflib";
22
import { InboxLogic } from "../types";
33
import { getArchiveUrl } from "../util/utils";
44

5+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
56
export function createInboxLogic(store, profileLogic, utilityLogic, containerLogic, aclLogic): InboxLogic {
67

78
async function createInboxFor(peerWebId: string, nick: string) {

src/logic/solidLogic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import * as debug from "../util/debug";
1717
** into a `ConnectedStore` or a `LiveStore`. A Fetcher object is
1818
** available at store.fetcher, and `fetch` function at `store.fetcher._fetch`,
1919
*/
20+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2021
export function createSolidLogic(specialFetch: { fetch: (url: any, requestInit: any) => any }, session: Session): SolidLogic {
2122

2223
debug.log("SolidLogic: Unique instance created. There should only be one of these.")

src/profile/profileLogic.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export function createProfileLogic(store, authn, utilityLogic): ProfileLogic {
1717
async function silencedLoadPreferences(user: NamedNode): Promise <NamedNode | undefined> {
1818
try {
1919
return await loadPreferences(user)
20+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
2021
} catch (err) {
2122
return undefined
2223
}

0 commit comments

Comments
 (0)