Skip to content
Open
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
2 changes: 1 addition & 1 deletion .claude/hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@local/tsconfig": "0.0.0-private",
"@types/node": "22.18.13",
"@vitest/coverage-istanbul": "3.2.4",
"eslint": "9.38.0",
"eslint": "9.39.2",
"tsx": "4.20.6",
"typescript": "5.9.3",
"vitest": "3.2.4"
Expand Down
2 changes: 1 addition & 1 deletion apps/hash-ai-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"@types/papaparse": "5.3.16",
"@types/sanitize-html": "2.16.0",
"@vitest/coverage-istanbul": "3.2.4",
"eslint": "9.38.0",
"eslint": "9.39.2",
"jsdom": "24.1.3",
"mastra": "1.0.0-beta.5",
"npm-run-all2": "8.0.4",
Expand Down
2 changes: 1 addition & 1 deletion apps/hash-ai-worker-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"@types/papaparse": "5.3.16",
"@types/sanitize-html": "2.16.0",
"@vitest/coverage-istanbul": "3.2.4",
"eslint": "9.38.0",
"eslint": "9.39.2",
"rimraf": "6.1.2",
"typescript": "5.9.3",
"vitest": "3.2.4",
Expand Down
2 changes: 1 addition & 1 deletion apps/hash-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@
"@types/mime-types": "2.1.4",
"@types/nodemailer": "6.4.17",
"@vitest/coverage-istanbul": "3.2.4",
"eslint": "9.38.0",
"eslint": "9.39.2",
"rimraf": "6.1.2",
"typescript": "5.9.3",
"vitest": "3.2.4",
Expand Down
2 changes: 1 addition & 1 deletion apps/hash-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
"@types/react-window": "1.8.8",
"@types/url-regex-safe": "1.0.2",
"@welldone-software/why-did-you-render": "10.0.1",
"eslint": "9.38.0",
"eslint": "9.39.2",
"graphology-types": "0.24.8",
"rimraf": "6.1.2",
"sass": "1.93.2",
Expand Down
2 changes: 1 addition & 1 deletion apps/hash-integration-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@local/eslint": "0.0.0-private",
"@local/tsconfig": "0.0.0-private",
"@types/dotenv-flow": "3.3.3",
"eslint": "9.38.0",
"eslint": "9.39.2",
"rimraf": "6.1.2",
"typescript": "5.9.3",
"wait-on": "9.0.1"
Expand Down
2 changes: 1 addition & 1 deletion apps/mcp/linear/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@types/dotenv-flow": "3.3.3",
"@types/node": "22.18.13",
"chokidar-cli": "3.0.0",
"eslint": "9.38.0",
"eslint": "9.39.2",
"rimraf": "6.1.2",
"shx": "0.4.0",
"tsx": "4.20.6",
Expand Down
2 changes: 1 addition & 1 deletion apps/mcp/notion/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@types/dotenv-flow": "3.3.3",
"@types/node": "22.18.13",
"chokidar-cli": "3.0.0",
"eslint": "9.38.0",
"eslint": "9.39.2",
"rimraf": "6.1.2",
"shx": "0.4.0",
"tsx": "4.20.6",
Expand Down
4 changes: 2 additions & 2 deletions apps/plugin-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"copy-webpack-plugin": "11.0.0",
"css-loader": "6.11.0",
"dotenv-flow": "3.3.0",
"eslint": "9.38.0",
"eslint": "9.39.2",
"file-loader": "6.2.0",
"fs-extra": "11.3.2",
"html-loader": "4.2.0",
Expand All @@ -87,7 +87,7 @@
"terser-webpack-plugin": "5.3.14",
"ts-loader": "9.5.4",
"tsconfig-paths-webpack-plugin": "4.2.0",
"type-fest": "5.1.0",
"type-fest": "5.3.1",
"typescript": "5.9.3",
"webpack": "5.102.1",
"webpack-cli": "6.0.1",
Expand Down
2 changes: 1 addition & 1 deletion libs/@blockprotocol/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"@types/lodash.isequal": "4.5.8",
"@types/node": "22.18.13",
"@types/react": "19.2.7",
"eslint": "9.38.0",
"eslint": "9.39.2",
"rimraf": "6.1.2",
"tsx": "4.20.6",
"typescript": "5.9.3"
Expand Down
2 changes: 1 addition & 1 deletion libs/@blockprotocol/type-system/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@types/react": "19.2.7",
"@types/semver": "7.7.1",
"@vitest/coverage-istanbul": "3.2.4",
"eslint": "9.38.0",
"eslint": "9.39.2",
"react": "19.2.3",
"rimraf": "6.1.2",
"rollup": "4.53.3",
Expand Down
2 changes: 1 addition & 1 deletion libs/@hashintel/block-design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@types/react-syntax-highlighter": "15.5.13",
"eslint": "9.38.0",
"eslint": "9.39.2",
"react": "19.2.3",
"react-dom": "19.2.3",
"typescript": "5.9.3"
Expand Down
2 changes: 1 addition & 1 deletion libs/@hashintel/design-system/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"@mui/system": "5.18.0",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"eslint": "9.38.0",
"eslint": "9.39.2",
"react": "19.2.3",
"react-dom": "19.2.3",
"typescript": "5.9.3"
Expand Down
4 changes: 2 additions & 2 deletions libs/@hashintel/ds-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "5.0.4",
"eslint": "9.38.0",
"eslint-plugin-storybook": "9.1.13",
"eslint": "9.39.2",
"eslint-plugin-storybook": "10.1.10",
"lucide-react": "0.544.0",
"storybook": "9.1.17",
"typescript": "5.9.3",
Expand Down
4 changes: 3 additions & 1 deletion libs/@hashintel/petrinaut-old/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ export default [
files: ["dev/**/*"],
languageOptions: {
parserOptions: {
project: "./dev/tsconfig.json",
projectService: {
defaultProject: "./dev/tsconfig.json",
},
tsconfigRootDir: import.meta.dirname,
},
},
Expand Down
2 changes: 1 addition & 1 deletion libs/@hashintel/petrinaut-old/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "5.0.4",
"eslint": "9.38.0",
"eslint": "9.39.2",
"immer": "10.1.3",
"react": "19.2.3",
"react-dom": "19.2.3",
Expand Down
4 changes: 3 additions & 1 deletion libs/@hashintel/petrinaut/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export default [
files: ["demo-site/**/*"],
languageOptions: {
parserOptions: {
project: "./demo-site/tsconfig.json",
projectService: {
defaultProject: "./demo-site/tsconfig.json",
},
tsconfigRootDir: import.meta.dirname,
},
},
Expand Down
2 changes: 1 addition & 1 deletion libs/@hashintel/petrinaut/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "5.0.4",
"babel-plugin-react-compiler": "1.0.0",
"eslint": "9.38.0",
"eslint": "9.39.2",
"immer": "10.1.3",
"react": "19.2.3",
"react-dom": "19.2.3",
Expand Down
4 changes: 2 additions & 2 deletions libs/@hashintel/query-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"@local/eslint": "0.0.0-private",
"@mui/material": "5.18.0",
"@mui/system": "5.18.0",
"eslint": "9.38.0",
"eslint-plugin-storybook": "9.1.13",
"eslint": "9.39.2",
"eslint-plugin-storybook": "10.1.10",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-hook-form": "7.65.0",
Expand Down
2 changes: 1 addition & 1 deletion libs/@hashintel/refractive/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@types/react-dom": "19.2.3",
"@vitejs/plugin-react": "5.0.4",
"babel-plugin-react-compiler": "1.0.0",
"eslint": "9.38.0",
"eslint": "9.39.2",
"typescript": "5.9.3",
"vite": "7.1.11",
"vite-plugin-dts": "4.5.4"
Expand Down
4 changes: 2 additions & 2 deletions libs/@hashintel/type-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"@mui/system": "5.18.0",
"@types/lodash.memoize": "4.1.9",
"@types/lodash.uniqueid": "4.0.9",
"eslint": "9.38.0",
"eslint-plugin-storybook": "9.1.13",
"eslint": "9.39.2",
"eslint-plugin-storybook": "10.1.10",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-hook-form": "7.65.0",
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/advanced-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"devDependencies": {
"@local/eslint": "0.0.0-private",
"@local/tsconfig": "0.0.0-private",
"eslint": "9.38.0",
"eslint": "9.39.2",
"react": "19.2.3",
"rimraf": "6.1.2",
"typescript": "5.9.3"
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/effect-dns/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"devDependencies": {
"@local/eslint": "0.0.0-private",
"@local/tsconfig": "0.0.0-private",
"eslint": "9.38.0",
"eslint": "9.39.2",
"rimraf": "6.1.2",
"typescript": "5.9.3"
}
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/effect-dns/hickory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@local/eslint": "0.0.0-private",
"@local/tsconfig": "0.0.0-private",
"@vitest/coverage-istanbul": "3.2.4",
"eslint": "9.38.0",
"eslint": "9.39.2",
"rimraf": "6.1.2",
"typescript": "5.9.3",
"vitest": "3.2.4"
Expand Down
13 changes: 7 additions & 6 deletions libs/@local/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,21 +22,22 @@
"dependencies": {
"@babel/core": "7.28.4",
"@babel/eslint-parser": "7.28.4",
"@eslint/eslintrc": "3.3.1",
"@eslint/eslintrc": "3.3.3",
"effect": "3.18.4",
"eslint": "9.38.0",
"eslint": "9.39.2",
"eslint-config-airbnb": "19.0.4",
"eslint-config-flat-gitignore": "2.1.0",
"eslint-config-prettier": "10.1.8",
"eslint-config-sheriff": "29.0.0",
"eslint-config-sheriff": "31.1.0",
"eslint-import-resolver-node": "0.3.9",
"eslint-import-resolver-typescript": "4.4.4",
"eslint-plugin-canonical": "5.1.3",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-react-hooks": "7.0.0",
"eslint-plugin-storybook": "9.1.13",
"eslint-plugin-react-hooks": "7.0.1",
"eslint-plugin-storybook": "10.1.10",
"eslint-unicorn": "55.0.0",
"globals": "16.4.0"
"globals": "16.4.0",
"type-fest": "5.3.1"
},
"devDependencies": {
"@local/tsconfig": "0.0.0-private",
Expand Down
8 changes: 7 additions & 1 deletion libs/@local/eslint/src/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ import type { Linter } from "eslint";
import { JS_EXTENSIONS, JSX_EXTENSIONS } from "./constants.js";
import { defineConfig, type ESConfig } from "./utils.js";

const namingConvention = ({ tsx }: { tsx: boolean }): Linter.RuleEntry => [
interface NamingConventionOptions {
readonly tsx: boolean;
}

const namingConvention = ({
tsx,
}: NamingConventionOptions): Linter.RuleEntry => [
"error",
// adapted from https://github.com/AndreaPontrandolfo/sheriff/blob/3a6e3c9873c4b8fbbfbd01b6051c55fd1e57609a/packages/eslint-config-sheriff/src/getTsNamingConventionRule.ts#L9
{
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/graph/sdk/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@local/eslint": "0.0.0-private",
"@local/tsconfig": "0.0.0-private",
"@vitest/coverage-istanbul": "3.2.4",
"eslint": "9.38.0",
"eslint": "9.39.2",
"rimraf": "6.1.2",
"typescript": "5.9.3",
"vitest": "3.2.4"
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/graph/type-defs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
},
"devDependencies": {
"@local/eslint": "0.0.0-private",
"eslint": "9.38.0",
"eslint": "9.39.2",
"quicktype": "16.0.43",
"tsx": "4.20.6",
"typescript": "5.9.3"
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/harpc/client/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@rust/harpc-wire-protocol": "0.0.0-private",
"@types/node": "22.18.13",
"@vitest/coverage-istanbul": "3.2.4",
"eslint": "9.38.0",
"eslint": "9.39.2",
"rimraf": "6.1.2",
"typescript": "5.9.3",
"vitest": "3.2.4"
Expand Down
24 changes: 14 additions & 10 deletions libs/@local/harpc/client/typescript/src/binary/MutableBytes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const MutableBytesProto: Omit<
},
};

export const make = (options?: {
interface MakeOptions {
/**
* The initial capacity of the buffer.
*
Expand All @@ -48,7 +48,9 @@ export const make = (options?: {
* @defaultValue "doubling"
*/
readonly growthStrategy?: GrowthStrategy;
}): MutableBytes =>
}

export const make = (options?: MakeOptions): MutableBytes =>
createProto(
MutableBytesProto,
{
Expand All @@ -62,16 +64,18 @@ export const make = (options?: {
},
) satisfies MutableBytesImpl as MutableBytes;

interface FromOptions {
/**
* The strategy for growing the buffer when more space is needed.
*
* @defaultValue "doubling"
*/
readonly growthStrategy?: GrowthStrategy;
}

export const from = (
buffer: ArrayBuffer,
options?: {
/**
* The strategy for growing the buffer when more space is needed.
*
* @defaultValue "doubling"
*/
readonly growthStrategy?: GrowthStrategy;
},
options?: FromOptions,
): MutableBytes =>
createProto(
MutableBytesProto,
Expand Down
6 changes: 5 additions & 1 deletion libs/@local/harpc/client/typescript/src/codec/JsonDecoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@ export class InvalidJsonError extends Data.TaggedError("InvalidJsonError")<{
}
}

interface TextDecodeOptions {
readonly stream: boolean;
}

const textDecode = (
decoder: TextDecoder,
buffer: ArrayBuffer,
options: { readonly stream: boolean },
options: TextDecodeOptions,
) =>
Effect.try({
try: () => {
Expand Down
Loading
Loading