Skip to content

Commit 23bf9b5

Browse files
authored
Merge pull request #121 from solid/fix-tests
Updated linter so test script works
2 parents f151ae0 + 1942ce6 commit 23bf9b5

File tree

4 files changed

+118
-50
lines changed

4 files changed

+118
-50
lines changed

package-lock.json

Lines changed: 112 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656
"@babel/plugin-transform-runtime": "^7.14.5",
5757
"@babel/preset-env": "^7.14.7",
5858
"@babel/preset-typescript": "^7.14.5",
59-
"@typescript-eslint/eslint-plugin": "^3.10.1",
60-
"@typescript-eslint/parser": "^3.10.1",
59+
"@typescript-eslint/eslint-plugin": "^4.29.0",
60+
"@typescript-eslint/parser": "^4.29.0",
6161
"babel-core": "^6.26.3",
6262
"babel-loader": "^8.2.2",
6363
"bundlesize": "^0.18.1",

src/global/header.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ async function openDashboardPane (outliner: any, pane: string): Promise<void> {
5656
})
5757
}
5858

59+
// EventListenerOrEventListenerObject triggers an undefined error in the linter, but it is defined
60+
// via lib.dom.d.ts
61+
// eslint-disable-next-line no-undef
5962
function createUserMenuButton (label: string, onClick: EventListenerOrEventListenerObject): HTMLElement {
6063
const button = document.createElement('button')
6164
button.classList.add('header-user-menu__button')

src/helpers/throttle.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ type ThrottleOptions = {
44
trailing?: boolean;
55
}
66

7-
export function throttle (func: Function, wait: number, options: ThrottleOptions = {}): (...args: any[]) => any {
7+
export function throttle (func: Function, wait: number, options: ThrottleOptions = {}): () => any {
88
let context: any,
99
args: any,
1010
result: any

0 commit comments

Comments
 (0)