Allow a subset of console.* statements in production
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Hamcha 2019-09-21 11:17:33 +02:00
parent 70fe698c22
commit f359d31964
Signed by: hamcha
GPG key ID: 41467804B19A3315
3 changed files with 7 additions and 4 deletions

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