Commit 414101613e15635683e378f7ed7e9b1d8f20f757

Authored by vben
1 parent 21bae3ad

chore: lint fix

package.json
... ... @@ -122,8 +122,10 @@
122 122 "stylelint-config-html": "^1.0.0",
123 123 "stylelint-config-prettier": "^9.0.3",
124 124 "stylelint-config-recommended": "^7.0.0",
  125 + "stylelint-config-recommended-vue": "^1.3.0",
125 126 "stylelint-config-standard": "^25.0.0",
126 127 "stylelint-order": "^5.0.0",
  128 + "stylelint-processor-html": "^1.0.0",
127 129 "ts-node": "^10.7.0",
128 130 "typescript": "^4.6.2",
129 131 "vite": "^2.9.0-beta.3",
... ...
pnpm-lock.yaml
... ... @@ -86,8 +86,10 @@ specifiers:
86 86 stylelint-config-html: ^1.0.0
87 87 stylelint-config-prettier: ^9.0.3
88 88 stylelint-config-recommended: ^7.0.0
  89 + stylelint-config-recommended-vue: ^1.3.0
89 90 stylelint-config-standard: ^25.0.0
90 91 stylelint-order: ^5.0.0
  92 + stylelint-processor-html: ^1.0.0
91 93 tinymce: ^5.10.3
92 94 ts-node: ^10.7.0
93 95 typescript: ^4.6.2
... ... @@ -205,8 +207,10 @@ devDependencies:
205 207 stylelint-config-html: 1.0.0_f552817e5b8b1b7dca381d844218922e
206 208 stylelint-config-prettier: 9.0.3_stylelint@14.6.0
207 209 stylelint-config-recommended: 7.0.0_stylelint@14.6.0
  210 + stylelint-config-recommended-vue: 1.3.0_f552817e5b8b1b7dca381d844218922e
208 211 stylelint-config-standard: 25.0.0_stylelint@14.6.0
209 212 stylelint-order: 5.0.0_stylelint@14.6.0
  213 + stylelint-processor-html: 1.0.0
210 214 ts-node: 10.7.0_e79e62fe450383fd2d418267dc75e645
211 215 typescript: 4.6.2
212 216 vite: 2.9.0-beta.3_less@4.1.2
... ... @@ -9086,6 +9090,20 @@ packages:
9086 9090 stylelint: 14.6.0
9087 9091 dev: true
9088 9092  
  9093 + /stylelint-config-recommended-vue/1.3.0_f552817e5b8b1b7dca381d844218922e:
  9094 + resolution: {integrity: sha512-UEY/MZlBO2yiQdZoJm33trtqJ1MEDzBADhIAM0pTvfYbyXe5KwdbTtmALHETG1cXfDxuuUbJTvL9uENMy2Rjug==}
  9095 + engines: {node: ^12 || >=14}
  9096 + peerDependencies:
  9097 + postcss-html: ^1.0.0
  9098 + stylelint: '>=14.0.0'
  9099 + dependencies:
  9100 + postcss-html: 1.3.0
  9101 + semver: 7.3.5
  9102 + stylelint: 14.6.0
  9103 + stylelint-config-html: 1.0.0_f552817e5b8b1b7dca381d844218922e
  9104 + stylelint-config-recommended: 7.0.0_stylelint@14.6.0
  9105 + dev: true
  9106 +
9089 9107 /stylelint-config-recommended/7.0.0_stylelint@14.6.0:
9090 9108 resolution: {integrity: sha512-yGn84Bf/q41J4luis1AZ95gj0EQwRX8lWmGmBwkwBNSkpGSpl66XcPTulxGa/Z91aPoNGuIGBmFkcM1MejMo9Q==}
9091 9109 peerDependencies:
... ... @@ -9113,6 +9131,13 @@ packages:
9113 9131 stylelint: 14.6.0
9114 9132 dev: true
9115 9133  
  9134 + /stylelint-processor-html/1.0.0:
  9135 + resolution: {integrity: sha1-aJK2soVaRfApHNhFGR1pCBMKKRg=}
  9136 + deprecated: 'Please use stylelint-processor-arbitrary-tags https://github.com/mapbox/stylelint-processor-arbitrary-tags '
  9137 + dependencies:
  9138 + htmlparser2: 3.10.1
  9139 + dev: true
  9140 +
9116 9141 /stylelint/14.6.0:
9117 9142 resolution: {integrity: sha512-Xk2sqXYPi9nXgq70nBiZkbQm/QOOKd83NBTaBE1fXEWAEeRlgHnKC/E7kJFlT6K0SaNDOK5yIvR7GFPGsNLuOg==}
9118 9143 engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0}
... ...
src/components/Application/src/AppLocalePicker.vue
... ... @@ -8,7 +8,7 @@
8 8 :trigger="['click']"
9 9 :dropMenuList="localeList"
10 10 :selectedKeys="selectedKeys"
11   - @menuEvent="handleMenuEvent"
  11 + @menu-event="handleMenuEvent"
12 12 overlayClassName="app-locale-picker-overlay"
13 13 >
14 14 <span class="cursor-pointer flex items-center">
... ...
src/components/Cropper/src/CropperAvatar.vue
... ... @@ -22,7 +22,7 @@
22 22  
23 23 <CopperModal
24 24 @register="register"
25   - @uploadSuccess="handleUploadSuccess"
  25 + @upload-success="handleUploadSuccess"
26 26 :uploadApi="uploadApi"
27 27 :src="sourceValue"
28 28 />
... ...
src/components/Icon/src/IconPicker.vue
... ... @@ -31,18 +31,7 @@
31 31 v-for="icon in getPaginationList"
32 32 :key="icon"
33 33 :class="currentSelect === icon ? 'border border-primary' : ''"
34   - class="
35   - p-2
36   - w-1/8
37   - cursor-pointer
38   - mr-1
39   - mt-1
40   - flex
41   - justify-center
42   - items-center
43   - border border-solid
44   - hover:border-primary
45   - "
  34 + class="p-2 w-1/8 cursor-pointer mr-1 mt-1 flex justify-center items-center border border-solid hover:border-primary"
46 35 @click="handleClick(icon)"
47 36 :title="icon"
48 37 >
... ...
src/components/Markdown/src/MarkdownViewer.vue
... ... @@ -4,7 +4,7 @@
4 4 </template>
5 5  
6 6 <script lang="ts" setup>
7   - import { computed,defineProps } from 'vue';
  7 + import { computed, defineProps } from 'vue';
8 8 import showdown from 'showdown';
9 9  
10 10 const converter = new showdown.Converter();
... ...
src/components/Menu/src/BasicMenu.vue
... ... @@ -6,7 +6,7 @@
6 6 :openKeys="getOpenKeys"
7 7 :inlineIndent="inlineIndent"
8 8 :theme="theme"
9   - @openChange="handleOpenChange"
  9 + @open-change="handleOpenChange"
10 10 :class="getMenuClass"
11 11 @click="handleMenuClick"
12 12 :subMenuOpenDelay="0.2"
... ...
src/components/SimpleMenu/src/components/SubMenuItem.vue
... ... @@ -21,7 +21,7 @@
21 21 :overlayClassName="`${prefixCls}-menu-popover`"
22 22 v-else
23 23 :visible="getIsOpend"
24   - @visibleChange="handleVisibleChange"
  24 + @visible-change="handleVisibleChange"
25 25 :overlayStyle="getOverlayStyle"
26 26 :align="{ offset: [0, 0] }"
27 27 >
... ...
src/components/Table/src/components/settings/ColumnSetting.vue
... ... @@ -6,7 +6,7 @@
6 6 <Popover
7 7 placement="bottomLeft"
8 8 trigger="click"
9   - @visibleChange="handleVisibleChange"
  9 + @visible-change="handleVisibleChange"
