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
9 changes: 9 additions & 0 deletions config/eslint/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,15 @@ const config = defineConfig([
},
},

{
files: ['server/victory-chart-renderer/**/*.ts', 'server/victory-chart-renderer/**/*.tsx'],
languageOptions: {
parserOptions: {
project: path.resolve(projectRoot, 'server/victory-chart-renderer/tsconfig.json'),
},
},
},

globalIgnores([
'!**/.storybook',
'!**/.github',
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
"test:verbose": "TZ=utc NODE_OPTIONS=\"--experimental-vm-modules --max_old_space_size=4096\" JEST_VERBOSE=true jest",
"test:debug": "TZ=utc NODE_OPTIONS='--inspect-brk --experimental-vm-modules' jest --runInBand",
"perf-test": "NODE_OPTIONS=--experimental-vm-modules npx reassure",
"typecheck": "NODE_OPTIONS=--max_old_space_size=8192 tsc && tsc -p server/tsconfig.json",
"typecheck-tsgo": "tsgo --noEmit --incremental --tsBuildInfoFile tsconfig.tsgo.tsbuildinfo && tsgo --noEmit -p server/tsconfig.json --incremental --tsBuildInfoFile server/tsconfig.tsgo.tsbuildinfo",
"typecheck": "NODE_OPTIONS=--max_old_space_size=8192 tsc && tsc -p server/tsconfig.json && tsc -p server/victory-chart-renderer/tsconfig.json",
"typecheck-tsgo": "tsgo --noEmit --incremental --tsBuildInfoFile tsconfig.tsgo.tsbuildinfo && tsgo --noEmit -p server/tsconfig.json --incremental --tsBuildInfoFile server/tsconfig.tsgo.tsbuildinfo && tsgo --noEmit -p server/victory-chart-renderer/tsconfig.json --incremental --tsBuildInfoFile server/victory-chart-renderer/tsconfig.tsgo.tsbuildinfo",
"lint": "./scripts/lint.sh",
"lint-changed": "./scripts/lintChanged.sh",
"lint-watch": "onchange '**/*.{js,jsx,ts,tsx,mjs,cjs}' -- ./scripts/lint.sh {{changed}}",
Expand Down
19 changes: 15 additions & 4 deletions server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,24 @@
"compilerOptions": {
"types": ["@types/bun"],
"paths": {
"@libs/*": ["./libs/*"],
"@plugins/*": ["./plugins/*"],
"@assets/*": ["../assets/*"],
"@components/*": ["../src/components/*"],
"@github/*": ["../.github/*"],
"@hooks/*": ["../src/hooks/*"],
"@libs/*": ["../src/libs/*"],
"@navigation/*": ["../src/libs/Navigation/*"],
"@pages/*": ["../src/pages/*"],
"@prompts/*": ["../prompts/*"],
"@scripts/*": ["../scripts/*", "../.github/scripts/*"],
"@selectors/*": ["../src/selectors/*"],
"@server/*": ["./*"],
"@src/*": ["../src/*"],
"canvaskit-wasm/bin/full/canvaskit.wasm": ["./victory-chart-renderer/src/canvaskit-wasm.d.ts"]
"@styles/*": ["../src/styles/*"],
"@userActions/*": ["../src/libs/actions/*"],
"canvaskit-wasm/bin/full/canvaskit.wasm": ["./victory-chart-renderer/src/canvaskit-wasm.d.ts"],
"tests/*": ["../tests/*"]
}
},
"include": ["libs", "plugins", "stubs", "victory-chart-renderer"],
"include": ["libs", "plugins", "stubs"],
Comment thread
roryabraham marked this conversation as resolved.
"exclude": ["victory-chart-renderer/dist", "victory-chart-renderer/.dev"]
}
4 changes: 2 additions & 2 deletions server/victory-chart-renderer/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
* Required --target and --outfile select the Bun compile target and output path. The script
* exits after writing the binary; it does not run it.
*/
import createRnStubPlugin from '@plugins/rnStubPlugin';
import parseCompileTarget from '@server/libs/parseCompileTarget';
import createRnStubPlugin from '@server/plugins/rnStubPlugin';
import {join, resolve} from 'node:path';
import parseCompileTarget from '@libs/parseCompileTarget';
import CLI from '@scripts/utils/CLI';

const packageRoot = resolve(import.meta.dir, '..');
Expand Down
2 changes: 1 addition & 1 deletion server/victory-chart-renderer/scripts/dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* For a standalone executable instead of a Bun-run bundle, use build.ts.
*/
import createRnStubPlugin from '@plugins/rnStubPlugin';
import createRnStubPlugin from '@server/plugins/rnStubPlugin';
import {spawnSync} from 'node:child_process';
import {mkdirSync} from 'node:fs';
import {join, resolve} from 'node:path';
Expand Down
4 changes: 4 additions & 0 deletions server/victory-chart-renderer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../tsconfig.json",
"include": ["src", "tests", "scripts"]
}
Loading