Skip to content

Commit

Permalink
Merge pull request #121 from solid/fix-tests
Browse files Browse the repository at this point in the history
Updated linter so test script works
  • Loading branch information
bourgeoa authored Aug 24, 2021
2 parents f151ae0 + 1942ce6 commit 23bf9b5
Show file tree
Hide file tree
Showing 4 changed files with 118 additions and 50 deletions.
159 changes: 112 additions & 47 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.14.7",
"@babel/preset-typescript": "^7.14.5",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"@typescript-eslint/eslint-plugin": "^4.29.0",
"@typescript-eslint/parser": "^4.29.0",
"babel-core": "^6.26.3",
"babel-loader": "^8.2.2",
"bundlesize": "^0.18.1",
Expand Down
3 changes: 3 additions & 0 deletions src/global/header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ async function openDashboardPane (outliner: any, pane: string): Promise<void> {
})
}

// EventListenerOrEventListenerObject triggers an undefined error in the linter, but it is defined
// via lib.dom.d.ts
// eslint-disable-next-line no-undef
function createUserMenuButton (label: string, onClick: EventListenerOrEventListenerObject): HTMLElement {
const button = document.createElement('button')
button.classList.add('header-user-menu__button')
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/throttle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ type ThrottleOptions = {
trailing?: boolean;
}

export function throttle (func: Function, wait: number, options: ThrottleOptions = {}): (...args: any[]) => any {
export function throttle (func: Function, wait: number, options: ThrottleOptions = {}): () => any {
let context: any,
args: any,
result: any
Expand Down

0 comments on commit 23bf9b5

Please sign in to comment.