Profectus/.eslintrc.js
thepaperpilot dfb14acc6e
Some checks failed
Build and Deploy / build-and-deploy (push) Successful in 57s
Run Tests / test (push) Failing after 2m6s
Allow null and undefined values in persistent refs
2024-03-29 04:39:56 +00:00

43 lines
1.1 KiB
JavaScript

require("@rushstack/eslint-patch/modern-module-resolution");
module.exports = {
root: true,
env: {
node: true
},
extends: [
"plugin:vue/vue3-essential",
"@vue/eslint-config-typescript/recommended",
"@vue/eslint-config-prettier"
],
parserOptions: {
ecmaVersion: 2020,
project: "tsconfig.json"
},
ignorePatterns: ["src/lib"],
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"vue/script-setup-uses-vars": "warn",
"vue/no-mutating-props": "off",
"vue/multi-word-component-names": "off",
"@typescript-eslint/strict-boolean-expressions": [
"error",
{
allowNullableObject: true,
allowNullableBoolean: true
}
],
"eqeqeq": [
"error",
"always",
{
"null": "never"
}
]
},
globals: {
defineProps: "readonly",
defineEmits: "readonly"
}
};