Skip to content

Commit

Permalink
feat: solid property service
Browse files Browse the repository at this point in the history
  • Loading branch information
Maximvdw committed Nov 20, 2024
1 parent cb57913 commit 3bf3062
Show file tree
Hide file tree
Showing 17 changed files with 708 additions and 473 deletions.
40 changes: 0 additions & 40 deletions .eslintrc.js

This file was deleted.

67 changes: 67 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import { fixupConfigRules, fixupPluginRules } from "@eslint/compat";
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import prettier from "eslint-plugin-prettier";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";

const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all
});

export default [{
ignores: ["src/common/engine-default.js"],
},
...fixupConfigRules(compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:eslint-plugin-jsdoc/recommended",
"plugin:eslint-plugin-import/recommended",
"plugin:import/typescript",
"prettier",
)), {
plugins: {
"@typescript-eslint": fixupPluginRules(typescriptEslint),
prettier,
},

languageOptions: {
globals: {
...globals.browser,
...globals.node,
},

parser: tsParser,
ecmaVersion: 5,
sourceType: "module",

parserOptions: {
project: "tsconfig/tsconfig.lint.json",
},
},

rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
"import/no-cycle": ["error", {
maxDepth: 15,
}],

"import/no-unresolved": "off",
"prettier/prettier": ["error"],

"jsdoc/check-tag-names": ["error", {
definedTags: ["category"],
}],
},
}];
17 changes: 10 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"test": "mocha --config test/.mocharc.json",
"cover": "nyc mocha --config test/.mocharc.json && nyc report --reporter=cobertura",
"cover:ci": "nyc mocha --config test/.mocharc.json --reporter mocha-junit-reporter && nyc report --reporter=cobertura",
"lint": "eslint src/ --ignore-pattern engine-default.js --ignore-pattern src/fix/install.js",
"lint": "eslint src/ --ignore-pattern engine-default --ignore-pattern src/fix/install.js",
"clean": "shx rm -rf ./dist && shx rm -rf ./docs/out",
"build": "npm run clean && npm-run-all --parallel build:ts:* && npm run build:webpack",
"build:ts:cjs": "tsc --build ./tsconfig/tsconfig.bundle.cjs.json",
Expand Down Expand Up @@ -105,23 +105,26 @@
"@commitlint/cli": "^19.4.1",
"@commitlint/config-conventional": "^19.4.1",
"@comunica/config-query-sparql": "^3.2.1",
"@eslint/compat": "^1.2.3",
"@eslint/eslintrc": "^3.2.0",
"@eslint/js": "^9.15.0",
"@openhps/core": ">=0.7.10",
"@openhps/rdf": ">=0.4.92",
"@openhps/rdf": ">=0.4.95",
"@types/chai": "^4.3.19",
"@types/cookie-session": "^2.0.49",
"@types/express": "^4.17.21",
"@types/mocha": "^10.0.7",
"@types/node": "^22.5.1",
"@typescript-eslint/eslint-plugin": "^8.3.0",
"@typescript-eslint/parser": "^8.3.0",
"@typescript-eslint/eslint-plugin": "^8.14.1-alpha.8",
"@typescript-eslint/parser": "^8.14.1-alpha.8",
"buffer": "^6.0.3",
"chai": "^4",
"dotenv": "^16.4.5",
"eslint": "^9.9.1",
"eslint": "^9.15.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-deprecation": "^3.0.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsdoc": "^50.2.2",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jsdoc": "^50.5.0",
"eslint-plugin-prettier": "^5.2.1",
"husky": "^9.1.5",
"mocha": "^10.7.3",
Expand Down
2 changes: 0 additions & 2 deletions src/browser/IssuerConfigFetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import { ConfigurationError } from '@inrupt/solid-client-authn-core';

export const WELL_KNOWN_OPENID_CONFIG = '.well-known/openid-configuration';

/* eslint-disable camelcase */
const issuerConfigKeyMap: Record<string, { toKey: string; convertToUrl?: boolean }> = {
issuer: {
toKey: 'issuer',
Expand Down Expand Up @@ -115,7 +114,6 @@ const issuerConfigKeyMap: Record<string, { toKey: string; convertToUrl?: boolean
convertToUrl: true,
},
};
/* eslint-enable camelcase */

/**
*
Expand Down
Loading

0 comments on commit 3bf3062

Please sign in to comment.