Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b12266bb
authored
Jul 14, 2024
by
vince
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: lint error
1 parent
a5edb67b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
27 deletions
package.json
packages/@core/ui-kit/menu-ui/src/hooks/use-menu.ts
pnpm-lock.yaml
scripts/vsh/src/publint/index.ts
package.json
View file @
b12266b
...
...
@@ -87,7 +87,9 @@
"@ant-design/colors"
:
"^7.1.0"
,
"@ctrl/tinycolor"
:
"^4.1.0"
,
"clsx"
:
"^2.1.1"
,
"vue"
:
"^3.4.31"
"eslint"
:
"^8.57.0"
,
"vue"
:
"^3.4.31"
,
"zx"
:
"^7.2.3"
},
"neverBuiltDependencies"
:
[
"canvas"
,
...
...
packages/@core/ui-kit/menu-ui/src/hooks/use-menu.ts
View file @
b12266b
...
...
@@ -38,7 +38,7 @@ function useMenu() {
function
useMenuStyle
(
menu
?:
SubMenuProvider
)
{
const
subMenuStyle
=
computed
(()
=>
{
return
{
'--menu-level'
:
menu
?
menu
?.
level
??
0
+
1
:
0
,
'--menu-level'
:
menu
?
(
menu
?.
level
??
0
+
1
)
:
0
,
};
});
return
subMenuStyle
;
...
...
pnpm-lock.yaml
View file @
b12266b
...
...
@@ -8,7 +8,9 @@ overrides:
'
@ant-design/colors'
:
^7.1.0
'
@ctrl/tinycolor'
:
^4.1.0
clsx
:
^2.1.1
eslint
:
^8.57.0
vue
:
^3.4.31
zx
:
^7.2.3
importers
:
...
...
@@ -2873,7 +2875,7 @@ packages:
resolution
:
{
integrity
:
sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==
}
engines
:
{
node
:
^12.22.0 || ^14.17.0 || >=16.0.0
}
peerDependencies
:
eslint
:
^
6.0.0 || ^7.0.0 || >=8.0
.0
eslint
:
^
8.57
.0
'
@eslint-community/regexpp@4.11.0'
:
resolution
:
{
integrity
:
sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A==
}
...
...
@@ -3630,7 +3632,7 @@ packages:
engines
:
{
node
:
^18.18.0 || >=20.0.0
}
peerDependencies
:
'
@typescript-eslint/parser'
:
^7.0.0
eslint
:
^8.5
6
.0
eslint
:
^8.5
7
.0
typescript
:
'
*'
peerDependenciesMeta
:
typescript
:
...
...
@@ -3640,7 +3642,7 @@ packages:
resolution
:
{
integrity
:
sha512-ar9E+k7CU8rWi2e5ErzQiC93KKEFAXA2Kky0scAlPcxYblLt8+XZuHUZwlyfXILyQa95P6lQg+eZgh/dDs3+Vw==
}
engines
:
{
node
:
^18.18.0 || >=20.0.0
}
peerDependencies
:
eslint
:
^8.5
6
.0
eslint
:
^8.5
7
.0
typescript
:
'
*'
peerDependenciesMeta
:
typescript
:
...
...
@@ -3654,7 +3656,7 @@ packages:
resolution
:
{
integrity
:
sha512-j0fuUswUjDHfqV/UdW6mLtOQQseORqfdmoBNDFOqs9rvNVR2e+cmu6zJu/Ku4SDuqiJko6YnhwcL8x45r8Oqxg==
}
engines
:
{
node
:
^18.18.0 || >=20.0.0
}
peerDependencies
:
eslint
:
^8.5
6
.0
eslint
:
^8.5
7
.0
typescript
:
'
*'
peerDependenciesMeta
:
typescript
:
...
...
@@ -3677,7 +3679,7 @@ packages:
resolution
:
{
integrity
:
sha512-PqP4kP3hb4r7Jav+NiRCntlVzhxBNWq6ZQ+zQwII1y/G/1gdIPeYDCKr2+dH6049yJQsWZiHU6RlwvIFBXXGNA==
}
engines
:
{
node
:
^18.18.0 || >=20.0.0
}
peerDependencies
:
eslint
:
^8.5
6
.0
eslint
:
^8.5
7
.0
'
@typescript-eslint/visitor-keys@7.16.0'
:
resolution
:
{
integrity
:
sha512-rMo01uPy9C7XxG7AFsxa8zLnWXTF8N3PYclekWSrurvhwiw1eW88mrKiAYe6s53AUY57nTRz8dJsuuXdkAhzCg==
}
...
...
@@ -5160,18 +5162,18 @@ packages:
resolution
:
{
integrity
:
sha512-3z3vFexKIEnjHE3zCMRo6fn/e44U7T1khUjg+Hp0ZQMCigh28rALD0nPFBcGZuiLC5rLZa2ubQHDRln09JfU2Q==
}
engines
:
{
node
:
'
>=12'
}
peerDependencies
:
eslint
:
'
>=6.0.0'
eslint
:
^8.57.0
eslint-config-prettier@9.1.0
:
resolution
:
{
integrity
:
sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==
}
hasBin
:
true
peerDependencies
:
eslint
:
'
>=7.0.0'
eslint
:
^8.57.0
eslint-config-turbo@2.0.6
:
resolution
:
{
integrity
:
sha512-PkRjFnZUZWPcrYT4Xoi5OWOUtnn6xVGh88I6TsayiH4AQZuLs/MDmzfJRK+PiWIrI7Q7sbsVEQP+nUyyRE3uAw==
}
peerDependencies
:
eslint
:
'
>6.6.0'
eslint
:
^8.57.0
eslint-import-resolver-node@0.3.9
:
resolution
:
{
integrity
:
sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==
}
...
...
@@ -5200,43 +5202,43 @@ packages:
eslint-plugin-command@0.2.3
:
resolution
:
{
integrity
:
sha512-1bBYNfjZg60N2ZpLV5ATYSYyueIJ+zl5yKrTs0UFDdnyu07dNSZ7Xplnc+Wb6SXTdc1sIaoIrnuyhvztcltX6A==
}
peerDependencies
:
eslint
:
'
*'
eslint
:
^8.57.0
eslint-plugin-es-x@7.8.0
:
resolution
:
{
integrity
:
sha512-7Ds8+wAAoV3T+LAKeu39Y5BzXCrGKrcISfgKEqTS4BDN8SFEDQd0S43jiQ8vIa3wUKD07qitZdfzlenSi8/0qQ==
}
engines
:
{
node
:
^14.18.0 || >=16.0.0
}
peerDependencies
:
eslint
:
'
>=8'
eslint
:
^8.57.0
eslint-plugin-eslint-comments@3.2.0
:
resolution
:
{
integrity
:
sha512-0jkOl0hfojIHHmEHgmNdqv4fmh7300NdpA9FFpF7zaoLvB/QeXOGNLIo86oAveJFrfB1p05kC8hpEMHM8DwWVQ==
}
engines
:
{
node
:
'
>=6.5.0'
}
peerDependencies
:
eslint
:
'
>=4.19.1'
eslint
:
^8.57.0
eslint-plugin-i@2.29.1
:
resolution
:
{
integrity
:
sha512-ORizX37MelIWLbMyqI7hi8VJMf7A0CskMmYkB+lkCX3aF4pkGV7kwx5bSEb4qx7Yce2rAf9s34HqDRPjGRZPNQ==
}
engines
:
{
node
:
'
>=12'
}
peerDependencies
:
eslint
:
^
7.2.0 || ^8
eslint
:
^
8.57.0
eslint-plugin-jsdoc@48.7.0
:
resolution
:
{
integrity
:
sha512-5oiVf7Y+ZxGYQTlLq81X72n+S+hjvS/u0upAdbpPEeaIZILK3MKN8lm/6QqKioBjm/qZ0B5XpMQUtc2fUkqXAg==
}
engines
:
{
node
:
'
>=18'
}
peerDependencies
:
eslint
:
^
7.0.0 || ^8.0.0 || ^9.0
.0
eslint
:
^
8.57
.0
eslint-plugin-jsonc@2.16.0
:
resolution
:
{
integrity
:
sha512-Af/ZL5mgfb8FFNleH6KlO4/VdmDuTqmM+SPnWcdoWywTetv7kq+vQe99UyQb9XO3b0OWLVuTH7H0d/PXYCMdSg==
}
engines
:
{
node
:
^12.22.0 || ^14.17.0 || >=16.0.0
}
peerDependencies
:
eslint
:
'
>=6.0.0'
eslint
:
^8.57.0
eslint-plugin-n@17.9.0
:
resolution
:
{
integrity
:
sha512-CPSaXDXdrT4nsrOrO4mT4VB6FMUkoySRkHWuuJJHVqsIEjIeZgMY1H7AzSwPbDScikBmLN82KeM1u7ixV7PzGg==
}
engines
:
{
node
:
^18.18.0 || ^20.9.0 || >=21.1.0
}
peerDependencies
:
eslint
:
'
>=8.23.0'
eslint
:
^8.57.0
eslint-plugin-no-only-tests@3.1.0
:
resolution
:
{
integrity
:
sha512-Lf4YW/bL6Un1R6A76pRZyE1dl1vr31G/ev8UzIc/geCgFWyrKil8hVjYqWVKGB/UIGmb6Slzs9T0wNezdSVegw==
}
...
...
@@ -5246,7 +5248,7 @@ packages:
resolution
:
{
integrity
:
sha512-XrtBtiu5rbQv88gl+1e2RQud9te9luYNvKIgM9emttQ2zutHPzY/AQUucwxscDKV4qlTkvLTxjOFvxqeDpPorw==
}
peerDependencies
:
astro-eslint-parser
:
^1.0.2
eslint
:
'
>=8.0.0'
eslint
:
^8.57.0
svelte
:
'
>=3.0.0'
svelte-eslint-parser
:
^0.37.0
vue-eslint-parser
:
'
>=9.0.0'
...
...
@@ -5265,7 +5267,7 @@ packages:
engines
:
{
node
:
^14.18.0 || >=16.0.0
}
peerDependencies
:
'
@types/eslint'
:
'
>=8.0.0'
eslint
:
'
>=8.0.0'
eslint
:
^8.57.0
eslint-config-prettier
:
'
*'
prettier
:
'
>=3.0.0'
peerDependenciesMeta
:
...
...
@@ -5278,25 +5280,25 @@ packages:
resolution
:
{
integrity
:
sha512-FCL851+kislsTEQEMioAlpDuK5+E5vs0hi1bF8cFlPlHcEjeRhuAzEsGikXRreE+0j4WhW2uO54MqTjXtYOi3A==
}
engines
:
{
node
:
^18 || >=20
}
peerDependencies
:
eslint
:
'
>=8.44.0'
eslint
:
^8.57.0
eslint-plugin-turbo@2.0.6
:
resolution
:
{
integrity
:
sha512-yGnpMvyBxI09ZrF5bGpaniBz57MiExTCsRnNxP+JnbMFD+xU3jG3ukRzehVol8LYNdC/G7E4HoH+x7OEpoSGAQ==
}
peerDependencies
:
eslint
:
'
>6.6.0'
eslint
:
^8.57.0
eslint-plugin-unicorn@54.0.0
:
resolution
:
{
integrity
:
sha512-XxYLRiYtAWiAjPv6z4JREby1TAE2byBC7wlh0V4vWDCpccOSU1KovWV//jqPXF6bq3WKxqX9rdjoRQ1EhdmNdQ==
}
engines
:
{
node
:
'
>=18.18'
}
peerDependencies
:
eslint
:
'
>=8.56.0'
eslint
:
^8.57.0
eslint-plugin-unused-imports@4.0.0
:
resolution
:
{
integrity
:
sha512-mzM+y2B7XYpQryVa1usT+Y/BdNAtAZiXzwpSyDCboFoJN/LZRN67TNvQxKtuTK/Aplya3sLNQforiubzPPaIcQ==
}
engines
:
{
node
:
^18.18.0 || ^20.9.0 || >=21.1.0
}
peerDependencies
:
'
@typescript-eslint/eslint-plugin'
:
'
8'
eslint
:
'
9'
eslint
:
^8.57.0
peerDependenciesMeta
:
'
@typescript-eslint/eslint-plugin'
:
optional
:
true
...
...
@@ -5306,7 +5308,7 @@ packages:
engines
:
{
node
:
^18.0.0 || >= 20.0.0
}
peerDependencies
:
'
@typescript-eslint/eslint-plugin'
:
'
*'
eslint
:
^8.57.0
|| ^9.0.0
eslint
:
^8.57.0
vitest
:
'
*'
peerDependenciesMeta
:
'
@typescript-eslint/eslint-plugin'
:
...
...
@@ -5318,7 +5320,7 @@ packages:
resolution
:
{
integrity
:
sha512-5Dw3yxEyuBSXTzT5/Ge1X5kIkRTQ3nvBn/VwPwInNiZBSJOO/timWMUaflONnFBzU6NhB68lxnCda7ULV5N7LA==
}
engines
:
{
node
:
^14.17.0 || >=16.0.0
}
peerDependencies
:
eslint
:
^
6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0
.0
eslint
:
^
8.57
.0
eslint-rule-composer@0.3.0
:
resolution
:
{
integrity
:
sha512-bt+Sh8CtDmn2OajxvNO+BX7Wn4CIWMpTRm3MaiKPCQcnnlm0CS2mhui6QaoeQugs+3Kj2ESKEEGJUdVafwhiCg==
}
...
...
@@ -9105,7 +9107,7 @@ packages:
resolution
:
{
integrity
:
sha512-2rYRLWlIpaiN8xbPiDyXZXRgLGOtWxERV7ND5fFAv5qo1D2N9Fu9MNajBNc6o13lZ+24DAWCkQCvj4klgmcITg==
}
engines
:
{
node
:
^14.17.0 || >=16.0.0
}
peerDependencies
:
eslint
:
'
>=6.0.0'
eslint
:
^8.57.0
vue-i18n@9.13.1
:
resolution
:
{
integrity
:
sha512-mh0GIxx0wPtPlcB1q4k277y0iKgo25xmDPWioVVYanjPufDBpvu5ySTjP5wOrSvlYQ2m1xI+CFhGdauv/61uQg==
}
...
...
scripts/vsh/src/publint/index.ts
View file @
b12266b
...
...
@@ -87,7 +87,7 @@ async function runPublint(files: string[], { check }: PubLintCommandOptions) {
const
publintResult
:
Result
=
cache
?.[
file
]?.
hash
===
hash
?
cache
?.[
file
]?.
result
??
[]
?
(
cache
?.[
file
]?.
result
??
[])
:
await
publint
({
level
:
'suggestion'
,
pkgDir
:
dirname
(
file
),
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment