* fix some ts issues created in the process * move context/ to contexts/ for consistencymain
parent
b71f778da2
commit
63621ab968
@ -1,6 +1,6 @@ |
|||||||
import { createContext, useContext, useReducer } from 'react'; |
import { createContext, useContext, useReducer } from 'react'; |
||||||
import type { ReactNode } from 'react'; |
import type { ReactNode } from 'react'; |
||||||
import type { OnboardingState, OnboardingContextType, UserProfile } from '../types/onboarding'; |
import type { OnboardingState, OnboardingContextType, UserProfile } from '@/types/onboarding'; |
||||||
|
|
||||||
const initialState: OnboardingState = { |
const initialState: OnboardingState = { |
||||||
currentStep: 0, |
currentStep: 0, |
@ -1,42 +1,44 @@ |
|||||||
{ |
{ |
||||||
"compilerOptions": { |
"compilerOptions": { |
||||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", |
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", |
||||||
"target": "ES2022", |
"target": "ES2022", |
||||||
"useDefineForClassFields": true, |
"useDefineForClassFields": true, |
||||||
"lib": ["ES2022", "DOM", "DOM.Iterable"], |
"lib": ["ES2022", "DOM", "DOM.Iterable"], |
||||||
"module": "ESNext", |
"module": "ESNext", |
||||||
"skipLibCheck": true, |
"skipLibCheck": true, |
||||||
|
|
||||||
/* Bundler mode */ |
/* Bundler mode */ |
||||||
"moduleResolution": "bundler", |
"moduleResolution": "bundler", |
||||||
"allowImportingTsExtensions": true, |
"allowImportingTsExtensions": true, |
||||||
"moduleDetection": "force", |
"moduleDetection": "force", |
||||||
"noEmit": true, |
"noEmit": true, |
||||||
"jsx": "react-jsx", |
"jsx": "react-jsx", |
||||||
|
|
||||||
/* Path aliases */ |
/* Path aliases */ |
||||||
"baseUrl": ".", |
"baseUrl": ".", |
||||||
"paths": { |
"paths": { |
||||||
"@/*": ["src/*"], |
"@/*": ["src/*"], |
||||||
"@/assets/*": ["src/assets/*"], |
"@/assets/*": ["src/assets/*"], |
||||||
"@/components/*": ["src/components/*"], |
"@/components/*": ["src/components/*"], |
||||||
"@/context/*": ["src/context/*"], |
"@/contexts/*": ["src/contexts/*"], |
||||||
"@/hooks/*": ["src/hooks/*"], |
"@/hooks/*": ["src/hooks/*"], |
||||||
"@/lib/*": ["src/lib/*"], |
"@/lib/*": ["src/lib/*"], |
||||||
"@/providers/*": ["src/providers/*"], |
"@/pages/*": ["src/pages/*"], |
||||||
"@/services/*": ["src/services/*"], |
"@/providers/*": ["src/providers/*"], |
||||||
"@/stores/*": ["src/stores/*"], |
"@/services/*": ["src/services/*"], |
||||||
"@/types/*": ["src/types/*"], |
"@/stores/*": ["src/stores/*"], |
||||||
}, |
"@/types/*": ["src/types/*"], |
||||||
|
"@/utils/*": ["src/utils/*"] |
||||||
|
}, |
||||||
|
|
||||||
/* Linting */ |
/* Linting */ |
||||||
"strict": true, |
"strict": true, |
||||||
"noUnusedLocals": true, |
"noUnusedLocals": true, |
||||||
"noUnusedParameters": true, |
"noUnusedParameters": true, |
||||||
"erasableSyntaxOnly": true, |
"erasableSyntaxOnly": true, |
||||||
"noFallthroughCasesInSwitch": true, |
"noFallthroughCasesInSwitch": true, |
||||||
"noUncheckedSideEffectImports": true, |
"noUncheckedSideEffectImports": true, |
||||||
"resolveJsonModule": true |
"resolveJsonModule": true |
||||||
}, |
}, |
||||||
"include": ["src", "data"] |
"include": ["src", "data"] |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue