2 Star 3 Fork 0

tutuCode/vite3-vue3-ts-template

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.cjs 1.55 KB
一键复制 编辑 原始数据 按行查看 历史
tutuCode 提交于 2022-08-17 18:04 . 333
module.exports = {
env: {
browser: true,
es2021: true,
node: true
},
extends: [
'plugin:vue/vue3-essential',
'standard'
],
parserOptions: {
// ecmaVersion: 'latest',
parser: '@typescript-eslint/parser',
// sourceType: 'module'
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
modules: true
},
requireConfigFile: false
// parser: '@babel/eslint-parser'
},
plugins: [
'vue',
'@typescript-eslint'
],
rules: {
semi: [2, 'never'], // 禁止尾部使用分号“ ; ”
'no-var': 'error', // 禁止使用 var
indent: 0, // 强制使用一致缩进
'no-mixed-spaces-and-tabs': ['error', 'smart-tabs'], // 不能空格与tab混用
quotes: [2, 'single'], // 使用单引号
'vue/html-closing-bracket-newline': 'off', // 不强制换行
'vue/singleline-html-element-content-newline': 'off', // 不强制换行
'vue/max-attributes-per-line': ['error', {
singleline: { max: 5 },
multiline: { max: 5 }
}], // vue template模板元素第一行最多5个属性
'vue/multi-word-component-names': 'off', // 关闭组件命名规范
'space-before-function-paren': [0, 'always'], // 方法前面不需要空格 func() {}
eqeqeq: 0, // 不使用 ===
'prefer-const': 0, // 不主使用const
'no-tabs': 0, // 禁止使用 tabs
'eol-last': 0, // 末尾是否空行
camelcase: 0, // 是否强制驼峰
'prefer-promise-reject-errors': 0, // 该规则旨在确保 Promise 只使用 Error 对象拒绝
'no-new': 0, // 禁止使用 new 以避免产生副作用
'no-return-assign': 0 // 禁止在返回语句中赋值
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
JavaScript
1
https://gitee.com/goodboya/vite3-vue3-ts-templatev.git
git@gitee.com:goodboya/vite3-vue3-ts-templatev.git
goodboya
vite3-vue3-ts-templatev
vite3-vue3-ts-template
master

搜索帮助

D67c1975 1850385 1daf7b77 1850385