Profectus/.eslintrc.cjs

37 lines
1,010 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,
project: "tsconfig.json"
},
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",
"@typescript-eslint/strict-boolean-expressions": [
"error",
{
allowNullableObject: true,
allowNullableBoolean: true
}
]
2022-01-25 04:23:30 +00:00
},
globals: {
defineProps: "readonly",
defineEmits: "readonly"
}
};