Skip to content

Commit

Permalink
Merge pull request #761 from Lumieducation/renovate/major-typescript-…
Browse files Browse the repository at this point in the history
…eslint-monorepo

chore(deps): update typescript-eslint monorepo to v4 (major)
  • Loading branch information
sr258 authored Oct 3, 2020
2 parents 9291d70 + 08561cd commit cd885cf
Show file tree
Hide file tree
Showing 6 changed files with 231 additions and 98 deletions.
264 changes: 199 additions & 65 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
"@types/string-hash": "1.1.1",
"@types/superagent": "4.1.10",
"@types/supertest": "2.0.10",
"@typescript-eslint/eslint-plugin": "3.10.1",
"@typescript-eslint/parser": "3.10.1",
"@typescript-eslint/eslint-plugin": "4.3.0",
"@typescript-eslint/parser": "4.3.0",
"babel-eslint": "10.1.0",
"babel-jest": "26.3.0",
"babel-loader": "8.1.0",
Expand Down
31 changes: 15 additions & 16 deletions src/client/state/h5p/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,24 @@ export interface IH5P {
}

// state (reducer)
export interface IH5P {}

export interface IState {}

// constants

export const H5P_DELETE_ERROR = 'H5P_DELETE_ERROR';
export const H5P_DELETE_REQUEST = 'H5P_DELETE_REQUEST';
export const H5P_DELETE_SUCCESS = 'H5P_DELETE_SUCCESS';
export const H5P_EXPORT_ERROR = 'H5P_EXPORT_ERROR';
export const H5P_EXPORT_REQUEST = 'H5P_EXPORT_REQUEST';
export const H5P_EXPORT_SUCCESS = 'H5P_EXPORT_SUCCESS';
export const H5P_IMPORT_ERROR = 'H5P_IMPORT_ERROR';
export const H5P_IMPORT_REQUEST = 'H5P_IMPORT_REQUEST';
export const H5P_IMPORT_SUCCESS = 'H5P_IMPORT_SUCCESS';
export const H5P_UPDATE_ERROR = 'H5P_UPDATE_ERROR';
export const H5P_UPDATE_REQUEST = 'H5P_UPDATE_REQUEST';
export const H5P_UPDATE_SUCCESS = 'H5P_UPDATE_SUCCESS';

// actions

export interface IH5PDeleteRequestAction {
Expand Down Expand Up @@ -123,21 +137,6 @@ export interface IH5PUpdateSuccessAction {
type: typeof H5P_UPDATE_SUCCESS;
}

// constants

export const H5P_DELETE_ERROR = 'H5P_DELETE_ERROR';
export const H5P_DELETE_REQUEST = 'H5P_DELETE_REQUEST';
export const H5P_DELETE_SUCCESS = 'H5P_DELETE_SUCCESS';
export const H5P_EXPORT_ERROR = 'H5P_EXPORT_ERROR';
export const H5P_EXPORT_REQUEST = 'H5P_EXPORT_REQUEST';
export const H5P_EXPORT_SUCCESS = 'H5P_EXPORT_SUCCESS';
export const H5P_IMPORT_ERROR = 'H5P_IMPORT_ERROR';
export const H5P_IMPORT_REQUEST = 'H5P_IMPORT_REQUEST';
export const H5P_IMPORT_SUCCESS = 'H5P_IMPORT_SUCCESS';
export const H5P_UPDATE_ERROR = 'H5P_UPDATE_ERROR';
export const H5P_UPDATE_REQUEST = 'H5P_UPDATE_REQUEST';
export const H5P_UPDATE_SUCCESS = 'H5P_UPDATE_SUCCESS';

// api

export type exportH5P = (id: string, path: string) => Promise<{ path: string }>;
Expand Down
8 changes: 4 additions & 4 deletions src/client/state/notifications/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ export type NotificationTypes =
| 'warning'
| 'info';

export const ENQUEUE_SNACKBAR = 'ENQUEUE_SNACKBAR';
export const CLOSE_SNACKBAR = 'CLOSE_SNACKBAR';
export const REMOVE_SNACKBAR = 'REMOVE_SNACKBAR';

export interface INotification {
dismissed?: boolean;
key: string;
Expand Down Expand Up @@ -38,7 +42,3 @@ export type NotificationActionTypes =
| INotifyAction
| ICloseSnackbar
| IRemoveSnackbar;

export const ENQUEUE_SNACKBAR = 'ENQUEUE_SNACKBAR';
export const CLOSE_SNACKBAR = 'CLOSE_SNACKBAR';
export const REMOVE_SNACKBAR = 'REMOVE_SNACKBAR';
12 changes: 6 additions & 6 deletions src/client/state/tabs/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ export type TabState =
| 'opening'
| 'success';

export const TABS_OPEN_TAB = 'TABS_OPEN_TAB';
export const TABS_CLOSE_TAB = 'TABS_CLOSE_TAB';
export const TABS_SELECT_TAB = 'TABS_SELECT_TAB';
export const TABS_RESET_SAVINGSTATE = 'TABS_RESET_SAVINGSTATE';
export const TABS_UPDATE_TAB = 'TABS_UPDATE_TAB';

export interface ITab {
contentId?: ContentId;
id: string;
Expand Down Expand Up @@ -65,9 +71,3 @@ export type TabActionTypes =
| IOpenTabAction
| ISelectTabAction
| ITabUpdateAction;

export const TABS_OPEN_TAB = 'TABS_OPEN_TAB';
export const TABS_CLOSE_TAB = 'TABS_CLOSE_TAB';
export const TABS_SELECT_TAB = 'TABS_SELECT_TAB';
export const TABS_RESET_SAVINGSTATE = 'TABS_RESET_SAVINGSTATE';
export const TABS_UPDATE_TAB = 'TABS_UPDATE_TAB';
10 changes: 5 additions & 5 deletions src/client/state/ui/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ export enum Modes {
edit
}

export const UI_OPEN_LEFT_DRAWER = 'UI_OPEN_LEFT_DRAWER';
export const UI_CLOSE_LEFT_DRAWER = 'UI_CLOSE_LEFT_DRAWER';
export const UI_CHANGE_MODE = 'UI_CHANGE_MODE';
export const UI_CHANGE_REQUESTSTATE = 'UI_CHANGE_REQUESTSTATE';

export interface IUIState {
leftDrawerOpen: boolean;
mode: Modes;
Expand Down Expand Up @@ -43,8 +48,3 @@ export type UIActionTypes =
| ICloseLeftDrawerAction
| IChangeModeAction
| IUIChangeRequestStateAction;

export const UI_OPEN_LEFT_DRAWER = 'UI_OPEN_LEFT_DRAWER';
export const UI_CLOSE_LEFT_DRAWER = 'UI_CLOSE_LEFT_DRAWER';
export const UI_CHANGE_MODE = 'UI_CHANGE_MODE';
export const UI_CHANGE_REQUESTSTATE = 'UI_CHANGE_REQUESTSTATE';

0 comments on commit cd885cf

Please sign in to comment.