perf: remove console (log, debug, and warn) messages

This commit is contained in:
liyasthomas
2021-11-05 13:41:25 +05:30
parent 68aa54bdb7
commit a63c0817cc
5 changed files with 16 additions and 25 deletions

View File

@@ -19,32 +19,15 @@ module.exports = {
"plugin:nuxt/recommended",
],
ignorePatterns: ["helpers/backend/graphql.ts"],
plugins: ["vue", "prettier"],
plugins: ["vue", "nuxt", "prettier"],
// add your custom rules here
rules: {
semi: [2, "never"],
"import/named": "off", // because, named import issue with typescript see: https://github.com/typescript-eslint/typescript-eslint/issues/154
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
"vue/max-attributes-per-line": "off",
"vue/component-name-in-template-casing": ["error", "PascalCase"],
"vue/html-self-closing": [
"error",
{
html: {
normal: "never",
void: "always",
},
},
],
"vue/singleline-html-element-content-newline": "off",
"vue/multiline-html-element-content-newline": "off",
"vue/require-default-prop": "warn",
"vue/require-prop-types": "warn",
"vue/multi-word-component-names": "off",
"prettier/prettier": ["warn", { semi: false }],
"import/no-named-as-default": "off",
"import/prefer-default-export": "off",
"import/no-named-as-default-member": "off",
"import/default": "off",
"no-undef": "off",