-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['@typescript-eslint'], | ||
extends: [ | ||
'plugin:react/recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:prettier/recommended' | ||
], | ||
parserOptions: { | ||
ecmaVersion: 2020, | ||
sourceType: 'module', | ||
ecmaFeatures: { | ||
jsx: true // Allows for the parsing of JSX | ||
} | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect' // Tells eslint-plugin-react to automatically detect the version of React to use | ||
} | ||
}, | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 0, | ||
'@typescript-eslint/explicit-module-boundary-types': [ | ||
'error', | ||
{ allowArgumentsExplicitlyTypedAsAny: true } | ||
] | ||
} | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,5 +106,6 @@ typings/ | |
src | ||
example | ||
tsconfig.json | ||
tslint.json | ||
.prettierrc.json | ||
.eslintrc.js | ||
.vscode |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"semi": true, | ||
"trailingComma": "none", | ||
"singleQuote": true, | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"bracketSpacing": true, | ||
"jsxBracketSameLine": false | ||
} |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
/// <reference types="react" /> | ||
import { ConnectedComponent } from 'react-redux'; | ||
import { Middleware } from 'redux'; | ||
import { Reducer } from './reducer'; | ||
declare type MapStateToProps = (getSlice: (slice: string) => any) => any; | ||
declare type MapDispatchToProps = (dispatch: (action: string, ...data: any[]) => void) => any; | ||
export { ActionListener } from './reducer'; | ||
export declare type MapStateToProps = (getSlice: (slice: string) => any) => any; | ||
export declare type MapDispatchToProps = (dispatch: (action: string, ...data: any[]) => void) => any; | ||
declare const reducers: unique symbol; | ||
declare const store: unique symbol; | ||
export declare class Reduxology { | ||
private [reducers]; | ||
private [store]; | ||
createContainer: (mapStateToProps: MapStateToProps, mapDispatchToProps: MapDispatchToProps, component: any) => import("react-redux").ConnectedComponent<any, Pick<unknown, never>>; | ||
createContainer: (mapStateToProps: MapStateToProps, mapDispatchToProps: MapDispatchToProps, component: any) => ConnectedComponent<any, Pick<unknown, never>>; | ||
createReducer: (slice: string, initialData: any) => Reducer; | ||
dispatch: (type: string, ...data: any[]) => void; | ||
createRoot: (Container: any) => JSX.Element; | ||
createRoot: (Container: any, ...middleware: Middleware[]) => JSX.Element; | ||
} | ||
export declare const createContainer: (mapStateToProps: MapStateToProps, mapDispatchToProps: MapDispatchToProps, component: any) => import("react-redux").ConnectedComponent<any, Pick<unknown, never>>; | ||
export declare const createContainer: (mapStateToProps: MapStateToProps, mapDispatchToProps: MapDispatchToProps, component: any) => ConnectedComponent<any, Pick<unknown, never>>; | ||
export declare const createReducer: (slice: string, initialData: any) => Reducer; | ||
export declare const createRoot: (Container: any) => JSX.Element; | ||
export declare const createRoot: (Container: any, ...middleware: Middleware[]) => JSX.Element; | ||
export declare const dispatch: (type: string, ...data: any[]) => void; | ||
export {}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.