chore: disallow `console.log`
parent
2f74c15553
commit
3877f2e7af
|
@ -21,6 +21,7 @@ module.exports = {
|
||||||
"warn",
|
"warn",
|
||||||
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
|
||||||
],
|
],
|
||||||
|
"no-console": ["error", { allow: ["debug", "warn", "error"] }],
|
||||||
},
|
},
|
||||||
settings: {
|
settings: {
|
||||||
"svelte3/typescript": true, // load TypeScript as peer dependency
|
"svelte3/typescript": true, // load TypeScript as peer dependency
|
||||||
|
|
|
@ -210,7 +210,6 @@
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.warn(`Failed to load peaks: ${e}`);
|
console.warn(`Failed to load peaks: ${e}`);
|
||||||
const entity = await fetchEntity(address);
|
const entity = await fetchEntity(address);
|
||||||
console.log(entity.get("FILE_SIZE"));
|
|
||||||
if (
|
if (
|
||||||
(entity.get("FILE_SIZE") || 0) < 20_000_000 ||
|
(entity.get("FILE_SIZE") || 0) < 20_000_000 ||
|
||||||
confirm(
|
confirm(
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
let imageEl: HTMLImageElement;
|
let imageEl: HTMLImageElement;
|
||||||
|
|
||||||
$: svg = Boolean($entity?.get("FILE_MIME")?.toString().includes("svg+xml"));
|
$: svg = Boolean($entity?.get("FILE_MIME")?.toString().includes("svg+xml"));
|
||||||
$: console.log({svg});
|
|
||||||
|
|
||||||
interface Annotorious {
|
interface Annotorious {
|
||||||
addAnnotation: (a: W3cAnnotation) => void;
|
addAnnotation: (a: W3cAnnotation) => void;
|
||||||
|
|
|
@ -56,8 +56,6 @@
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$: console.log({ exactHits });
|
|
||||||
|
|
||||||
async function create() {
|
async function create() {
|
||||||
const createdAddress = await createLabelled(query);
|
const createdAddress = await createLabelled(query);
|
||||||
navigate(`/browse/${createdAddress}`);
|
navigate(`/browse/${createdAddress}`);
|
||||||
|
|
Loading…
Reference in New Issue