代码拉取完成,页面将自动刷新
同步操作将从 无敌波/ok-admin-vue 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
// https://blog.csdn.net/weixin_43977053/article/details/107631681
// https://blog.csdn.net/xjlinme/article/details/80003597
/**
* 配置说明链接
* https://eslint.vuejs.org/rules/
* https://stackoverflow.com/questions/68776902/should-i-use-pluginvue-essential-and-pluginvue-vue3-recommended-when-linti/687769478
*/
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true
},
globals: {
// 针对@typescript-eslint/parser版本4+及其以上找不到NodeJS问题处理
NodeJS: true,
// vue3使用setup时自动引入的编译宏
defineProps: 'readonly',
defineEmits: 'readonly'
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
ecmaVersion: 2020,
sourceType: 'module',
ecmaFeatures: {
jsx: true
}
},
extends: [
'plugin:vue/vue3-essential', // vue3核心的eslint规则
'plugin:vue/vue3-recommended', // vue3推荐的强制执行主观社区默认值的规则,以确保一致性。
'plugin:vue/vue3-strongly-recommended', // vue3推荐的依赖规则提高可读性
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
'eslint:recommended', // eslint建议的规则
'@vue/prettier',
'prettier'
// '@vue/prettier/@typescript-eslint'
],
plugins: ['prettier'],
rules: {
'prettier/prettier': 'warn',
'vue/no-unused-components': 'off',
'vue/no-unused-vars': 'off',
// 关闭文件有多个组件的警告
'vue/one-component-per-file': 'off',
// 关闭 console的提示
'no-console': ['off', { allow: ['warn', 'error'] }],
// 关闭 console的提示
'@typescript-eslint/no-console': ['off', { allow: ['warn', 'error'] }],
'@typescript-eslint/ban-ts-ignore': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-var-requires': 'off',
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-use-before-define': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/ban-types': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
// 未使用的变量值不做提示
'@typescript-eslint/no-unused-vars': [
'off',
{ argsIgnorePattern: '^h$', varsIgnorePattern: '^h$' }
],
// 未使用的变量值不做提示
'no-unused-vars': ['off', { argsIgnorePattern: '^h$', varsIgnorePattern: '^h$' }],
'space-before-function-paren': 'off',
quotes: ['error', 'single'],
'comma-dangle': ['error', 'never'],
'vue/require-default-prop': 'off',
'vue/custom-event-name-casing': 'off',
'no-use-before-define': 'off',
'vue/comment-directive': 'off',
'vue/singleline-html-element-content-newline': 'off',
'vue/html-self-closing': 'off',
'vue/max-attributes-per-line': 'off'
},
overrides: [
{
files: ['**/__tests__/*.{j,t}s?(x)', '**/tests/unit/**/*.spec.{j,t}s?(x)'],
env: {
jest: true
}
}
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。