Skip to content

Commit deab97a

Browse files
author
Mohamed Elghobaty
committed
migrate to biome
1 parent e92b27e commit deab97a

26 files changed

+234
-351
lines changed

.eslintrc

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

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact=true

.prettierignore

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

.prettierrc

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

.vscode/settings.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"typescript.enablePromptUseWorkspaceTsdk": true,
3-
"typescript.tsdk": "node_modules/typescript/lib"
4-
}
2+
"typescript.enablePromptUseWorkspaceTsdk": true,
3+
"typescript.tsdk": "node_modules/typescript/lib"
4+
}

biome.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.9.1/schema.json",
3+
"vcs": {
4+
"enabled": false,
5+
"clientKind": "git",
6+
"useIgnoreFile": false
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"ignore": ["dist", "webhook-schema.json", "webhook-schema.ts", "graphql/types.ts"]
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"indentStyle": "space",
15+
"indentWidth": 2,
16+
"lineEnding": "lf",
17+
"lineWidth": 100,
18+
"attributePosition": "auto"
19+
},
20+
"organizeImports": {
21+
"enabled": true
22+
},
23+
"linter": {
24+
"enabled": true,
25+
"rules": {
26+
"recommended": true
27+
}
28+
},
29+
"javascript": {
30+
"formatter": {
31+
"quoteStyle": "single",
32+
"quoteProperties": "asNeeded",
33+
"semicolons": "always"
34+
}
35+
}
36+
}

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@
1212
"codegen:graphql": "graphql-codegen",
1313
"codegen:webhooks": "sh ./scripts/codegen-webhooks.sh",
1414
"typecheck": "tsc --noEmit",
15-
"lint": "pnpm run lint:eslint && pnpm run lint:prettier",
16-
"lint:eslint": "eslint 'src/**/*.ts'",
17-
"lint:prettier": "prettier --config=.prettierrc --ignore-path=.prettierignore --check '**/*.{ts,tsx,gql,js}'",
15+
"lint": "biome check",
16+
"lint:fix": "biome check --write .",
1817
"test": "vitest",
1918
"changeset": "changeset",
2019
"release": "npm run build && changeset publish"
@@ -32,10 +31,6 @@
3231
"@typescript-eslint/eslint-plugin": "^5.59.2",
3332
"@typescript-eslint/parser": "^5.59.2",
3433
"esbuild": "^0.17.18",
35-
"eslint": "^8.40.0",
36-
"eslint-plugin-import": "^2.27.5",
37-
"eslint-plugin-simple-import-sort": "^10.0.0",
38-
"eslint-plugin-unused-imports": "^2.0.0",
3934
"json-schema-to-typescript": "^13.1.2",
4035
"rollup": "^3.21.5",
4136
"rollup-plugin-dts": "^5.3.0",
@@ -46,6 +41,7 @@
4641
"vitest": "^0.31.0"
4742
},
4843
"dependencies": {
44+
"@biomejs/biome": "^1.9.1",
4945
"@graphql-typed-document-node/core": "^3.2.0",
5046
"ajv": "^8.12.0",
5147
"ajv-formats": "^2.1.1",

0 commit comments

Comments
 (0)