Allow a subset of console.* statements in production (#41)
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Hamcha 2019-09-21 09:19:16 +00:00 committed by Gitea
parent 9ce4dd67f5
commit 83b6f8f188
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"],
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"
},

View File

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

View File

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