Files
caszl_server/admin/.eslintrc.cjs

44 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-10-29 18:37:44 +08:00
/* eslint-env node */
2023-11-01 22:29:43 +08:00
require("@rushstack/eslint-patch/modern-module-resolution");
2023-10-29 18:37:44 +08:00
module.exports = {
2023-11-01 22:29:43 +08:00
root: true,
ignorePatterns: ["/auto-imports.d.ts", "/components.d.ts"],
extends: [
"plugin:vue/vue3-essential",
"eslint:recommended",
"@vue/eslint-config-typescript/recommended",
"@vue/eslint-config-prettier",
"./.eslintrc-auto-import.json",
],
rules: {
"prettier/prettier": [
"warn",
{
semi: false,
singleQuote: true,
printWidth: 100,
proseWrap: "preserve",
bracketSameLine: false,
endOfLine: "lf",
tabWidth: 4,
useTabs: false,
trailingComma: "none",
},
2023-10-29 18:37:44 +08:00
],
2023-11-01 22:29:43 +08:00
"vue/multi-word-component-names": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"no-undef": "off",
"vue/prefer-import-from-vue": "off",
"no-prototype-builtins": "off",
"prefer-spread": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-non-null-asserted-optional-chain": "off",
"vue/no-mutating-props": "off",
},
globals: {
module: "readonly",
},
};