chore: disallow `console.log`

feat/type-attributes
Tomáš Mládek 2022-10-22 14:57:46 +02:00
parent 2f74c15553
commit 3877f2e7af
4 changed files with 1 additions and 4 deletions

View File

@ -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

View File

@ -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(

View File

@ -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;

View File

@ -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}`);