Bladeren bron

Lint fixes

Renée Kooi 7 jaren geleden
bovenliggende
commit
662393483c

+ 1 - 1
src/plugins/Plugin.js

@@ -119,7 +119,7 @@ module.exports = class Plugin {
   }
   }
 
 
   install () {
   install () {
-    return
+
   }
   }
 
 
   uninstall () {
   uninstall () {

+ 1 - 1
src/plugins/Plugin.test.js

@@ -13,7 +13,7 @@ jest.mock('../core/Utils', () => ({
 
 
 getFormData.mockImplementation(() => ({ foo: 'bar' }))
 getFormData.mockImplementation(() => ({ foo: 'bar' }))
 nanoraf.mockImplementation(cb => {
 nanoraf.mockImplementation(cb => {
-  cb({ some: 'state' })
+  cb({ some: 'state' }) // eslint-disable-line standard/no-callback-literal
   return () => {}
   return () => {}
 })
 })
 
 

+ 0 - 1
src/plugins/Tus10.js

@@ -93,7 +93,6 @@ module.exports = class Tus10 extends Plugin {
           updatedFiles[file] = updatedFile
           updatedFiles[file] = updatedFile
         })
         })
         this.core.setState({files: updatedFiles})
         this.core.setState({files: updatedFiles})
-        return
     }
     }
   }
   }
 
 

+ 0 - 1
src/uppy-base/src/plugins/Webcam.js

@@ -7,7 +7,6 @@ const { dataURItoFile } = require('../../../core/Utils')
  */
  */
 module.exports = class Webcam {
 module.exports = class Webcam {
   constructor (opts = {}, params = {}) {
   constructor (opts = {}, params = {}) {
-    this._userMedia
     this.userMedia = true
     this.userMedia = true
     this.protocol = location.protocol.match(/https/i) ? 'https' : 'http'
     this.protocol = location.protocol.match(/https/i) ? 'https' : 'http'
 
 

+ 1 - 1
website/themes/uppy/source/js/common.js

@@ -24,7 +24,7 @@
     var allLinks = []
     var allLinks = []
 
 
     function updateSidebar () {
     function updateSidebar () {
-      var top = doc && doc.scrollTop || body.scrollTop
+      var top = (doc && doc.scrollTop) || body.scrollTop
       var headerHeight = header.offsetHeight
       var headerHeight = header.offsetHeight
       if (top > headerHeight) {
       if (top > headerHeight) {
         main.classList.add('fix-sidebar')
         main.classList.add('fix-sidebar')