mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Hi! I am checking out the project and noticed there are a bunch of TypeScript errors when I open some of the files I was reading. I ran `tsc` and noticed there's an error with the current TypeScript configuration file:
```
tsconfig.json:7:23 - error TS5063: Substitutions for pattern 'appConstants' should be an array.
7 "appConstants": "src/appConstants",
~~~~~~~~~~~~~~~~~~
```
This change should resolve that error, which will allow the `tsc` linter to be executed from the terminal.
25 lines
703 B
JSON
25 lines
703 B
JSON
{
|
|
"extends": "@react-native/typescript-config/tsconfig.json",
|
|
"compilerOptions": {
|
|
"baseUrl": ".",
|
|
"paths": {
|
|
"*": ["src/*"],
|
|
"appConstants": ["src/appConstants"],
|
|
"api": ["src/api"],
|
|
"components": ["src/components"],
|
|
"dictionaries": ["src/dictionaries"],
|
|
"i18n": ["src/i18n"],
|
|
"images": ["src/images"],
|
|
"navigation": ["src/navigation"],
|
|
"providers": ["src/providers"],
|
|
"realmModels": ["src/realmModels"],
|
|
"sharedHelpers": ["src/sharedHelpers"],
|
|
"sharedHooks": ["src/sharedHooks"],
|
|
"stores": ["src/stores"],
|
|
"styles": ["src/styles"],
|
|
"tests": ["tests"],
|
|
},
|
|
"types": ["nativewind/types"]
|
|
}
|
|
}
|