3 Star 0 Fork 0

KittySnow/space-front

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.eslintrc.js 1.02 KB
一键复制 编辑 原始数据 按行查看 历史
KittySnow 提交于 2023-03-29 18:49 . init
const vue3Rules = require('./.eslintrc.vue3.js')
const tsRules = require('./.eslintrc.ts.js')
module.exports = {
'env': {
'node': true
},
'globals': {
'console': `writable`
},
'extends': [
`plugin:vue/vue3-recommended`,
`standard`,
`plugin:@typescript-eslint/recommended`, // 使用来自 @typescript-eslint/eslint-plugin 的推荐规则
`plugin:prettier/recommended`, // 解决eslint prettierrc冲突
`./.eslintrc-auto-import.json`
], // 位置靠后的包将覆盖前面的
'parser': `vue-eslint-parser`, // 解析 .vue 文件
'parserOptions': {
parser: '@typescript-eslint/parser',
sourceType: 'module',
tsconfigRootDir: __dirname,
project: ['./tsconfig.json'],
extraFileExtensions: ['.vue'],
},
'plugins': [`vue`, `@typescript-eslint`],
'rules': {
'import/no-absolute-path': 0,
'camelcase': 2, // 强制驼峰法命名
'consistent-this': [2, `that`], // this别名
'quote-props': [2, `always`], //强制对象属性加引号
'quotes': [2, `backtick`],
...vue3Rules,
...tsRules
}
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/KittySnow/space-front.git
git@gitee.com:KittySnow/space-front.git
KittySnow
space-front
space-front
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385