2 Star 8 Fork 0

张佳佳/uni-vt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
eslint.config.mjs 766 Bytes
一键复制 编辑 原始数据 按行查看 历史
张佳佳 提交于 2025-01-19 23:17 +08:00 . perf: 完善eslint+ts
import globals from 'globals'
import pluginJs from '@eslint/js'
import pluginVue from 'eslint-plugin-vue'
import tseslint from 'typescript-eslint'
// import eslintConfigPrettier from 'eslint-plugin-prettier'
export default [
{ files: ['**/*.{js,ts,mjs,cjs,vue}'] },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs['flat/essential'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.es2020,
...globals.node
},
ecmaVersion: 2020,
parserOptions: {
parser: tseslint.parser
}
},
rules: {
'no-undef': 'off',
'no-await-in-loop': 'error',
'no-var': 'error',
'@typescript-eslint/no-explicit-any': 'warn'
}
}
]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/southwind957/uni-vt.git
git@gitee.com:southwind957/uni-vt.git
southwind957
uni-vt
uni-vt
master

搜索帮助