Skip to content

Commit

Permalink
/2
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Feb 19, 2024
1 parent f5f7ef6 commit dadd491
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export function insertTextIntoField(
field: HTMLTextAreaElement | HTMLInputElement,
text: string,
): void {
const document = field.ownerDocument!;
const document = field.ownerDocument;
const initialFocus = document.activeElement;
if (initialFocus !== field) {
field.focus();
Expand Down
7 changes: 1 addition & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,7 @@
"xo": {
"envs": [
"browser"
],
"rules": {
"@typescript-eslint/no-unnecessary-type-assertion": "off",
"@typescript-eslint/prefer-nullish-coalescing": "off",
"@typescript-eslint/prefer-readonly-parameter-types": "off"
}
]
},
"devDependencies": {
"@sindresorhus/tsconfig": "^5.0.0",
Expand Down

0 comments on commit dadd491

Please sign in to comment.