Skip to content

Commit

Permalink
meta: fix linter failures (#4029)
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Aug 22, 2022
1 parent 4bb9988 commit 70a4615
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 76 deletions.
2 changes: 1 addition & 1 deletion .eslintignore
Expand Up @@ -9,7 +9,7 @@ website/themes/uppy/source/js/smooth-scroll.min.js
website/themes/uppy/source/js/uppy.js
website/themes/uppy/source/uppy/**
test/endtoend/*/build
examples/dev/output
examples/svelte-example/public/build/
bundle-legacy.js
website/src/_posts/201*.md
website/src/_posts/2020-*.md
Expand Down
10 changes: 7 additions & 3 deletions examples/transloadit/main.js
Expand Up @@ -162,9 +162,13 @@ const dashboardModal = new Uppy({
})

dashboardModal.on('complete', ({ transloadit, successful, failed }) => {
console.log(transloadit)
console.log(successful)
console.error(failed)
if (failed?.length !== 0) {
// eslint-disable-next-line no-console
console.error('it failed', failed)
} else {
// eslint-disable-next-line no-console
console.log('success', { transloadit, successful })
}
})

function openModal () {
Expand Down
70 changes: 0 additions & 70 deletions examples/transloadit/rollup.config.js

This file was deleted.

Expand Up @@ -86,10 +86,11 @@ function FormFields (fields) {
let isValueJSON = false
if (value.startsWith('{') || value.startsWith('[')) {
try {
// eslint-disable-next-line no-param-reassign
value = JSON.stringify(
JSON.parse(value),
null,
2
null,
2,
)
isValueJSON = true
} catch {
Expand Down

0 comments on commit 70a4615

Please sign in to comment.