Skip to content

Instantly share code, notes, and snippets.

@cihat
Created September 25, 2022 19:29
Show Gist options
  • Save cihat/d67b984a42dd8b3b219933602052b295 to your computer and use it in GitHub Desktop.
Save cihat/d67b984a42dd8b3b219933602052b295 to your computer and use it in GitHub Desktop.
Setting to turn off eslint errors for vuejs
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",
},
}
@cihat
Copy link
Author

cihat commented Sep 25, 2022

"@rushstack/eslint-patch": "^1.1.4",
"@vitejs/plugin-vue": "^3.0.3",
"@vue/eslint-config-prettier": "^7.0.0",
"eslint": "^8.22.0",
"eslint-plugin-vue": "^9.3.0",

scripts:

"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment