代码拉取完成,页面将自动刷新
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
}
};
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。