Skip to content

Commit 43e6dfa

Browse files
authored
Merge pull request #26 from hypercerts-org/develop
Push to PRD
2 parents 586fb81 + 17d246d commit 43e6dfa

32 files changed

+1963
-282
lines changed

Diff for: .gitmodules

-3
This file was deleted.

Diff for: eslint.config.mjs

+14-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
1-
import globals from "globals";
2-
import pluginJs from "@eslint/js";
3-
import tseslint from "typescript-eslint";
4-
5-
6-
export default [
7-
{ files: ["**/*.{js,mjs,cjs,ts}"] },
8-
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
9-
pluginJs.configs.recommended,
10-
...tseslint.configs.recommended,
11-
];
1+
export default {
2+
root: true,
3+
env: {
4+
browser: true,
5+
node: true,
6+
},
7+
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "plugin:chai-friendly/recommended"],
8+
parser: "@typescript-eslint/parser",
9+
plugins: ["@typescript-eslint", "chai-friendly"],
10+
rules: {
11+
"no-unused-expressions": "off",
12+
"chai-friendly/no-unused-expressions": "error",
13+
},
14+
};

Diff for: lib/hypercerts-api

-1
This file was deleted.

Diff for: package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"esbuild": "^0.19.8",
5353
"eslint": "^9.18.0",
5454
"eslint-config-prettier": "^9.1.0",
55+
"eslint-plugin-chai-friendly": "^1.0.1",
5556
"globals": "^15.14.0",
5657
"husky": "^9.1.7",
5758
"json-schema-to-typescript": "^13.1.1",
@@ -70,7 +71,7 @@
7071
},
7172
"scripts": {
7273
"build": "pnpm types:json && pnpm codegen:api && rollup -c",
73-
"codegen:api": "npx orval --input ./lib/hypercerts-api/src/__generated__/swagger.json --output ./src/__generated__/api.ts",
74+
"codegen:api": "npx orval --input https://api.hypercerts.org/swagger.json --output ./src/__generated__/api.ts",
7475
"clean": "rm -rf ./dist",
7576
"prebuild": "pnpm clean",
7677
"prepack": "pnpm build",
@@ -83,7 +84,7 @@
8384
"commitlint": "commitlint --config commitlintrc.ts --edit"
8485
},
8586
"lint-staged": {
86-
"*.{js, jsx,ts,tsx}": [
87+
"*.{js,jsx,ts,tsx}": [
8788
"eslint --quiet --fix"
8889
],
8990
"*.{json,js,ts,jsx,tsx,html}": [

Diff for: pnpm-lock.yaml

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)