eslint: Fix unicorn/prefer-query-selector.

https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/prefer-query-selector.md

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2020-10-07 01:13:26 -07:00
committed by Tim Abbott
parent c7cbdba257
commit bd05f1c9f8
4 changed files with 32 additions and 34 deletions

View File

@@ -22,9 +22,6 @@ const _navigator = {
};
const _document = {
getElementById() {
return $("#compose-textarea");
},
execCommand() {
return false;
},
@@ -459,6 +456,7 @@ run_test("markdown_shortcuts", () => {
);
};
$("#compose-textarea")[0] = {};
$("#compose-textarea").range = function () {
return {
start: range_start,