1 Star 1 Fork 0

Bennent_G/clean-admin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
eslint.config.js 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
Bennent_G 提交于 2024-12-23 17:08 . feat:init
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";
/** @type {import('eslint').Linter.Config[]} */
export default [
{
files: ["**/*.{js,mjs,cjs,ts,vue}"]
},
{
languageOptions: {
globals: {
...globals.browser,
...globals.node
}
}
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
...pluginVue.configs["flat/essential"],
{
files: ["**/*.vue"],
languageOptions: {
parserOptions: {
parser: tseslint.parser
}
}
},
{
rules: {
"semi": ["error", "always"],
"no-var": "error",
"no-empty": ["error", {"allowEmptyCatch": true}],
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
// vue 相关
"vue/multi-word-component-names": "off", // 禁止组件名称必须是多个单词
"vue/no-unused-components": "error", // 禁止未使用的组件
"vue/html-closing-bracket-newline": ["error", { "singleline": "never", "multiline": "never" }], // 指定 HTML 标签的闭合括号是否需要换行
"@typescript-eslint/no-explicit-any": "off"
}
}
];
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/guolixun/clean-admin.git
[email protected]:guolixun/clean-admin.git
guolixun
clean-admin
clean-admin
master

搜索帮助