Skip to content

Commit

Permalink
fix some issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jzfai committed Dec 2, 2022
1 parent 2622028 commit b690536
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions eslintrc/eslint-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,23 +131,23 @@ module.exports = defineConfig({
//fix lf error
'prettier/prettier': 'off',
// import
'import/first': 'error',
'import/no-duplicates': 'error',
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],

pathGroups: [
{
pattern: 'vue',
group: 'external',
position: 'before'
}
],
pathGroupsExcludedImportTypes: ['type']
}
],
// 'import/first': 'error',
// 'import/no-duplicates': 'error',
// 'import/order': [
// 'error',
// {
// groups: ['builtin', 'external', 'internal', 'parent', 'sibling', 'index', 'object', 'type'],
//
// pathGroups: [
// {
// pattern: 'vue',
// group: 'external',
// position: 'before'
// }
// ],
// pathGroupsExcludedImportTypes: ['type']
// }
// ],
'import/no-unresolved': 'off',
'import/namespace': 'off',
'import/default': 'off',
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/use-common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { ElMessage } from 'element-plus'
import { i18n } from '@/lang'
// the keys using zh file
import langEn from '@/lang/zh'
import settings from '@/settings'

export const sleepTimeout = (time: number) => {
return new Promise((resolve) => {
Expand All @@ -28,7 +29,6 @@ export const copyValueToClipboard = (value: any) => {
ElMessage.success('复制成功')
}
const { t, te } = i18n.global
import settings from '@/settings'
export const langTitle = (title) => {
if (!title) {
return settings.title
Expand Down

0 comments on commit b690536

Please sign in to comment.