代码拉取完成,页面将自动刷新
同步操作将从 theajack/cnchar 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
module.exports = {
// "parser": '@typescript-eslint/parser', // 启用会导致vue文件eslint错误
"plugins": [
'@typescript-eslint',
'jest'
],
"env": {
"browser": true,
"es6": true,
"node": true,
"commonjs": true,
"jest/globals": true
},
// 接入vue失败 暂且eslint 忽略vue文件
"extends": [
// "standard",
"plugin:vue/essential"
],
"parserOptions": {
// "parser": "babel-eslint",
"parser": "@typescript-eslint/parser",
"ecmaVersion": 2018,
"ecmaFeatures": {
"arrowFunctions": true,
"classes": true,
"modules": true,
"defaultParams": true,
"experimentalObjectRestSpread": true
},
"sourceType": "module",
"parserOptions": {
"allowImportExportEverywhere": true
}
},
"globals": {
"window": true,
"define": true,
"console": true,
"require": true,
"module": true,
},
"rules": {
// 'no-var': "error",
// 优先使用 interface 而不是 type
'@typescript-eslint/consistent-type-definitions': [
"error",
"interface"
],
"@typescript-eslint/no-unused-vars": "error", // 使用 ts 未使用变量的规则 比如枚举类型在es中会报错
"no-extend-native": 0,
"no-new": 0,
"no-var": 2,
"prefer-const": 2,
"no-useless-escape": 0,
"no-useless-constructor": 0,
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"indent": ["error", 4, {
"SwitchCase": 1
}],
"space-infix-ops": ["error", {"int32Hint": false}],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "always",
"asyncArrow": "always"
}],
"semi": ["error", "always"],
"comma-dangle": 0,
"no-console": 0,
"no-debugger": 0,
"id-length": 0,
"eol-last": 0,
"object-curly-spacing": ["error", "never"],
"arrow-spacing": "error",
"no-multiple-empty-lines": "error",
"no-unused-vars": "error",
"spaced-comment": "error",
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"no-unreachable": "error",
"keyword-spacing": "error",
"space-before-blocks": "error",
"semi-spacing": "error",
"comma-spacing": "error",
"key-spacing": "error",
"no-undef": "error",
"prefer-const": ["error", {
"destructuring": "any",
"ignoreReadBeforeAssign": false
}],
"vue/script-indent": ["warn", 4, {
"baseIndent": 1,
"switchCase": 1
}],
"vue/html-indent": ["error", 4],
"vue/html-quotes": ["error", "single", { "avoidEscape": true }],
},
"overrides": [
{
"files": ["*.vue"],
"rules": {
"indent": "off"
}
}
]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。