diff options
author | 2021-07-30 10:54:54 +0200 | |
---|---|---|
committer | 2021-07-30 14:24:54 +0530 | |
commit | f4b4416ea52d564bc2dbe543a82084ed98843ccc (patch) | |
tree | 7ca6b23571c86458a6b799746c91a7191de02715 /src/app.js | |
parent | 5.6.1-nightly.8 [skip ci] (diff) | |
download | ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.tar.gz ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.tar.zst ferdium-app-f4b4416ea52d564bc2dbe543a82084ed98843ccc.zip |
chore: migrate from tslint to @typescript-eslint (#1706)
- update .eslintrc to work for .js and .ts
- update devDependencies
- lint properly both root /src and nested /packages
- update webhint recommended setting for tsconfig.json to shrink output
- Manage all eslint rules from the repo root
- escape single quotes in scripts to please windows build
Co-authored-by: Vijay A <avijayr@protonmail.com>
Diffstat (limited to 'src/app.js')
-rw-r--r-- | src/app.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/app.js b/src/app.js index aab1729d7..a2d60dbe4 100644 --- a/src/app.js +++ b/src/app.js | |||
@@ -59,7 +59,7 @@ window.addEventListener('load', () => { | |||
59 | }); | 59 | }); |
60 | 60 | ||
61 | // Prevent drag and drop into window from redirecting | 61 | // Prevent drag and drop into window from redirecting |
62 | window.addEventListener('dragover', event => event.preventDefault()); | 62 | window.addEventListener('dragover', (event) => event.preventDefault()); |
63 | window.addEventListener('drop', event => event.preventDefault()); | 63 | window.addEventListener('drop', (event) => event.preventDefault()); |
64 | window.addEventListener('dragover', event => event.stopPropagation()); | 64 | window.addEventListener('dragover', (event) => event.stopPropagation()); |
65 | window.addEventListener('drop', event => event.stopPropagation()); | 65 | window.addEventListener('drop', (event) => event.stopPropagation()); |