1 Star 0 Fork 479

sunny360 / vue-devui

forked from DevUI / vue-devui 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.eslintrc.js 2.86 KB
一键复制 编辑 原始数据 按行查看 历史
module.exports = {
root: true,
parser: '@typescript-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',
},
};
TypeScript
1
https://gitee.com/sunny360/vue-devui.git
git@gitee.com:sunny360/vue-devui.git
sunny360
vue-devui
vue-devui
dev

搜索帮助