1 Star 0 Fork 481

卫蓝(平潭)科技有限公司/vue-devui

forked from DevUI/vue-devui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.eslintrc.js 2.99 KB
一键复制 编辑 原始数据 按行查看 历史
Kagol 提交于 2023-01-04 18:23 . release v1.5.0 (#1523)
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
sourceType: 'module',
ecmaVersion: 6,
ecmaFeatures: {
jsx: true,
tsx: true,
},
},
env: {
browser: true,
node: true,
jest: true,
es6: true,
},
plugins: ['@typescript-eslint'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:vue/vue3-recommended',
'plugin:import/recommended',
'plugin:import/typescript',
],
rules: {
'no-useless-constructor': 'off',
'no-useless-concat': 'off',
'max-params': 'off',
'@typescript-eslint/no-useless-constructor': 'off',
'@typescript-eslint/no-parameter-properties': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/no-var-requires': 'off',
complexity: [
'error',
{
max: 40,
},
],
curly: 'error',
'eol-last': 'error',
eqeqeq: ['error', 'smart'],
'max-len': ['error', { code: 140 }],
'no-console': [
'error',
{
allow: [
'log',
'warn',
'dir',
'timeLog',
'assert',
'clear',
'count',
'countReset',
'group',
'groupEnd',
'table',
'dirxml',
'error',
'groupCollapsed',
'Console',
'profile',
'profileEnd',
'timeStamp',
'context',
],
},
],
'no-multiple-empty-lines': 'error',
'no-shadow': 'off',
'no-trailing-spaces': 'error',
'no-unused-labels': 'error',
'no-use-before-define': 'error',
'no-var': 'error',
'prefer-const': 'error',
semi: 'error',
'space-in-parens': ['error', 'never'],
'spaced-comment': ['error', 'always'],
'@typescript-eslint/dot-notation': 'off',
'@typescript-eslint/indent': [
'error',
2,
{ FunctionDeclaration: { parameters: 'first' }, FunctionExpression: { parameters: 'first' } },
],
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'semi',
requireLast: true,
},
singleline: {
delimiter: 'semi',
requireLast: false,
},
},
],
'@typescript-eslint/no-misused-new': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/semi': ['error', 'always'],
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/unified-signatures': 'error',
'@typescript-eslint/no-shadow': 'error',
'prefer-promise-reject-errors': 'off',
'max-nested-callbacks': ['error', 6],
'@typescript-eslint/no-this-alias': 'off',
'accessor-pairs': 'off',
'max-depth': 'off',
'@typescript-eslint/member-ordering': 'off',
'array-callback-return': 'off',
},
"overrides": [
{
"files": [
"*.ts",
"*.tsx"
],
"parser": "@typescript-eslint/parser"
}
]
};
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/weilankeji/vue-devui.git
git@gitee.com:weilankeji/vue-devui.git
weilankeji
vue-devui
vue-devui
dev

搜索帮助