forked from Expensify/App
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtsconfig.json
More file actions
55 lines (55 loc) · 2.19 KB
/
Copy pathtsconfig.json
File metadata and controls
55 lines (55 loc) · 2.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "expo/tsconfig.base",
"compilerOptions": {
"types": ["react-native", "react-native-web", "jest", "node"],
"lib": ["DOM", "ESNext"],
"isolatedModules": true,
"strict": true,
"incremental": true,
"paths": {
"@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/*"],
"@styles/*": ["./src/styles/*"],
"@src/*": ["./src/*"],
"@userActions/*": ["./src/libs/actions/*"],
"@selectors/*": ["./src/selectors/*"],
"tests/*": ["./tests/*"]
}
},
// bun:test's module declaration, for tests/tooling. Referenced through `files` rather than `include`
// because `exclude` below covers node_modules and would otherwise drop it. This is the one file in bun-types
// that declares the module; the package's other declarations (notably its global JSX namespace) are
// deliberately not pulled in, as they conflict with the app's React types.
"files": ["node_modules/bun-types/test.d.ts"],
"include": [
"src",
"web",
"website",
"docs",
"assets",
"config",
"tests",
"jest",
"prompts",
"__mocks__",
".github/**/*",
".storybook/**/*",
".claude/**/*",
"scripts",
"modules",
"**/*.nitro/*.ts",
"**/*.nitro/*.tsx"
],
// CIGitLogic and lint.ts use Bun's `$` shell, so they need @types/bun, whose globals conflict with this
// project's. They are type-checked by tests/tooling/tsconfig.json and scripts/tsconfig.json instead —
// see the comments there.
"exclude": ["**/node_modules/*", "**/dist/*", ".github/actions/**/index.js", "**/docs/*", ".claude/worktrees/**", "tests/tooling/CIGitLogic.test.ts", "scripts/lint.ts"]
}