Skip to content

Commit d92e50e

Browse files
committed
feat: add biome
1 parent 7722000 commit d92e50e

138 files changed

Lines changed: 5574 additions & 5689 deletions

File tree

Some content is hidden

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

.eslintrc.json

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"root": true,
33
"parser": "@typescript-eslint/parser",
4-
// "parserOptions": { "project": "./packages/tsconfig.json" },
4+
// "parserOptions": { "project": "./packages/tsconfig.json" },
55
"env": { "es6": true },
66
"ignorePatterns": ["node_modules", "dist", "coverage", "jest.js"],
77
"plugins": ["import", "eslint-comments"],
@@ -15,25 +15,14 @@
1515
"globals": { "BigInt": true, "console": true, "WebAssembly": true, "vitest": true },
1616
"rules": {
1717
"@typescript-eslint/explicit-module-boundary-types": "off",
18-
"eslint-comments/disable-enable-pair": [
19-
"error",
20-
{ "allowWholeFile": true }
21-
],
18+
"eslint-comments/disable-enable-pair": ["error", { "allowWholeFile": true }],
2219
"eslint-comments/no-unused-disable": "error",
23-
"import/order": [
24-
"error",
25-
{ "newlines-between": "always", "alphabetize": { "order": "asc" } }
26-
],
27-
"sort-imports": [
28-
"error",
29-
{ "ignoreDeclarationSort": true, "ignoreCase": true }
30-
]
20+
"import/order": ["error", { "newlines-between": "always", "alphabetize": { "order": "asc" } }],
21+
"sort-imports": ["error", { "ignoreDeclarationSort": true, "ignoreCase": true }]
3122
},
3223
"overrides": [
3324
{
34-
"files": [
35-
"**/__tests__/**/*.ts"
36-
],
25+
"files": ["**/__tests__/**/*.ts"],
3726
"rules": {
3827
"@typescript-eslint/no-non-null-assertion": "off"
3928
}

biome.json

Lines changed: 41 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,43 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3-
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
4-
"files": { "ignoreUnknown": false, "ignore": [] },
5-
"formatter": {
6-
"enabled": true,
7-
"useEditorconfig": true,
8-
"formatWithErrors": false,
9-
"indentStyle": "space",
10-
"indentWidth": 2,
11-
"lineEnding": "lf",
12-
"lineWidth": 150,
13-
"attributePosition": "auto",
14-
"bracketSpacing": true,
15-
"ignore": [
16-
"**/dist",
17-
"**/coverage",
18-
"**/*/node_modules",
19-
"packages/siop-oid4vp/lib/schemas"
20-
]
21-
},
22-
"organizeImports": { "enabled": true },
23-
"linter": {
24-
"enabled": true,
25-
"rules": { "recommended": false },
26-
"ignore": ["**/node_modules", "**/dist", "**/coverage", "**/jest.js"]
27-
},
28-
"javascript": {
29-
"formatter": {
30-
"jsxQuoteStyle": "double",
31-
"quoteProperties": "asNeeded",
32-
"trailingCommas": "all",
33-
"semicolons": "asNeeded",
34-
"arrowParentheses": "always",
35-
"bracketSameLine": false,
36-
"quoteStyle": "single",
37-
"attributePosition": "auto",
38-
"bracketSpacing": true
39-
},
40-
"globals": ["BigInt", "vitest", "WebAssembly", "console"]
41-
},
42-
"overrides": [
43-
{
44-
"include": ["**/__tests__/**/*.ts"],
45-
"linter": { "rules": { "style": { "noNonNullAssertion": "off" } } }
46-
}
47-
]
2+
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
3+
"vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false },
4+
"files": { "ignoreUnknown": false, "ignore": [] },
5+
"formatter": {
6+
"enabled": true,
7+
"useEditorconfig": true,
8+
"formatWithErrors": false,
9+
"indentStyle": "space",
10+
"indentWidth": 2,
11+
"lineEnding": "lf",
12+
"lineWidth": 150,
13+
"attributePosition": "auto",
14+
"bracketSpacing": true,
15+
"ignore": ["**/dist", "**/coverage", "**/*/node_modules", "packages/siop-oid4vp/lib/schemas", "**/*tsconfig*", "**/schemaValidation.*js"]
16+
},
17+
"organizeImports": { "enabled": true },
18+
"linter": {
19+
"enabled": true,
20+
"rules": { "recommended": false },
21+
"ignore": ["**/node_modules", "**/dist", "**/coverage", "**/jest.js", "**/*tsconfig*", "**/schemaValidation.*js"]
22+
},
23+
"javascript": {
24+
"formatter": {
25+
"jsxQuoteStyle": "double",
26+
"quoteProperties": "asNeeded",
27+
"trailingCommas": "all",
28+
"semicolons": "asNeeded",
29+
"arrowParentheses": "always",
30+
"bracketSameLine": false,
31+
"quoteStyle": "single",
32+
"attributePosition": "auto",
33+
"bracketSpacing": true
34+
},
35+
"globals": ["BigInt", "vitest", "WebAssembly", "console"]
36+
},
37+
"overrides": [
38+
{
39+
"include": ["**/__tests__/**/*.ts"],
40+
"linter": { "rules": { "style": { "noNonNullAssertion": "off" } } }
41+
}
42+
]
4843
}

package.json

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,12 @@
66
"license": "Apache-2.0",
77
"private": true,
88
"packageManager": "pnpm@10.8.1",
9-
"workspaces": [
10-
"packages/*"
11-
],
9+
"workspaces": ["packages/*"],
1210
"scripts": {
1311
"preinstall": "npx only-allow pnpm",
1412
"fix": "pnpm run-s fix:*",
15-
"fix:lint": "eslint . --fix --ext .ts",
16-
"fix:prettier": "prettier --write \"{packages,__tests__,!dist}/**/*.{ts,tsx,js,json,md,yml}\"",
13+
"fix:lint": "biome lint --error-on-warnings",
14+
"fix:prettier": "biome format --write",
1715
"build": "turbo run build",
1816
"test:ci": "vitest run --config ./vitest.config.ts --coverage",
1917
"test": "turbo run test:vitest",
@@ -45,7 +43,6 @@
4543
"@vitest/coverage-v8": "^3.1.1",
4644
"npm-run-all": "^4.1.5",
4745
"@biomejs/biome": "^1.9.4",
48-
"prettier": "^3.3.2",
4946
"rimraf": "^5.0.8",
5047
"lerna": "^8.2.2",
5148
"tsup": "^8.4.0",
@@ -75,10 +72,6 @@
7572
],
7673
"repository": "Sphereon-OpenSource/OID4VCI",
7774
"auto": {
78-
"plugins": [
79-
"npm",
80-
["conventional-commits", { "defaultReleaseType": "patch" }],
81-
"released"
82-
]
75+
"plugins": ["npm", ["conventional-commits", { "defaultReleaseType": "patch" }], "released"]
8376
}
8477
}

packages/callback-example/package.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,7 @@
4646
"engines": {
4747
"node": ">=20.6"
4848
},
49-
"files": [
50-
"src",
51-
"dist",
52-
"README.md",
53-
"LICENSE.md"
54-
],
49+
"files": ["src", "dist", "README.md", "LICENSE.md"],
5550
"keywords": [
5651
"Sphereon",
5752
"Verifiable Credentials",

0 commit comments

Comments
 (0)