Commit 414101613e15635683e378f7ed7e9b1d8f20f757
1 parent
21bae3ad
chore: lint fix
Showing
18 changed files
with
49 additions
and
59 deletions
package.json
@@ -122,8 +122,10 @@ | @@ -122,8 +122,10 @@ | ||
122 | "stylelint-config-html": "^1.0.0", | 122 | "stylelint-config-html": "^1.0.0", |
123 | "stylelint-config-prettier": "^9.0.3", | 123 | "stylelint-config-prettier": "^9.0.3", |
124 | "stylelint-config-recommended": "^7.0.0", | 124 | "stylelint-config-recommended": "^7.0.0", |
125 | + "stylelint-config-recommended-vue": "^1.3.0", | ||
125 | "stylelint-config-standard": "^25.0.0", | 126 | "stylelint-config-standard": "^25.0.0", |
126 | "stylelint-order": "^5.0.0", | 127 | "stylelint-order": "^5.0.0", |
128 | + "stylelint-processor-html": "^1.0.0", | ||
127 | "ts-node": "^10.7.0", | 129 | "ts-node": "^10.7.0", |
128 | "typescript": "^4.6.2", | 130 | "typescript": "^4.6.2", |
129 | "vite": "^2.9.0-beta.3", | 131 | "vite": "^2.9.0-beta.3", |
pnpm-lock.yaml
@@ -86,8 +86,10 @@ specifiers: | @@ -86,8 +86,10 @@ specifiers: | ||
86 | stylelint-config-html: ^1.0.0 | 86 | stylelint-config-html: ^1.0.0 |
87 | stylelint-config-prettier: ^9.0.3 | 87 | stylelint-config-prettier: ^9.0.3 |
88 | stylelint-config-recommended: ^7.0.0 | 88 | stylelint-config-recommended: ^7.0.0 |
89 | + stylelint-config-recommended-vue: ^1.3.0 | ||
89 | stylelint-config-standard: ^25.0.0 | 90 | stylelint-config-standard: ^25.0.0 |
90 | stylelint-order: ^5.0.0 | 91 | stylelint-order: ^5.0.0 |
92 | + stylelint-processor-html: ^1.0.0 | ||
91 | tinymce: ^5.10.3 | 93 | tinymce: ^5.10.3 |
92 | ts-node: ^10.7.0 | 94 | ts-node: ^10.7.0 |
93 | typescript: ^4.6.2 | 95 | typescript: ^4.6.2 |
@@ -205,8 +207,10 @@ devDependencies: | @@ -205,8 +207,10 @@ devDependencies: | ||
205 | stylelint-config-html: 1.0.0_f552817e5b8b1b7dca381d844218922e | 207 | stylelint-config-html: 1.0.0_f552817e5b8b1b7dca381d844218922e |
206 | stylelint-config-prettier: 9.0.3_stylelint@14.6.0 | 208 | stylelint-config-prettier: 9.0.3_stylelint@14.6.0 |
207 | stylelint-config-recommended: 7.0.0_stylelint@14.6.0 | 209 | stylelint-config-recommended: 7.0.0_stylelint@14.6.0 |
210 | + stylelint-config-recommended-vue: 1.3.0_f552817e5b8b1b7dca381d844218922e | ||
208 | stylelint-config-standard: 25.0.0_stylelint@14.6.0 | 211 | stylelint-config-standard: 25.0.0_stylelint@14.6.0 |
209 | stylelint-order: 5.0.0_stylelint@14.6.0 | 212 | stylelint-order: 5.0.0_stylelint@14.6.0 |
213 | + stylelint-processor-html: 1.0.0 | ||
210 | ts-node: 10.7.0_e79e62fe450383fd2d418267dc75e645 | 214 | ts-node: 10.7.0_e79e62fe450383fd2d418267dc75e645 |
211 | typescript: 4.6.2 | 215 | typescript: 4.6.2 |
212 | vite: 2.9.0-beta.3_less@4.1.2 | 216 | vite: 2.9.0-beta.3_less@4.1.2 |
@@ -9086,6 +9090,20 @@ packages: | @@ -9086,6 +9090,20 @@ packages: | ||
9086 | stylelint: 14.6.0 | 9090 | stylelint: 14.6.0 |
9087 | dev: true | 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 | /stylelint-config-recommended/7.0.0_stylelint@14.6.0: | 9107 | /stylelint-config-recommended/7.0.0_stylelint@14.6.0: |
9090 | resolution: {integrity: sha512-yGn84Bf/q41J4luis1AZ95gj0EQwRX8lWmGmBwkwBNSkpGSpl66XcPTulxGa/Z91aPoNGuIGBmFkcM1MejMo9Q==} | 9108 | resolution: {integrity: sha512-yGn84Bf/q41J4luis1AZ95gj0EQwRX8lWmGmBwkwBNSkpGSpl66XcPTulxGa/Z91aPoNGuIGBmFkcM1MejMo9Q==} |
9091 | peerDependencies: | 9109 | peerDependencies: |
@@ -9113,6 +9131,13 @@ packages: | @@ -9113,6 +9131,13 @@ packages: | ||
9113 | stylelint: 14.6.0 | 9131 | stylelint: 14.6.0 |
9114 | dev: true | 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 | /stylelint/14.6.0: | 9141 | /stylelint/14.6.0: |
9117 | resolution: {integrity: sha512-Xk2sqXYPi9nXgq70nBiZkbQm/QOOKd83NBTaBE1fXEWAEeRlgHnKC/E7kJFlT6K0SaNDOK5yIvR7GFPGsNLuOg==} | 9142 | resolution: {integrity: sha512-Xk2sqXYPi9nXgq70nBiZkbQm/QOOKd83NBTaBE1fXEWAEeRlgHnKC/E7kJFlT6K0SaNDOK5yIvR7GFPGsNLuOg==} |
9118 | engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} | 9143 | engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} |
src/components/Application/src/AppLocalePicker.vue
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | :trigger="['click']" | 8 | :trigger="['click']" |
9 | :dropMenuList="localeList" | 9 | :dropMenuList="localeList" |
10 | :selectedKeys="selectedKeys" | 10 | :selectedKeys="selectedKeys" |
11 | - @menuEvent="handleMenuEvent" | 11 | + @menu-event="handleMenuEvent" |
12 | overlayClassName="app-locale-picker-overlay" | 12 | overlayClassName="app-locale-picker-overlay" |
13 | > | 13 | > |
14 | <span class="cursor-pointer flex items-center"> | 14 | <span class="cursor-pointer flex items-center"> |
src/components/Cropper/src/CropperAvatar.vue
@@ -22,7 +22,7 @@ | @@ -22,7 +22,7 @@ | ||
22 | 22 | ||
23 | <CopperModal | 23 | <CopperModal |
24 | @register="register" | 24 | @register="register" |
25 | - @uploadSuccess="handleUploadSuccess" | 25 | + @upload-success="handleUploadSuccess" |
26 | :uploadApi="uploadApi" | 26 | :uploadApi="uploadApi" |
27 | :src="sourceValue" | 27 | :src="sourceValue" |
28 | /> | 28 | /> |
src/components/Icon/src/IconPicker.vue
@@ -31,18 +31,7 @@ | @@ -31,18 +31,7 @@ | ||
31 | v-for="icon in getPaginationList" | 31 | v-for="icon in getPaginationList" |
32 | :key="icon" | 32 | :key="icon" |
33 | :class="currentSelect === icon ? 'border border-primary' : ''" | 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 | @click="handleClick(icon)" | 35 | @click="handleClick(icon)" |
47 | :title="icon" | 36 | :title="icon" |
48 | > | 37 | > |
src/components/Markdown/src/MarkdownViewer.vue
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | </template> | 4 | </template> |
5 | 5 | ||
6 | <script lang="ts" setup> | 6 | <script lang="ts" setup> |
7 | - import { computed,defineProps } from 'vue'; | 7 | + import { computed, defineProps } from 'vue'; |
8 | import showdown from 'showdown'; | 8 | import showdown from 'showdown'; |
9 | 9 | ||
10 | const converter = new showdown.Converter(); | 10 | const converter = new showdown.Converter(); |
src/components/Menu/src/BasicMenu.vue
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | :openKeys="getOpenKeys" | 6 | :openKeys="getOpenKeys" |
7 | :inlineIndent="inlineIndent" | 7 | :inlineIndent="inlineIndent" |
8 | :theme="theme" | 8 | :theme="theme" |
9 | - @openChange="handleOpenChange" | 9 | + @open-change="handleOpenChange" |
10 | :class="getMenuClass" | 10 | :class="getMenuClass" |
11 | @click="handleMenuClick" | 11 | @click="handleMenuClick" |
12 | :subMenuOpenDelay="0.2" | 12 | :subMenuOpenDelay="0.2" |
src/components/SimpleMenu/src/components/SubMenuItem.vue
@@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
21 | :overlayClassName="`${prefixCls}-menu-popover`" | 21 | :overlayClassName="`${prefixCls}-menu-popover`" |
22 | v-else | 22 | v-else |
23 | :visible="getIsOpend" | 23 | :visible="getIsOpend" |
24 | - @visibleChange="handleVisibleChange" | 24 | + @visible-change="handleVisibleChange" |
25 | :overlayStyle="getOverlayStyle" | 25 | :overlayStyle="getOverlayStyle" |
26 | :align="{ offset: [0, 0] }" | 26 | :align="{ offset: [0, 0] }" |
27 | > | 27 | > |
src/components/Table/src/components/settings/ColumnSetting.vue
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | <Popover | 6 | <Popover |
7 | placement="bottomLeft" | 7 | placement="bottomLeft" |
8 | trigger="click" | 8 | trigger="click" |
9 | - @visibleChange="handleVisibleChange" | 9 | + @visible-change="handleVisibleChange" |
10 | :overlayClassName="`${prefixCls}__cloumn-list`" | 10 | :overlayClassName="`${prefixCls}__cloumn-list`" |
11 | :getPopupContainer="getPopupContainer" | 11 | :getPopupContainer="getPopupContainer" |
12 | > | 12 | > |
src/layouts/default/header/components/user-dropdown/DropMenuItem.vue
@@ -18,6 +18,7 @@ | @@ -18,6 +18,7 @@ | ||
18 | name: 'DropdownMenuItem', | 18 | name: 'DropdownMenuItem', |
19 | components: { MenuItem: Menu.Item, Icon }, | 19 | components: { MenuItem: Menu.Item, Icon }, |
20 | props: { | 20 | props: { |
21 | + // eslint-disable-next-line | ||
21 | key: propTypes.string, | 22 | key: propTypes.string, |
22 | text: propTypes.string, | 23 | text: propTypes.string, |
23 | icon: propTypes.string, | 24 | icon: propTypes.string, |
src/layouts/default/sider/MixSider.vue
@@ -66,7 +66,7 @@ | @@ -66,7 +66,7 @@ | ||
66 | :items="childrenMenus" | 66 | :items="childrenMenus" |
67 | :theme="getMenuTheme" | 67 | :theme="getMenuTheme" |
68 | mixSider | 68 | mixSider |
69 | - @menuClick="handleMenuClick" | 69 | + @menu-click="handleMenuClick" |
70 | /> | 70 | /> |
71 | </ScrollContainer> | 71 | </ScrollContainer> |
72 | <div | 72 | <div |
src/layouts/default/tabs/components/TabContent.vue
1 | <template> | 1 | <template> |
2 | - <Dropdown :dropMenuList="getDropMenuList" :trigger="getTrigger" @menuEvent="handleMenuEvent"> | 2 | + <Dropdown :dropMenuList="getDropMenuList" :trigger="getTrigger" @menu-event="handleMenuEvent"> |
3 | <div :class="`${prefixCls}__info`" @contextmenu="handleContext" v-if="getIsTabs"> | 3 | <div :class="`${prefixCls}__info`" @contextmenu="handleContext" v-if="getIsTabs"> |
4 | <span class="ml-1">{{ getTitle }}</span> | 4 | <span class="ml-1">{{ getTitle }}</span> |
5 | </div> | 5 | </div> |
src/views/dashboard/analysis/components/SiteAnalysis.vue
@@ -3,7 +3,7 @@ | @@ -3,7 +3,7 @@ | ||
3 | :tab-list="tabListTitle" | 3 | :tab-list="tabListTitle" |
4 | v-bind="$attrs" | 4 | v-bind="$attrs" |
5 | :active-tab-key="activeKey" | 5 | :active-tab-key="activeKey" |
6 | - @tabChange="onTabChange" | 6 | + @tab-change="onTabChange" |
7 | > | 7 | > |
8 | <p v-if="activeKey === 'tab1'"> | 8 | <p v-if="activeKey === 'tab1'"> |
9 | <VisitAnalysis /> | 9 | <VisitAnalysis /> |
src/views/demo/comp/card-list/index.vue
1 | <template> | 1 | <template> |
2 | <PageWrapper title="卡片列表示例" content="基础封装"> | 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 | <template #header> | 4 | <template #header> |
5 | <Button type="primary" color="error"> 按钮1 </Button> | 5 | <Button type="primary" color="error"> 按钮1 </Button> |
6 | <Button type="primary" color="success"> 按钮2 </Button> | 6 | <Button type="primary" color="success"> 按钮2 </Button> |
src/views/demo/feat/click-out-side/index.vue
1 | <template> | 1 | <template> |
2 | <PageWrapper title="点内外部触发事件"> | 2 | <PageWrapper title="点内外部触发事件"> |
3 | - <ClickOutSide @clickOutside="handleClickOutside" class="flex justify-center"> | 3 | + <ClickOutSide @click-outside="handleClickOutside" class="flex justify-center"> |
4 | <div @click="innerClick" class="demo-box"> | 4 | <div @click="innerClick" class="demo-box"> |
5 | {{ text }} | 5 | {{ text }} |
6 | </div> | 6 | </div> |
src/views/sys/lock/LockPage.vue
@@ -5,23 +5,7 @@ | @@ -5,23 +5,7 @@ | ||
5 | > | 5 | > |
6 | <div | 6 | <div |
7 | :class="`${prefixCls}__unlock`" | 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 | @click="handleShowForm(false)" | 9 | @click="handleShowForm(false)" |
26 | v-show="showDate" | 10 | v-show="showDate" |
27 | > | 11 | > |
src/views/sys/login/Login.vue
@@ -32,23 +32,7 @@ | @@ -32,23 +32,7 @@ | ||
32 | <div class="flex w-full h-full py-5 xl:h-auto xl:py-0 xl:my-0 xl:w-6/12"> | 32 | <div class="flex w-full h-full py-5 xl:h-auto xl:py-0 xl:my-0 xl:w-6/12"> |
33 | <div | 33 | <div |
34 | :class="`${prefixCls}-form`" | 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 | <LoginForm /> | 37 | <LoginForm /> |
54 | <ForgetPasswordForm /> | 38 | <ForgetPasswordForm /> |
stylelint.config.js
1 | module.exports = { | 1 | module.exports = { |
2 | root: true, | 2 | root: true, |
3 | plugins: ['stylelint-order'], | 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 | rules: { | 11 | rules: { |
7 | 'selector-class-pattern': null, | 12 | 'selector-class-pattern': null, |
8 | 'selector-pseudo-class-no-unknown': [ | 13 | 'selector-pseudo-class-no-unknown': [ |