1 Star 2 Fork 1

CC/vue3-template-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.cjs 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
BenjaminCCG 提交于 2023-08-03 17:37 . feat(组件): add
module.exports = {
extends: ['alloy', 'alloy/vue', 'alloy/typescript', './.eslintrc-auto-import'],
parser: 'vue-eslint-parser',
parserOptions: {
parser: {
js: '@babel/eslint-parser',
jsx: '@babel/eslint-parser',
ts: '@typescript-eslint/parser',
tsx: '@typescript-eslint/parser'
// Leave the template parser unspecified, so that it could be determined by `<script lang="...">`
}
},
env: {
// Your environments (which contains several predefined global variables)
//
browser: true,
node: true
// mocha: true,
// jest: true,
// jquery: true
},
globals: {
// Your global variables (setting to false means it's not allowed to be reassigned)
//
ComponentInstance: true
},
rules: {
// Customize your rules
//
'@typescript-eslint/no-use-before-define': ['error', { functions: false }],
'@typescript-eslint/no-unused-vars': 2,
// Please keep this rule off because it requiresTypeChecking
// https://github.com/vuejs/vue-eslint-parser/issues/104
// https://github.com/typescript-eslint/typescript-eslint/pull/5318
'@typescript-eslint/prefer-optional-chain': 'off'
}
};
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/theGreatWallCCG/vue3-template-cli.git
git@gitee.com:theGreatWallCCG/vue3-template-cli.git
theGreatWallCCG
vue3-template-cli
vue3-template-cli
main

搜索帮助

0d507c66 1850385 C8b1a773 1850385