Skip to content

Commit

Permalink
chore: update @jsxiaosi/eslint-config-vue
Browse files Browse the repository at this point in the history
  • Loading branch information
jsxiaosi committed Oct 17, 2022
1 parent ad9995b commit 4fbdd60
Show file tree
Hide file tree
Showing 44 changed files with 250 additions and 90 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"@ehutch79/vite-eslint": "^0.0.1",
"@jsxiaosi/eslint-config-vue": "^0.0.4",
"@jsxiaosi/eslint-config-vue": "^0.0.6",
"@types/core-js": "^2.5.5",
"@types/crypto-js": "^4.1.1",
"@types/intro.js": "^5.1.0",
Expand Down
183 changes: 173 additions & 10 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/Application/AppAccount.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { useRouter } from 'vue-router';
import { usePermissionStoreHook } from '@/store/modules/permission';
import { removeStorage } from '@/utils/storage';
import { useRouter } from 'vue-router';
const router = useRouter();
const command = (value: string) => {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Application/AppTheme.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import SvgIcon from '../SvgIcon/index.vue';
import { useColorMode } from '@vueuse/core';
import SvgIcon from '../SvgIcon/index.vue';
import { useAppStoreHook } from '@/store/modules/app';
const appStore = useAppStoreHook();
Expand Down
2 changes: 1 addition & 1 deletion src/components/Application/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { withInstall } from '@/utils';
import appLocale from './AppLocale.vue';
import appTheme from './AppTheme.vue';
import appAccount from './AppAccount.vue';
import { withInstall } from '@/utils';

export const AppLocale = withInstall(appLocale);
export const AppTheme = withInstall(appTheme);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Form/src/components/FormItem.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="tsx">
import { getSlot } from '@/utils/slotsHelper';
import type { DefineComponent, PropType } from 'vue';
import { defineComponent, resolveComponent } from 'vue';
import { elComponentItem } from '../../componentMap';
import type { FormItemListProps } from '../../types/from';
import { getSlot } from '@/utils/slotsHelper';
export default defineComponent({
props: {
formItem: {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/src/components/TableChild.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="tsx">
import { getSlot } from '@/utils/slotsHelper';
import type { PropType } from 'vue';
import { defineComponent } from 'vue';
import { getSlot } from '@/utils/slotsHelper';
export default defineComponent({
name: 'CtTableItem',
Expand Down
2 changes: 1 addition & 1 deletion src/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { App } from 'vue';
import { getConfigInfo } from '@/server/config';
import type { AppConfig } from '@/store/types';
import { setStorageConfig } from '@/utils/storage';
import type { App } from 'vue';

let config: AppConfig = {} as AppConfig;

Expand Down
2 changes: 1 addition & 1 deletion src/hooks/web/useI18n.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import i18n, { availableLocales } from '@/locales/index';
import zh_Cn from 'element-plus/lib/locale/lang/zh-cn';
import en from 'element-plus/lib/locale/lang/en';
import { computed } from 'vue';
import i18n, { availableLocales } from '@/locales/index';

export const useI18n = () => i18n.global;

Expand Down
2 changes: 1 addition & 1 deletion src/layouts/pageLayouts/components/AppMain/index.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script setup lang="ts">
import { usePermissionStoreHook } from '@/store/modules/permission';
import { computed } from 'vue';
import { usePermissionStoreHook } from '@/store/modules/permission';
const getInclude = computed<string[]>(() => {
return usePermissionStoreHook().cachePageList as string[];
});
Expand Down
Loading

0 comments on commit 4fbdd60

Please sign in to comment.