Allow a subset of console.* statements in production #41

Merged
hamcha merged 1 commit from bugfix/eslint into master 2019-09-21 09:19:16 +00:00
3 changed files with 7 additions and 4 deletions
Showing only changes of commit f359d31964 - Show all commits

View file

@ -8,7 +8,10 @@ module.exports = {
extends: ["plugin:vue/essential", "@vue/prettier", "@vue/typescript"], extends: ["plugin:vue/essential", "@vue/prettier", "@vue/typescript"],
rules: { rules: {
"no-console": process.env.NODE_ENV === "production" ? "error" : "off", "no-console":
process.env.NODE_ENV === "production"
? ["error", { allow: ["info", "warn", "error"] }]
: "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off" "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
}, },

View file

@ -1,6 +1,7 @@
{ {
"name": "mcgvue", "name": "MLPCARDGAME",
"short_name": "mcgvue", "short_name": "mcg",
"description": "MLP:CCG simulator",
"icons": [{ "icons": [{
"src": "./images/icons/android-chrome-192x192.png", "src": "./images/icons/android-chrome-192x192.png",
"sizes": "192x192", "sizes": "192x192",

View file

@ -34,7 +34,6 @@ export async function loadSets() {
if (Database == null) { if (Database == null) {
throw new Error("Database was not initialized, init with 'initDB()'"); throw new Error("Database was not initialized, init with 'initDB()'");
} }
console.log(`Processing cards from ${set.Name}`);
return await Database.cards.bulkPut(set.Cards); return await Database.cards.bulkPut(set.Cards);
}) })
); );