aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/dropzone.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2020-03-11 20:34:54 +0100
committerGitHub <noreply@github.com>2020-03-11 21:34:54 +0200
commite03d6277698f4e1e03d9336ba017bae130d4353c (patch)
tree418c84dd378bc86093f9837de80f92c13fe87f68 /web_src/js/features/dropzone.js
parent984b85c1a72f9f1561447a8492bc3d33a87e3641 (diff)
downloadgitea-e03d6277698f4e1e03d9336ba017bae130d4353c.tar.gz
gitea-e03d6277698f4e1e03d9336ba017bae130d4353c.zip
Misc JS linting and naming tweaks (#10652)
- lowercase all js filenames except Vue components - enable new lint rules, mostly focused on shorter code - autofix new lint violations - apply misc transformations indexOf -> includes and onevent-> addEventListener Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
Diffstat (limited to 'web_src/js/features/dropzone.js')
-rw-r--r--web_src/js/features/dropzone.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/dropzone.js b/web_src/js/features/dropzone.js
index f5d5b36a18..428f1d677a 100644
--- a/web_src/js/features/dropzone.js
+++ b/web_src/js/features/dropzone.js
@@ -1,5 +1,5 @@
export default async function createDropzone(el, opts) {
- const [{ default: Dropzone }] = await Promise.all([
+ const [{default: Dropzone}] = await Promise.all([
import(/* webpackChunkName: "dropzone" */'dropzone'),
import(/* webpackChunkName: "dropzone" */'dropzone/dist/dropzone.css'),
]);