Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/shaggy-turkeys-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@team-plain/typescript-sdk': patch
---

Include SDK version as header in all requests to our API so we can better debug failures and issues.
4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

32 changes: 0 additions & 32 deletions .eslintrc

This file was deleted.

62 changes: 62 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 100,
"attributePosition": "auto"
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "es5",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto"
}
},
"files": {
"include": ["biome.json", "vitest.*.js", "src/**/*.ts", "src/**/*.gql"],
"ignore": [
"dist/**",
"node_modules/**",
"src/graphql/types.ts",
"src/webhooks/webhook-schema.ts"
]
},
"linter": {
"rules": {
"complexity": {
"noBannedTypes": "off",
"noForEach": "off"
},
"suspicious": {
"noAssignInExpressions": "off",
"noConfusingVoidType": "off",
"noExplicitAny": "off",
"noShadowRestrictedNames": "off"
},
"style": {
"noNonNullAssertion": "off",
"noParameterAssign": "off",
"useTemplate": "off"
},
"correctness": {
"noUnusedImports": "error"
},
"performance": {
"noAccumulatingSpread": "off"
}
}
},
"organizeImports": {
"enabled": true
}
}
16 changes: 6 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,17 @@
"codegen:graphql": "graphql-codegen",
"codegen:webhooks": "sh ./scripts/codegen-webhooks.sh",
"typecheck": "tsc --noEmit",
"lint": "pnpm run lint:eslint && pnpm run lint:prettier",
"lint:eslint": "eslint 'src/**/*.ts'",
"lint:prettier": "prettier --config=.prettierrc --ignore-path=.prettierignore --check '**/*.{ts,tsx,gql,js}'",
"lint": "biome lint .",
"lint:fix": "biome lint . --fix",
"format": "biome format .",
"format:fix": "biome format --write .",
"test": "vitest",
"changeset": "changeset",
"release": "npm run build && changeset publish"
},
"license": "MIT",
"devDependencies": {
"@biomejs/biome": "1.9.2",
"@changesets/cli": "^2.26.1",
"@graphql-codegen/add": "^4.0.1",
"@graphql-codegen/cli": "^3.3.1",
Expand All @@ -29,13 +31,7 @@
"@graphql-codegen/typescript-document-nodes": "^3.0.4",
"@graphql-codegen/typescript-operations": "^3.0.4",
"@rollup/plugin-json": "^6.1.0",
"@typescript-eslint/eslint-plugin": "^5.59.2",
"@typescript-eslint/parser": "^5.59.2",
"esbuild": "^0.17.18",
"eslint": "^8.40.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "^2.0.0",
"json-schema-to-typescript": "^13.1.2",
"rollup": "^3.21.5",
"rollup-plugin-dts": "^5.3.0",
Expand All @@ -52,4 +48,4 @@
"graphql": "^16.6.0",
"zod": "3.22.4"
}
}
}
Loading