profectus-template/.eslintrc.js

28 lines
722 B
JavaScript
Raw Normal View History

2022-01-25 04:23:30 +00:00
require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
root: true,
env: {
2022-01-25 04:23:30 +00:00
node: true
},
extends: [
"plugin:vue/vue3-essential",
2022-01-25 04:23:30 +00:00
"@vue/eslint-config-typescript/recommended",
"@vue/eslint-config-prettier"
],
parserOptions: {
ecmaVersion: 2020
},
2022-01-25 04:23:30 +00:00
ignorePatterns: ["src/lib"],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
2022-01-14 04:25:47 +00:00
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
2022-01-25 04:23:30 +00:00
"vue/script-setup-uses-vars": "warn",
2022-01-14 04:25:47 +00:00
"vue/no-mutating-props": "off"
2022-01-25 04:23:30 +00:00
},
globals: {
defineProps: "readonly",
defineEmits: "readonly"
}
};