Skip to content

Commit b7ca91b

Browse files
committed
feat(sort): sort by attestations and add commit lint
1 parent 66d0196 commit b7ca91b

File tree

16 files changed

+2321
-1560
lines changed

16 files changed

+2321
-1560
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[submodule "lib/hypercerts-indexer"]
22
path = lib/hypercerts-indexer
33
url = https://github.com/hypercerts-org/hypercerts-indexer
4-
branch = develop
4+
branch = main

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm commitlint ${1}

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm lint-staged

commitlintrc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default { extends: ["@commitlint/config-conventional"] };

eslint.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
// @ts-check
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
23

3-
import eslint from '@eslint/js';
4-
import tseslint from 'typescript-eslint';
5-
6-
export default tseslint.config(eslint.configs.recommended, ...tseslint.configs.strict);
4+
export default tseslint.config(
5+
eslint.configs.recommended,
6+
...tseslint.configs.strict,
7+
);

package.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,16 @@
1919
"supabase:types:data": "npx supabase gen types typescript --local > ./src/types/supabaseData.ts",
2020
"preintegration": "pnpm --dir ./lib/hypercerts-indexer i",
2121
"lint": "eslint",
22-
"test": "vitest"
22+
"test": "vitest",
23+
"prepare": "husky",
24+
"commitlint": "commitlint --config commitlintrc.ts --edit"
2325
},
2426
"dependencies": {
2527
"@envelop/graphql-middleware": "^6.0.0",
2628
"@graphql-tools/merge": "^9.0.3",
2729
"@graphql-yoga/plugin-response-cache": "^3.5.0",
2830
"@hypercerts-org/marketplace-sdk": "0.3.32",
29-
"@hypercerts-org/sdk": "2.0.0-alpha.37",
31+
"@hypercerts-org/sdk": "2.1.1",
3032
"@ipld/car": "^5.2.5",
3133
"@openzeppelin/merkle-tree": "^1.0.5",
3234
"@sentry/integrations": "^7.114.0",
@@ -74,6 +76,8 @@
7476
},
7577
"devDependencies": {
7678
"@0no-co/graphqlsp": "^1.4.1",
79+
"@commitlint/cli": "^19.4.1",
80+
"@commitlint/config-conventional": "^19.4.1",
7781
"@eddeee888/gcg-typescript-resolver-files": "^0.7.2",
7882
"@eslint/js": "^9.0.0",
7983
"@graphql-codegen/cli": "5.0.2",
@@ -95,14 +99,16 @@
9599
"concurrently": "^8.2.2",
96100
"dotenv": "^16.3.1",
97101
"eslint": "8.56.0",
102+
"husky": "^9.1.5",
98103
"kysely-supabase": "^0.2.0",
104+
"lint-staged": "^15.2.9",
99105
"multiformats": "^13.0.0",
100106
"node-mocks-http": "^1.14.1",
101107
"nodemon": "^3.0.3",
102108
"prettier": "3.3.2",
103109
"rimraf": "^5.0.5",
104110
"sinon": "^17.0.1",
105-
"supabase": "1.187.10",
111+
"supabase": "^1.191.3",
106112
"ts-node": "^10.9.2",
107113
"tsconfig-paths": "^4.2.0",
108114
"tsx": "^4.7.1",
@@ -112,4 +118,4 @@
112118
"vitest": "^1.1.3"
113119
},
114120
"packageManager": "[email protected]"
115-
}
121+
}

0 commit comments

Comments
 (0)