diff --git a/ts/components/Lightbox.tsx b/ts/components/Lightbox.tsx index 69c107cc6..ac6d94caa 100644 --- a/ts/components/Lightbox.tsx +++ b/ts/components/Lightbox.tsx @@ -188,6 +188,8 @@ export class Lightbox extends React.Component { public readonly focusRef = React.createRef(); public previousFocus: any; + public state: State = {}; + public componentDidMount() { this.previousFocus = document.activeElement; diff --git a/ts/util/lint/exceptions.json b/ts/util/lint/exceptions.json index bb4679ec3..57629b2d4 100644 --- a/ts/util/lint/exceptions.json +++ b/ts/util/lint/exceptions.json @@ -9311,16 +9311,16 @@ "rule": "jQuery-wrap(", "path": "ts/shims/textsecure.js", "line": " wrap(textsecure.messaging.sendStickerPackSync([", - "lineNumber": 11, + "lineNumber": 13, "reasonCategory": "falseMatch", - "updated": "2019-05-02T20:44:56.470Z" + "updated": "2020-02-07T19:52:28.522Z" }, { "rule": "jQuery-wrap(", "path": "ts/shims/textsecure.ts", "line": " wrap(", - "lineNumber": 60, + "lineNumber": 63, "reasonCategory": "falseMatch", - "updated": "2019-05-02T20:44:56.470Z" + "updated": "2020-02-07T19:52:28.522Z" } ] \ No newline at end of file diff --git a/tslint.json b/tslint.json index 811be49ef..92f8432f9 100644 --- a/tslint.json +++ b/tslint.json @@ -102,7 +102,16 @@ ], // Adding select dev dependencies here for now, may turn on all in the future - "no-implicit-dependencies": [true, ["dashdash", "electron"]], + "no-implicit-dependencies": [ + true, + [ + "dashdash", + "electron", + "@storybook/react", + "@storybook/addon-actions", + "@storybook/addon-knobs" + ] + ], // Maybe will turn on: