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",
{ argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
"no-console": ["error", { allow: ["debug", "warn", "error"] }],
},
settings: {
"svelte3/typescript": true, // load TypeScript as peer dependency

View File

@ -210,7 +210,6 @@
} catch (e) {
console.warn(`Failed to load peaks: ${e}`);
const entity = await fetchEntity(address);
console.log(entity.get("FILE_SIZE"));
if (
(entity.get("FILE_SIZE") || 0) < 20_000_000 ||
confirm(

View File

@ -22,7 +22,6 @@
let imageEl: HTMLImageElement;
$: svg = Boolean($entity?.get("FILE_MIME")?.toString().includes("svg+xml"));
$: console.log({svg});
interface Annotorious {
addAnnotation: (a: W3cAnnotation) => void;

View File

@ -56,8 +56,6 @@
);
}
$: console.log({ exactHits });
async function create() {
const createdAddress = await createLabelled(query);
navigate(`/browse/${createdAddress}`);