Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meta: fix linter failures #4029

Merged
merged 1 commit into from Aug 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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