Skip to content

Commit

Permalink
style: 🎨 eslint update
Browse files Browse the repository at this point in the history
  • Loading branch information
folke committed May 13, 2020
1 parent d687f9c commit 2dfc4d2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ module.exports = {
"prettier/prettier": "warn",
"unicorn/prevent-abbreviations": "off",
"unicorn/explicit-length-check": "off",
"unicorn/no-reduce": "off",
"unicorn/consistent-function-scoping": "off",
"lines-between-class-members": [
"error",
Expand Down
1 change: 1 addition & 0 deletions src/spinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export class OutputSpinner {

get spinners(): Spinner[] {
const ret = new Array<Spinner>()
// eslint-disable-next-line unicorn/no-useless-undefined
const queue = this.spinnerMap.get(undefined)?.slice() ?? []
while (queue.length) {
const spinner = queue.shift() as Spinner
Expand Down

0 comments on commit 2dfc4d2

Please sign in to comment.