Update Linter (#2796)

* relocate .vscode

* Switch to transloadit linter

* Update .eslintrc.json

* autofix code

* unlink and install eslint-config-transloadit@1.1.1

* Change 0 to "off"

* Don't change 'use strict'

* Do not vertically align

* disable key-spacing

* add import/no-extraneous-dependencies per package

* add more react/a11y warnings

* Revert "autofix code"

This reverts commit 14c8a8cde8.

* add import/no-extraneous-dependencies per example and main package

* autofix code (2)

* Allow devDependencies in ./bin

* Change import/no-extraneous-dependencies to warn again

* upgrade linter

* Set import/no-extraneous-dependencies to warn
This commit is contained in:
Kevin van Zonneveld 2021-03-15 17:25:17 +01:00 committed by GitHub
parent 6cb90c613c
commit 764c2ccada
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
311 changed files with 4118 additions and 2795 deletions

View file

@ -24,15 +24,15 @@ const formUppy = robodog.form('#test-form', {
debug: true,
fields: ['message'],
restrictions: {
allowedFileTypes: ['.png']
allowedFileTypes: ['.png'],
},
waitForEncoding: true,
params: {
auth: { key: TRANSLOADIT_KEY },
template_id: TEMPLATE_ID
template_id: TEMPLATE_ID,
},
modal: true,
progressBar: '#test-form .progress'
progressBar: '#test-form .progress',
})
formUppy.on('error', (err) => {
@ -51,15 +51,15 @@ const formUppyWithDashboard = robodog.form('#dashboard-form', {
debug: true,
fields: ['message'],
restrictions: {
allowedFileTypes: ['.png']
allowedFileTypes: ['.png'],
},
waitForEncoding: true,
note: 'Only PNG files please!',
params: {
auth: { key: TRANSLOADIT_KEY },
template_id: TEMPLATE_ID
template_id: TEMPLATE_ID,
},
dashboard: '#dashboard-form .dashboard'
dashboard: '#dashboard-form .dashboard',
})
window.formUppyWithDashboard = formUppyWithDashboard
@ -70,8 +70,8 @@ const dashboard = robodog.dashboard('#dashboard', {
note: 'Images will be resized with Transloadit',
params: {
auth: { key: TRANSLOADIT_KEY },
template_id: TEMPLATE_ID
}
template_id: TEMPLATE_ID,
},
})
window.dashboard = dashboard
@ -83,16 +83,16 @@ window.dashboard = dashboard
function openModal () {
robodog.pick({
restrictions: {
allowedFileTypes: ['.png']
allowedFileTypes: ['.png'],
},
waitForEncoding: true,
params: {
auth: { key: TRANSLOADIT_KEY },
template_id: TEMPLATE_ID
template_id: TEMPLATE_ID,
},
providers: [
'webcam'
]
'webcam',
],
// if providers need custom config
// webcam: {
// option: 'whatever'
@ -113,8 +113,8 @@ window.doUpload = (event) => {
waitForEncoding: true,
params: {
auth: { key: TRANSLOADIT_KEY },
template_id: TEMPLATE_ID
}
template_id: TEMPLATE_ID,
},
}).then((result) => {
resultEl.classList.remove('hidden')
errorEl.classList.add('hidden')