remove some non standard lint rules

This commit is contained in:
JFH
2021-01-31 23:16:43 +01:00
parent e02fddb224
commit 47c365bf2a
298 changed files with 2110 additions and 29712 deletions

View File

@@ -109,7 +109,7 @@ export default {
* @param {ImageLibMetaMessage|ImageLibMessage|string} cfg.data String is deprecated when parsed to JSON `ImageLibMessage`
* @returns {void}
*/
async function onMessage ({origin, data: response}) { // eslint-disable-line no-shadow
async function onMessage ({origin, data: response}) {
if (!response || !['string', 'object'].includes(typeof response)) {
// Do nothing
return;
@@ -126,7 +126,7 @@ export default {
}
if (!allowedImageLibOrigins.includes('*') && !allowedImageLibOrigins.includes(origin)) {
// Todo: Surface this error to user?
console.log(`Origin ${origin} not whitelisted for posting to ${window.origin}`); // eslint-disable-line no-console
console.log(`Origin ${origin} not whitelisted for posting to ${window.origin}`);
return;
}
const hasName = 'name' in response;