mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-29 08:56:52 +00:00
Add files to TS Strict (#803)
Co-authored-by: Steve Faulkner <southpolesteve@gmail.com>
This commit is contained in:
parent
0e413430dc
commit
35f8fa8324
@ -1,12 +1,11 @@
|
|||||||
/* eslint jsx-a11y/no-static-element-interactions: 0 */
|
/* eslint jsx-a11y/no-static-element-interactions: 0 */
|
||||||
/* eslint jsx-a11y/click-events-have-key-events: 0 */
|
/* eslint jsx-a11y/click-events-have-key-events: 0 */
|
||||||
|
|
||||||
|
import { actions, AppState, ContentRef, selectors } from "@nteract/core";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { Dispatch } from "redux";
|
import { Dispatch } from "redux";
|
||||||
|
|
||||||
import { actions, selectors, ContentRef, AppState } from "@nteract/core";
|
|
||||||
|
|
||||||
interface ComponentProps {
|
interface ComponentProps {
|
||||||
id: string;
|
id: string;
|
||||||
contentRef: ContentRef;
|
contentRef: ContentRef;
|
||||||
@ -70,7 +69,7 @@ export class HijackScroll extends React.Component<Props> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const makeMapStateToProps = (initialState: AppState, ownProps: ComponentProps) => {
|
const makeMapStateToProps = (_initialState: AppState, ownProps: ComponentProps) => {
|
||||||
const mapStateToProps = (state: AppState) => {
|
const mapStateToProps = (state: AppState) => {
|
||||||
const { id, contentRef } = ownProps;
|
const { id, contentRef } = ownProps;
|
||||||
const model = selectors.model(state, { contentRef });
|
const model = selectors.model(state, { contentRef });
|
||||||
@ -87,7 +86,7 @@ const makeMapStateToProps = (initialState: AppState, ownProps: ComponentProps) =
|
|||||||
return mapStateToProps;
|
return mapStateToProps;
|
||||||
};
|
};
|
||||||
|
|
||||||
const makeMapDispatchToProps = (initialDispatch: Dispatch, ownProps: ComponentProps) => {
|
const makeMapDispatchToProps = (_initialDispatch: Dispatch, ownProps: ComponentProps) => {
|
||||||
const mapDispatchToProps = (dispatch: Dispatch) => ({
|
const mapDispatchToProps = (dispatch: Dispatch) => ({
|
||||||
selectCell: () => dispatch(actions.focusCell({ id: ownProps.id, contentRef: ownProps.contentRef })),
|
selectCell: () => dispatch(actions.focusCell({ id: ownProps.id, contentRef: ownProps.contentRef })),
|
||||||
});
|
});
|
||||||
|
@ -1,11 +1,10 @@
|
|||||||
|
import { CellId } from "@nteract/commutable";
|
||||||
|
import { actions, AppState, ContentRef, selectors } from "@nteract/core";
|
||||||
import Immutable from "immutable";
|
import Immutable from "immutable";
|
||||||
import React from "react";
|
import React from "react";
|
||||||
import { connect } from "react-redux";
|
import { connect } from "react-redux";
|
||||||
import { Dispatch } from "redux";
|
import { Dispatch } from "redux";
|
||||||
|
|
||||||
import { CellId } from "@nteract/commutable";
|
|
||||||
import { actions, AppState, ContentRef, selectors } from "@nteract/core";
|
|
||||||
|
|
||||||
interface ComponentProps {
|
interface ComponentProps {
|
||||||
contentRef: ContentRef;
|
contentRef: ContentRef;
|
||||||
children: React.ReactNode;
|
children: React.ReactNode;
|
||||||
@ -107,7 +106,7 @@ export class KeyboardShortcuts extends React.Component<Props> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const makeMapStateToProps = (state: AppState, ownProps: ComponentProps) => {
|
export const makeMapStateToProps = (_state: AppState, ownProps: ComponentProps) => {
|
||||||
const { contentRef } = ownProps;
|
const { contentRef } = ownProps;
|
||||||
const mapStateToProps = (state: AppState) => {
|
const mapStateToProps = (state: AppState) => {
|
||||||
const model = selectors.model(state, { contentRef });
|
const model = selectors.model(state, { contentRef });
|
||||||
|
@ -8,7 +8,6 @@
|
|||||||
"noUnusedParameters": true
|
"noUnusedParameters": true
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"src/Common/EntityValue.tsx",
|
|
||||||
"./src/AuthType.ts",
|
"./src/AuthType.ts",
|
||||||
"./src/Bindings/ReactBindingHandler.ts",
|
"./src/Bindings/ReactBindingHandler.ts",
|
||||||
"./src/Common/ArrayHashMap.ts",
|
"./src/Common/ArrayHashMap.ts",
|
||||||
@ -123,7 +122,8 @@
|
|||||||
"./src/i18n.ts",
|
"./src/i18n.ts",
|
||||||
"./src/quickstart.ts",
|
"./src/quickstart.ts",
|
||||||
"./src/setupTests.ts",
|
"./src/setupTests.ts",
|
||||||
"./src/userContext.test.ts"
|
"./src/userContext.test.ts",
|
||||||
|
"src/Common/EntityValue.tsx"
|
||||||
],
|
],
|
||||||
"include": [
|
"include": [
|
||||||
"src/CellOutputViewer/transforms/**/*",
|
"src/CellOutputViewer/transforms/**/*",
|
||||||
@ -137,6 +137,8 @@
|
|||||||
"src/Explorer/Controls/ResizeSensorReactComponent/**/*",
|
"src/Explorer/Controls/ResizeSensorReactComponent/**/*",
|
||||||
"src/Explorer/Graph/GraphExplorerComponent/__mocks__/**/*",
|
"src/Explorer/Graph/GraphExplorerComponent/__mocks__/**/*",
|
||||||
"src/Explorer/Notebook/NotebookComponent/__mocks__/**/*",
|
"src/Explorer/Notebook/NotebookComponent/__mocks__/**/*",
|
||||||
|
"src/Explorer/Notebook/NotebookRenderer/decorators/hijack-scroll/**/*",
|
||||||
|
"src/Explorer/Notebook/NotebookRenderer/decorators/kbd-shortcuts/**/*",
|
||||||
"src/Explorer/Panes/RightPaneForm/**/*",
|
"src/Explorer/Panes/RightPaneForm/**/*",
|
||||||
"src/Libs/**/*",
|
"src/Libs/**/*",
|
||||||
"src/Localization/**/*",
|
"src/Localization/**/*",
|
||||||
|
Loading…
Reference in New Issue
Block a user