forked from 4Catalyzer/found
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add initial TS support (4Catalyzer#997)
* chore: add initial TS support * minor changes * fix script Co-authored-by: Szymon Wiszczuk <[email protected]>
- Loading branch information
1 parent
45406a0
commit 1feea81
Showing
6 changed files
with
59 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
module.exports = { | ||
extends: ['4catalyzer-react', '4catalyzer-jest', 'prettier'], | ||
plugins: ['prettier'], | ||
parserOptions: { | ||
requireConfigFile: false, | ||
plugins: ['prettier', 'import'], | ||
parser: '@typescript-eslint/parser', | ||
settings: { | ||
'import/resolver': { | ||
typescript: { | ||
alwaysTryTypes: true, | ||
}, | ||
}, | ||
}, | ||
rules: { | ||
'react/prop-types': 'off', | ||
'prettier/prettier': 'error', | ||
'no-use-before-define': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
export default { | ||
const ActionTypes = { | ||
UPDATE_MATCH: '@@found/UPDATE_MATCH', | ||
RESOLVE_MATCH: '@@found/RESOLVE_MATCH', | ||
}; | ||
|
||
export default ActionTypes; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,31 @@ | ||
export ActionTypes from './ActionTypes'; | ||
export createBaseRouter from './createBaseRouter'; | ||
export createBrowserRouter from './createBrowserRouter'; | ||
export createConnectedRouter from './createConnectedRouter'; | ||
export createElements from './createElements'; | ||
export createFarceRouter from './createFarceRouter'; | ||
export createFarceStore from './createFarceStore'; | ||
export createInitialBrowserRouter from './createInitialBrowserRouter'; | ||
export createInitialFarceRouter from './createInitialFarceRouter'; | ||
export createMatchEnhancer from './createMatchEnhancer'; | ||
export createRender from './createRender'; | ||
export createStoreRouterObject from './createStoreRouterObject'; | ||
export ElementsRenderer from './ElementsRenderer'; | ||
export foundReducer from './foundReducer'; | ||
export getRenderArgs from './getRenderArgs'; | ||
export getStoreRenderArgs from './getStoreRenderArgs'; | ||
export hotRouteConfig from './hotRouteConfig'; | ||
export HttpError from './HttpError'; | ||
export Link from './Link'; | ||
export makeRouteConfig from './makeRouteConfig'; | ||
export Matcher from './Matcher'; | ||
export { default as ActionTypes } from './ActionTypes'; | ||
export { default as createBaseRouter } from './createBaseRouter'; | ||
export { default as createBrowserRouter } from './createBrowserRouter'; | ||
export { default as createConnectedRouter } from './createConnectedRouter'; | ||
export { default as createElements } from './createElements'; | ||
export { default as createFarceRouter } from './createFarceRouter'; | ||
export { default as createFarceStore } from './createFarceStore'; | ||
export { default as createInitialBrowserRouter } from './createInitialBrowserRouter'; | ||
export { default as createInitialFarceRouter } from './createInitialFarceRouter'; | ||
export { default as createMatchEnhancer } from './createMatchEnhancer'; | ||
export { default as createRender } from './createRender'; | ||
export { default as createStoreRouterObject } from './createStoreRouterObject'; | ||
export { default as ElementsRenderer } from './ElementsRenderer'; | ||
export { default as foundReducer } from './foundReducer'; | ||
export { default as getRenderArgs } from './getRenderArgs'; | ||
export { default as getStoreRenderArgs } from './getStoreRenderArgs'; | ||
export { default as hotRouteConfig } from './hotRouteConfig'; | ||
export { default as HttpError } from './HttpError'; | ||
export { default as Link } from './Link'; | ||
export { default as makeRouteConfig } from './makeRouteConfig'; | ||
export { default as Matcher } from './Matcher'; | ||
export { matcherShape, matchShape, routerShape } from './PropTypes'; | ||
export Redirect from './Redirect'; | ||
export RedirectException from './RedirectException'; | ||
export resolver from './resolver'; | ||
export resolveRenderArgs from './resolveRenderArgs'; | ||
export { default as Redirect } from './Redirect'; | ||
export { default as RedirectException } from './RedirectException'; | ||
export { default as resolver } from './resolver'; | ||
export { default as resolveRenderArgs } from './resolveRenderArgs'; | ||
export * as ResolverUtils from './ResolverUtils'; | ||
export Route from './Route'; | ||
export RouterContext from './RouterContext'; | ||
export useRouter from './useRouter'; | ||
export withRouter from './withRouter'; | ||
export { default as Route } from './Route'; | ||
export { default as RouterContext } from './RouterContext'; | ||
export { default as useRouter } from './useRouter'; | ||
export { default as withRouter } from './withRouter'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "@4c/tsconfig/web.json", | ||
"compilerOptions": { | ||
"allowJs": true | ||
}, | ||
"include": ["./src/**/*.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters