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 | 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
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
src/components/Menu/src/BasicMenu.vue
src/components/SimpleMenu/src/components/SubMenuItem.vue
src/components/Table/src/components/settings/ColumnSetting.vue
src/layouts/default/header/components/user-dropdown/DropMenuItem.vue
src/layouts/default/sider/MixSider.vue
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
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
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': [ |
... | ... |