加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
eslint.config.js 1.44 KB
一键复制 编辑 原始数据 按行查看 历史
viarotel 提交于 2024-05-13 22:49 . perf: ♻️ FindInPage API
import { createRequire } from 'node:module'
import antfu from '@antfu/eslint-config'
const require = createRequire(import.meta.url)
const autoImport = require('./.eslintrc-auto-import.json')
export default antfu(
{
typescript: false,
markdown: false,
ignores: [
'.github',
'.vscode',
'node_modules',
'dist',
'dist-electron',
'dist-release',
],
},
{
languageOptions: {
globals: {
...autoImport.globals,
},
},
rules: {
'jsdoc/check-param-names': 'off',
'jsdoc/check-types': 'off',
'jsdoc/require-returns-description': 'off',
'antfu/consistent-list-newline': 'off',
'antfu/top-level-function': 'off',
'import/default': 'off',
'node/prefer-global/process': 'off',
'no-console': 'off',
'curly': 'off',
'eqeqeq': 'off',
'no-unused-vars': 'off',
'unused-imports/no-unused-vars': 'off',
'no-debugger': 'off',
'no-restricted-syntax': 'off',
'no-new': 'off',
'prefer-promise-reject-errors': 'off',
'no-unused-expressions': 'off',
'vue/html-self-closing': 'off',
'vue/block-order': 'off',
'vue/no-unused-refs': 'off',
'vue/no-mutating-props': 'off',
'vue/no-constant-condition': 'off',
'vue/eqeqeq': 'off',
'vue/custom-event-name-casing': 'off',
'vue/no-use-v-if-with-v-for': 'off',
'vue/component-tags-order': 'off',
},
},
)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化