Created
September 25, 2022 19:29
-
-
Save cihat/d67b984a42dd8b3b219933602052b295 to your computer and use it in GitHub Desktop.
Setting to turn off eslint errors for vuejs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
root: false, | |
extends: ["plugin:vue/vue3-essential", "eslint:recommended", "@vue/eslint-config-prettier"], | |
parserOptions: { | |
ecmaVersion: "latest", | |
}, | |
rules: { | |
"no-console": process.env.NODE_ENV === "production" ? "error" : "off", | |
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off", | |
}, | |
globals: { | |
defineProps: "readonly", | |
defineEmits: "readonly", | |
defineExpose: "readonly", | |
withDefaults: "readonly", | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
scripts: