eslint unicorn fix lint errors (#3363)

pull/3356/head
Daniel 2021-01-27 12:25:54 +05:30 committed by GitHub
parent 3b618995f8
commit 951a67b43f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 2 deletions

View File

@ -48,6 +48,7 @@
"unicorn/filename-case": "off", "unicorn/filename-case": "off",
"unicorn/consistent-destructuring": "off", "unicorn/consistent-destructuring": "off",
"unicorn/no-array-callback-reference": "off", "unicorn/no-array-callback-reference": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-for-loop": "off", "unicorn/no-for-loop": "off",
"unicorn/no-null": "off", "unicorn/no-null": "off",
"unicorn/no-unused-properties": "error", "unicorn/no-unused-properties": "error",

View File

@ -64,13 +64,13 @@ class ControlSidebar {
collapse() { collapse() {
const $body = $('body') const $body = $('body')
const $html = $('html') const $html = $('html')
const that = this const { target } = this._config
// Show the control sidebar // Show the control sidebar
if (this._config.controlsidebarSlide) { if (this._config.controlsidebarSlide) {
$html.addClass(CLASS_NAME_CONTROL_SIDEBAR_ANIMATE) $html.addClass(CLASS_NAME_CONTROL_SIDEBAR_ANIMATE)
$body.removeClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE).delay(300).queue(function () { $body.removeClass(CLASS_NAME_CONTROL_SIDEBAR_SLIDE).delay(300).queue(function () {
$(that._config.target).hide() $(target).hide()
$html.removeClass(CLASS_NAME_CONTROL_SIDEBAR_ANIMATE) $html.removeClass(CLASS_NAME_CONTROL_SIDEBAR_ANIMATE)
$(this).dequeue() $(this).dequeue()
}) })

View File

@ -35,12 +35,14 @@
"never" "never"
], ],
"strict": "error", "strict": "error",
"unicorn/no-array-for-each": "off",
"unicorn/no-for-loop": "off", "unicorn/no-for-loop": "off",
"unicorn/no-null": "off", "unicorn/no-null": "off",
"unicorn/prefer-dataset": "off", "unicorn/prefer-dataset": "off",
"unicorn/prefer-includes": "off", "unicorn/prefer-includes": "off",
"unicorn/prefer-node-append": "off", "unicorn/prefer-node-append": "off",
"unicorn/prefer-query-selector": "off", "unicorn/prefer-query-selector": "off",
"unicorn/prefer-spread": "off",
"unicorn/prevent-abbreviations": "off" "unicorn/prevent-abbreviations": "off"
} }
} }