* 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 type { ReactNode } from 'react'; |
||||
import type { OnboardingState, OnboardingContextType, UserProfile } from '../types/onboarding'; |
||||
import type { OnboardingState, OnboardingContextType, UserProfile } from '@/types/onboarding'; |
||||
|
||||
const initialState: OnboardingState = { |
||||
currentStep: 0, |
@ -1,42 +1,44 @@ |
||||
{ |
||||
"compilerOptions": { |
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", |
||||
"target": "ES2022", |
||||
"useDefineForClassFields": true, |
||||
"lib": ["ES2022", "DOM", "DOM.Iterable"], |
||||
"module": "ESNext", |
||||
"skipLibCheck": true, |
||||
"compilerOptions": { |
||||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo", |
||||
"target": "ES2022", |
||||
"useDefineForClassFields": true, |
||||
"lib": ["ES2022", "DOM", "DOM.Iterable"], |
||||
"module": "ESNext", |
||||
"skipLibCheck": true, |
||||
|
||||
/* Bundler mode */ |
||||
"moduleResolution": "bundler", |
||||
"allowImportingTsExtensions": true, |
||||
"moduleDetection": "force", |
||||
"noEmit": true, |
||||
"jsx": "react-jsx", |
||||
/* Bundler mode */ |
||||
"moduleResolution": "bundler", |
||||
"allowImportingTsExtensions": true, |
||||
"moduleDetection": "force", |
||||
"noEmit": true, |
||||
"jsx": "react-jsx", |
||||
|
||||
/* Path aliases */ |
||||
"baseUrl": ".", |
||||
"paths": { |
||||
"@/*": ["src/*"], |
||||
"@/assets/*": ["src/assets/*"], |
||||
"@/components/*": ["src/components/*"], |
||||
"@/context/*": ["src/context/*"], |
||||
"@/hooks/*": ["src/hooks/*"], |
||||
"@/lib/*": ["src/lib/*"], |
||||
"@/providers/*": ["src/providers/*"], |
||||
"@/services/*": ["src/services/*"], |
||||
"@/stores/*": ["src/stores/*"], |
||||
"@/types/*": ["src/types/*"], |
||||
}, |
||||
/* Path aliases */ |
||||
"baseUrl": ".", |
||||
"paths": { |
||||
"@/*": ["src/*"], |
||||
"@/assets/*": ["src/assets/*"], |
||||
"@/components/*": ["src/components/*"], |
||||
"@/contexts/*": ["src/contexts/*"], |
||||
"@/hooks/*": ["src/hooks/*"], |
||||
"@/lib/*": ["src/lib/*"], |
||||
"@/pages/*": ["src/pages/*"], |
||||
"@/providers/*": ["src/providers/*"], |
||||
"@/services/*": ["src/services/*"], |
||||
"@/stores/*": ["src/stores/*"], |
||||
"@/types/*": ["src/types/*"], |
||||
"@/utils/*": ["src/utils/*"] |
||||
}, |
||||
|
||||
/* Linting */ |
||||
"strict": true, |
||||
"noUnusedLocals": true, |
||||
"noUnusedParameters": true, |
||||
"erasableSyntaxOnly": true, |
||||
"noFallthroughCasesInSwitch": true, |
||||
"noUncheckedSideEffectImports": true, |
||||
"resolveJsonModule": true |
||||
}, |
||||
"include": ["src", "data"] |
||||
/* Linting */ |
||||
"strict": true, |
||||
"noUnusedLocals": true, |
||||
"noUnusedParameters": true, |
||||
"erasableSyntaxOnly": true, |
||||
"noFallthroughCasesInSwitch": true, |
||||
"noUncheckedSideEffectImports": true, |
||||
"resolveJsonModule": true |
||||
}, |
||||
"include": ["src", "data"] |
||||
} |
||||
|
Loading…
Reference in new issue