819 changed files with 17284 additions and 16370 deletions
@ -1,74 +1,15 @@
|
||||
const process = require('node:process') |
||||
|
||||
process.env.ESLINT_TSCONFIG = 'tsconfig.json' |
||||
|
||||
module.exports = { |
||||
root: true, |
||||
env: { |
||||
browser: true, |
||||
node: true, |
||||
es6: true |
||||
}, |
||||
parser: 'vue-eslint-parser', |
||||
plugins: ['vue'], |
||||
parserOptions: { |
||||
parser: '@typescript-eslint/parser', |
||||
ecmaVersion: 2020, |
||||
sourceType: 'module', |
||||
jsxPragma: 'React', |
||||
ecmaFeatures: { |
||||
jsx: true |
||||
} |
||||
}, |
||||
extends: ['plugin:vue/vue3-recommended', 'prettier', 'plugin:@typescript-eslint/recommended', 'plugin:prettier/recommended'], |
||||
extends: '@antfu', |
||||
rules: { |
||||
'max-len': ['error', { code: 140, tabWidth: 2, ignoreComments: true }], |
||||
'vue/script-setup-uses-vars': 'error', |
||||
'@typescript-eslint/ban-ts-ignore': 'off', |
||||
'@typescript-eslint/explicit-function-return-type': 'off', |
||||
'@typescript-eslint/no-explicit-any': 'off', |
||||
'@typescript-eslint/no-var-requires': 'off', |
||||
'@typescript-eslint/no-empty-function': 'off', |
||||
'vue/custom-event-name-casing': 'off', |
||||
'no-use-before-define': 'off', |
||||
'@typescript-eslint/no-use-before-define': 'off', |
||||
'@typescript-eslint/ban-ts-comment': 'off', |
||||
'@typescript-eslint/ban-types': 'off', |
||||
'@typescript-eslint/no-non-null-assertion': 'off', |
||||
'@typescript-eslint/explicit-module-boundary-types': 'off', |
||||
'@typescript-eslint/no-unused-vars': [ |
||||
'error', |
||||
{ |
||||
argsIgnorePattern: '^_', |
||||
varsIgnorePattern: '^_' |
||||
} |
||||
], |
||||
'no-unused-vars': [ |
||||
'error', |
||||
{ |
||||
argsIgnorePattern: '^_', |
||||
varsIgnorePattern: '^_' |
||||
} |
||||
], |
||||
'space-before-function-paren': 'off', |
||||
|
||||
'vue/attributes-order': 'off', |
||||
'vue/one-component-per-file': 'off', |
||||
'vue/html-closing-bracket-newline': 'off', |
||||
'vue/max-attributes-per-line': 'off', |
||||
'vue/multiline-html-element-content-newline': 'off', |
||||
'vue/singleline-html-element-content-newline': 'off', |
||||
'vue/attribute-hyphenation': 'off', |
||||
'vue/require-default-prop': 'off', |
||||
'vue/require-explicit-emits': 'off', |
||||
'vue/html-self-closing': [ |
||||
'error', |
||||
{ |
||||
html: { |
||||
void: 'always', |
||||
normal: 'never', |
||||
component: 'always' |
||||
'@typescript-eslint/no-floating-promises': 'off', |
||||
'@typescript-eslint/no-unsafe-assignment': 'off', |
||||
'no-case-declarations': 'off', |
||||
'no-console': 'off', |
||||
'n/prefer-global/process': 'off', |
||||
}, |
||||
svg: 'always', |
||||
math: 'always' |
||||
} |
||||
], |
||||
'vue/multi-word-component-names': 'off' |
||||
} |
||||
} |
||||
|
@ -1,8 +0,0 @@
|
||||
// .lintstagedrc.js
|
||||
module.exports = { |
||||
'*.js': ['prettier --config prettier.config.js --write', 'eslint --fix --ext .js'], |
||||
'*.ts': ['prettier --config prettier.config.js --write', 'eslint --fix --ext .ts'], |
||||
'*.vue': ['prettier --config prettier.config.js --write', 'eslint --fix --ext .vue'], |
||||
'*.tsx': ['prettier --config prettier.config.js --write', 'eslint --fix --ext .tsx'], |
||||
'*.json': 'prettier --config prettier.config.js --write' |
||||
} |
@ -1,37 +0,0 @@
|
||||
module.exports = { |
||||
// 一行代码的最大字符数,默认是80
|
||||
printWidth: 140, |
||||
// tab宽度为2空格
|
||||
tabWidth: 2, |
||||
// 使用tab缩进,默认false
|
||||
useTabs: false, |
||||
// 结尾是否添加分号, 默认true
|
||||
semi: false, |
||||
// vue script和style标签中是否缩进,开启可能会破坏编辑器的代码折叠
|
||||
vueIndentScriptAndStyle: false, |
||||
// 使用单引号, 默认false(在jsx中配置无效, 默认都是双引号)
|
||||
singleQuote: true, |
||||
// object对象中key值是否加引号 as-needed只有在需求要的情况下加引号,consistent是有一个需要引号就统一加,preserve是保留用户输入的引号
|
||||
quoteProps: 'as-needed', |
||||
// object对象里面的key和value值和括号间的空格
|
||||
bracketSpacing: true, |
||||
// 行尾逗号,默认none,可选 none|es5|all
|
||||
// es5 包括es5中的数组、对象
|
||||
// all 包括函数对象等所有可选
|
||||
trailingComma: 'none', |
||||
// 在jsx文件中的引号需要单独设置 默认false
|
||||
jsxSingleQuote: false, |
||||
// 箭头函数单个参数的情况是否省略括号,默认always是总是带括号
|
||||
// avoid 能省略括号的时候就省略 例如x => x
|
||||
// always 总是有括号
|
||||
arrowParens: 'always', |
||||
insertPragma: false, |
||||
requirePragma: false, |
||||
proseWrap: 'never', |
||||
htmlWhitespaceSensitivity: 'strict', |
||||
// endOfLine: "<lf|crlf|cr|auto>" 行尾换行符,默认是lf
|
||||
endOfLine: 'auto', |
||||
// range是format执行的范围,可以选执行一个文件的一部分,默认的设置是整个文件
|
||||
rangeStart: 0, |
||||
rangeEnd: Infinity |
||||
} |
@ -1,9 +1,9 @@
|
||||
export type UserLoginVO = { |
||||
export interface UserLoginVO { |
||||
username: string |
||||
password: string |
||||
captchaVerification: string |
||||
} |
||||
|
||||
export type TentantNameVO = { |
||||
export interface TentantNameVO { |
||||
id: number |
||||
} |
||||
|
@ -1,11 +1,13 @@
|
||||
<template> |
||||
<span :class="$attrs.class"> |
||||
<Icon :icon="icon" /> |
||||
</span> |
||||
</template> |
||||
<script lang="ts" setup> |
||||
import { Icon } from '@/components/Icon' |
||||
|
||||
defineProps({ |
||||
icon: String |
||||
icon: String, |
||||
}) |
||||
</script> |
||||
|
||||
<template> |
||||
<span :class="$attrs.class"> |
||||
<Icon :icon="icon" /> |
||||
</span> |
||||
</template> |
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in new issue