Profectus-Niffix/.eslintrc.js

29 lines
771 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-25 04:25:34 +00:00
"vue/no-mutating-props": "off",
"vue/multi-word-component-names": "off"
2022-01-25 04:23:30 +00:00
},
globals: {
defineProps: "readonly",
defineEmits: "readonly"
}
};