Profectus/.eslintrc.cjs

44 lines
1.2 KiB
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
},
2024-03-18 05:27:57 +00:00
parser: '@typescript-eslint/parser',
plugins: ["@typescript-eslint"],
overrides: [
{
files: ['*.ts', '*.tsx'],
extends: [
"plugin:vue/vue3-essential",
"@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"
}
};