代码拉取完成,页面将自动刷新
同步操作将从 →奮鬦べ青年/elegant-admin 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
import antfu from '@antfu/eslint-config'
export default antfu(
{
unocss: true,
ignores: [
'public',
'packages',
'dist*',
'README.md',
],
},
{
rules: {
'@typescript-eslint/no-inferrable-types': 'off', // 可以轻松推断的显式类型可能会增加不必要的冗长
'@typescript-eslint/no-namespace': 'off', // 禁止使用自定义 TypeScript 模块和命名空间
'@typescript-eslint/no-explicit-any': 'off', // 禁止使用 any 类型
'@typescript-eslint/ban-types': 'off', // 禁止使用特定类型
'@typescript-eslint/no-var-requires': 'off', // 允许使用 require() 函数导入模块
'@typescript-eslint/no-non-null-assertion': 'off', // 不允许使用后缀运算符的非空断言(!)
'ts/no-use-before-define': 'off', // 禁止在 函数/类/变量 定义之前使用它们
'eslint-comments/no-unlimited-disable': 'off',
'no-unused-vars': 'off',
'array-callback-return': 'off',
'curly': ['error', 'all'],
'antfu/consistent-list-newline': 'off',
'no-irregular-whitespace': 'off', // 禁止不规则的空白
'no-console': 'off', // 是否允许在代码中使用 console
'eqeqeq': 'off', // 严格相等(=== 和 !==)而不是相等(== 和 !=)运算符。
'prefer-const': 'off', // 使用 let 关键字声明但在初始分配后从未重新分配的变量,要求使用 const
'no-use-before-define': 'off', // 禁止在 函数/类/变量 定义之前使用它们
'vue/require-component-is': 'off', // 想使用动态组件而不想使用 v-bind:is 属性
'vue/no-unused-refs': 'off',
},
},
{
files: [
'src/**/*.vue',
],
rules: {
'vue/block-order': ['error', {
order: ['route', 'script', 'template', 'style'],
}],
},
},
)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。