Skip to content

Commit

Permalink
eslint unicorn fix lint errors (ColorlibHQ#3363)
Browse files Browse the repository at this point in the history
  • Loading branch information
danny007in authored Jan 27, 2021
1 parent 3b61899 commit 951a67b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"unicorn/filename-case": "off",
"unicorn/consistent-destructuring": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-for-loop": "off",
"unicorn/no-null": "off",
"unicorn/no-unused-properties": "error",
Expand Down
4 changes: 2 additions & 2 deletions build/js/ControlSidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ class ControlSidebar {
collapse() {
const $body = $('body')
const $html = $('html')
const that = this
const { target } = this._config

// Show the control sidebar
if (this._config.controlsidebarSlide) {
$html.addClass(CLASS_NAME_CONTROL_SIDEBAR_ANIMATE)
$body.removeClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE).delay(300).queue(function () {
$(that._config.target).hide()
$(target).hide()
$html.removeClass(CLASS_NAME_CONTROL_SIDEBAR_ANIMATE)
$(this).dequeue()
})
Expand Down
2 changes: 2 additions & 0 deletions dist/js/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@
"never"
],
"strict": "error",
"unicorn/no-array-for-each": "off",
"unicorn/no-for-loop": "off",
"unicorn/no-null": "off",
"unicorn/prefer-dataset": "off",
"unicorn/prefer-includes": "off",
"unicorn/prefer-node-append": "off",
"unicorn/prefer-query-selector": "off",
"unicorn/prefer-spread": "off",
"unicorn/prevent-abbreviations": "off"
}
}

0 comments on commit 951a67b

Please sign in to comment.