10 10 :overlayClassName="`${prefixCls}__cloumn-list`"
11 11 :getPopupContainer="getPopupContainer"
12 12 >
... ...
src/layouts/default/header/components/user-dropdown/DropMenuItem.vue
... ... @@ -18,6 +18,7 @@
18 18 name: 'DropdownMenuItem',
19 19 components: { MenuItem: Menu.Item, Icon },
20 20 props: {
  21 + // eslint-disable-next-line
21 22 key: propTypes.string,
22 23 text: propTypes.string,
23 24 icon: propTypes.string,
... ...
src/layouts/default/sider/MixSider.vue
... ... @@ -66,7 +66,7 @@
66 66 :items="childrenMenus"
67 67 :theme="getMenuTheme"
68 68 mixSider
69   - @menuClick="handleMenuClick"
  69 + @menu-click="handleMenuClick"
70 70 />
71 71 </ScrollContainer>
72 72 <div
... ...
src/layouts/default/tabs/components/TabContent.vue
1 1 <template>
2   - <Dropdown :dropMenuList="getDropMenuList" :trigger="getTrigger" @menuEvent="handleMenuEvent">
  2 + <Dropdown :dropMenuList="getDropMenuList" :trigger="getTrigger" @menu-event="handleMenuEvent">
3 3 <div :class="`${prefixCls}__info`" @contextmenu="handleContext" v-if="getIsTabs">
4 4 <span class="ml-1">{{ getTitle }}</span>
5 5 </div>
... ...
src/views/dashboard/analysis/components/SiteAnalysis.vue
... ... @@ -3,7 +3,7 @@
3 3 :tab-list="tabListTitle"
4 4 v-bind="$attrs"
5 5 :active-tab-key="activeKey"
6   - @tabChange="onTabChange"
  6 + @tab-change="onTabChange"
7 7 >
8 8 <p v-if="activeKey === 'tab1'">
9 9 <VisitAnalysis />
... ...
src/views/demo/comp/card-list/index.vue
1 1 <template>
2 2 <PageWrapper title="卡片列表示例" content="基础封装">
3   - <CardList :params="params" :api="demoListApi" @getMethod="getMethod" @delete="handleDel">
  3 + <CardList :params="params" :api="demoListApi" @get-method="getMethod" @delete="handleDel">
4 4 <template #header>
5 5 <Button type="primary" color="error"> 按钮1 </Button>
6 6 <Button type="primary" color="success"> 按钮2 </Button>
... ...
src/views/demo/feat/click-out-side/index.vue
1 1 <template>
2 2 <PageWrapper title="点内外部触发事件">
3   - <ClickOutSide @clickOutside="handleClickOutside" class="flex justify-center">
  3 + <ClickOutSide @click-outside="handleClickOutside" class="flex justify-center">
4 4 <div @click="innerClick" class="demo-box">
5 5 {{ text }}
6 6 </div>
... ...
src/views/sys/lock/LockPage.vue
... ... @@ -5,23 +5,7 @@
5 5 >
6 6 <div
7 7 :class="`${prefixCls}__unlock`"
8   - class="
9   - absolute
10   - top-0
11   - left-1/2
12   - flex
13   - pt-5
14   - h-16
15   - items-center
16   - justify-center
17   - sm:text-md
18   - xl:text-xl
19   - text-white
20   - flex-col
21   - cursor-pointer
22   - transform
23   - translate-x-1/2
24   - "
  8 + class="absolute top-0 left-1/2 flex pt-5 h-16 items-center justify-center sm:text-md xl:text-xl text-white flex-col cursor-pointer transform translate-x-1/2"
25 9 @click="handleShowForm(false)"
26 10 v-show="showDate"
27 11 >
... ...
src/views/sys/login/Login.vue
... ... @@ -32,23 +32,7 @@
32 32 <div class="flex w-full h-full py-5 xl:h-auto xl:py-0 xl:my-0 xl:w-6/12">
33 33 <div
34 34 :class="`${prefixCls}-form`"
35   - class="
36   - relative
37   - w-full
38   - px-5
39   - py-8
40   - mx-auto
41   - my-auto
42   - rounded-md
43   - shadow-md
44   - xl:ml-16 xl:bg-transparent
45   - sm:px-8
46   - xl:p-4 xl:shadow-none
47   - sm:w-3/4
48   - lg:w-2/4
49   - xl:w-auto
50   - enter-x
51   - "
  35 + class="relative w-full px-5 py-8 mx-auto my-auto rounded-md shadow-md xl:ml-16 xl:bg-transparent sm:px-8 xl:p-4 xl:shadow-none sm:w-3/4 lg:w-2/4 xl:w-auto enter-x"
52 36 >
53 37 <LoginForm />
54 38 <ForgetPasswordForm />
... ...
stylelint.config.js
1 1 module.exports = {
2 2 root: true,
3 3 plugins: ['stylelint-order'],
4   - customSyntax: 'postcss-html',
5   - extends: ['stylelint-config-standard', 'stylelint-config-prettier'],
  4 + processors: ['stylelint-processor-html'],
  5 + extends: [
  6 + 'stylelint-config-standard',
  7 + 'stylelint-config-prettier',
  8 + 'stylelint-config-recommended-vue/less',
  9 + ],
  10 +
6 11 rules: {
7 12 'selector-class-pattern': null,
8 13 'selector-pseudo-class-no-unknown': [
... ...