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 8952e947
authored
Jul 10, 2024
by
vince
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: add eslint-plugin-turbo
1 parent
1f968723
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
55 additions
and
16 deletions
internal/lint-configs/eslint-config/package.json
internal/lint-configs/eslint-config/src/configs/index.ts
internal/lint-configs/eslint-config/src/configs/turbo.ts
internal/lint-configs/eslint-config/src/index.ts
internal/node-utils/package.json
package.json
pnpm-lock.yaml
scripts/vsh/src/lint/index.ts
internal/lint-configs/eslint-config/package.json
View file @
8952e94
...
@@ -27,6 +27,7 @@
...
@@ -27,6 +27,7 @@
}
}
},
},
"dependencies"
:
{
"dependencies"
:
{
"eslint-config-turbo"
:
"^2.0.6"
,
"eslint-plugin-command"
:
"^0.2.3"
"eslint-plugin-command"
:
"^0.2.3"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
...
...
internal/lint-configs/eslint-config/src/configs/index.ts
View file @
8952e94
...
@@ -11,6 +11,7 @@ export * from './perfectionist';
...
@@ -11,6 +11,7 @@ export * from './perfectionist';
export
*
from
'./prettier'
;
export
*
from
'./prettier'
;
export
*
from
'./regexp'
;
export
*
from
'./regexp'
;
export
*
from
'./test'
;
export
*
from
'./test'
;
export
*
from
'./turbo'
;
export
*
from
'./typescript'
;
export
*
from
'./typescript'
;
export
*
from
'./unicorn'
;
export
*
from
'./unicorn'
;
export
*
from
'./vue'
;
export
*
from
'./vue'
;
internal/lint-configs/eslint-config/src/configs/turbo.ts
0 → 100644
View file @
8952e94
import
type
{
Linter
}
from
'eslint'
;
export
async
function
turbo
():
Promise
<
Linter
.
FlatConfig
[]
>
{
const
[
pluginTurbo
]
=
await
Promise
.
all
([
// @ts-expect-error - no types
import
(
'eslint-config-turbo'
),
]
as
const
);
return
[
{
plugins
:
{
turbo
:
pluginTurbo
,
},
},
];
}
internal/lint-configs/eslint-config/src/index.ts
View file @
8952e94
...
@@ -14,6 +14,7 @@ import {
...
@@ -14,6 +14,7 @@ import {
prettier
,
prettier
,
regexp
,
regexp
,
test
,
test
,
turbo
,
typescript
,
typescript
,
unicorn
,
unicorn
,
vue
,
vue
,
...
@@ -46,6 +47,7 @@ async function defineConfig(config: FlatConfig[] = []) {
...
@@ -46,6 +47,7 @@ async function defineConfig(config: FlatConfig[] = []) {
test
(),
test
(),
regexp
(),
regexp
(),
command
(),
command
(),
turbo
(),
...
customConfig
,
...
customConfig
,
...
config
,
...
config
,
];
];
...
...
internal/node-utils/package.json
View file @
8952e94
...
@@ -37,6 +37,6 @@
...
@@ -37,6 +37,6 @@
"pkg-types"
:
"^1.1.3"
,
"pkg-types"
:
"^1.1.3"
,
"prettier"
:
"^3.3.2"
,
"prettier"
:
"^3.3.2"
,
"rimraf"
:
"^6.0.0"
,
"rimraf"
:
"^6.0.0"
,
"zx"
:
"^
8.1.4
"
"zx"
:
"^
7.2.3
"
}
}
}
}
package.json
View file @
8952e94
...
@@ -101,7 +101,8 @@
...
@@ -101,7 +101,8 @@
],
],
"updateConfig"
:
{
"updateConfig"
:
{
"ignoreDependencies"
:
[
"ignoreDependencies"
:
[
"eslint"
"eslint"
,
"zx"
]
]
}
}
}
}
...
...
pnpm-lock.yaml
View file @
8952e94
...
@@ -261,6 +261,9 @@ importers:
...
@@ -261,6 +261,9 @@ importers:
internal/lint-configs/eslint-config
:
internal/lint-configs/eslint-config
:
dependencies
:
dependencies
:
eslint-config-turbo
:
specifier
:
^2.0.6
version
:
2.0.6(eslint@8.57.0)
eslint-plugin-command
:
eslint-plugin-command
:
specifier
:
^0.2.3
specifier
:
^0.2.3
version
:
0.2.3(eslint@8.57.0)
version
:
0.2.3(eslint@8.57.0)
...
@@ -423,8 +426,8 @@ importers:
...
@@ -423,8 +426,8 @@ importers:
specifier
:
^6.0.0
specifier
:
^6.0.0
version
:
6.0.0
version
:
6.0.0
zx
:
zx
:
specifier
:
^
8.1.4
specifier
:
^
7.2.3
version
:
8.1.4
version
:
7.2.3
internal/tailwind-config
:
internal/tailwind-config
:
dependencies
:
dependencies
:
...
@@ -3019,7 +3022,6 @@ packages:
...
@@ -3019,7 +3022,6 @@ packages:
'
@ls-lint/ls-lint@2.2.3'
:
'
@ls-lint/ls-lint@2.2.3'
:
resolution
:
{
integrity
:
sha512-ekM12jNm/7O2I/hsRv9HvYkRdfrHpiV1epVuI2NP+eTIcEgdIdKkKCs9KgQydu/8R5YXTov9aHdOgplmCHLupw==
}
resolution
:
{
integrity
:
sha512-ekM12jNm/7O2I/hsRv9HvYkRdfrHpiV1epVuI2NP+eTIcEgdIdKkKCs9KgQydu/8R5YXTov9aHdOgplmCHLupw==
}
cpu
:
[
x64
,
arm64
,
s390x
]
os
:
[
darwin
,
linux
,
win32
]
os
:
[
darwin
,
linux
,
win32
]
hasBin
:
true
hasBin
:
true
...
@@ -4987,6 +4989,10 @@ packages:
...
@@ -4987,6 +4989,10 @@ packages:
resolution
:
{
integrity
:
sha512-SErOMvge0ZUyWd5B0NXMQlDkN+8r+HhVUsxgOO7IoPDOdDRD2JjExpN6y3KnFR66jsJMwSn1pqIivhU5rcJiNg==
}
resolution
:
{
integrity
:
sha512-SErOMvge0ZUyWd5B0NXMQlDkN+8r+HhVUsxgOO7IoPDOdDRD2JjExpN6y3KnFR66jsJMwSn1pqIivhU5rcJiNg==
}
engines
:
{
node
:
'
>=12'
}
engines
:
{
node
:
'
>=12'
}
dotenv@16.0.3
:
resolution
:
{
integrity
:
sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==
}
engines
:
{
node
:
'
>=12'
}
dotenv@16.4.5
:
dotenv@16.4.5
:
resolution
:
{
integrity
:
sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==
}
resolution
:
{
integrity
:
sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg==
}
engines
:
{
node
:
'
>=12'
}
engines
:
{
node
:
'
>=12'
}
...
@@ -5152,6 +5158,11 @@ packages:
...
@@ -5152,6 +5158,11 @@ packages:
peerDependencies
:
peerDependencies
:
eslint
:
'
>=7.0.0'
eslint
:
'
>=7.0.0'
eslint-config-turbo@2.0.6
:
resolution
:
{
integrity
:
sha512-PkRjFnZUZWPcrYT4Xoi5OWOUtnn6xVGh88I6TsayiH4AQZuLs/MDmzfJRK+PiWIrI7Q7sbsVEQP+nUyyRE3uAw==
}
peerDependencies
:
eslint
:
'
>6.6.0'
eslint-import-resolver-node@0.3.9
:
eslint-import-resolver-node@0.3.9
:
resolution
:
{
integrity
:
sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==
}
resolution
:
{
integrity
:
sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==
}
...
@@ -5259,6 +5270,11 @@ packages:
...
@@ -5259,6 +5270,11 @@ packages:
peerDependencies
:
peerDependencies
:
eslint
:
'
>=8.44.0'
eslint
:
'
>=8.44.0'
eslint-plugin-turbo@2.0.6
:
resolution
:
{
integrity
:
sha512-yGnpMvyBxI09ZrF5bGpaniBz57MiExTCsRnNxP+JnbMFD+xU3jG3ukRzehVol8LYNdC/G7E4HoH+x7OEpoSGAQ==
}
peerDependencies
:
eslint
:
'
>6.6.0'
eslint-plugin-unicorn@54.0.0
:
eslint-plugin-unicorn@54.0.0
:
resolution
:
{
integrity
:
sha512-XxYLRiYtAWiAjPv6z4JREby1TAE2byBC7wlh0V4vWDCpccOSU1KovWV//jqPXF6bq3WKxqX9rdjoRQ1EhdmNdQ==
}
resolution
:
{
integrity
:
sha512-XxYLRiYtAWiAjPv6z4JREby1TAE2byBC7wlh0V4vWDCpccOSU1KovWV//jqPXF6bq3WKxqX9rdjoRQ1EhdmNdQ==
}
engines
:
{
node
:
'
>=18.18'
}
engines
:
{
node
:
'
>=18.18'
}
...
@@ -9427,11 +9443,6 @@ packages:
...
@@ -9427,11 +9443,6 @@ packages:
engines
:
{
node
:
'
>=
16.0.0'
}
engines
:
{
node
:
'
>=
16.0.0'
}
hasBin
:
true
hasBin
:
true
zx@8.1.4
:
resolution
:
{
integrity
:
sha512-QFDYYpnzdpRiJ3dL2102Cw26FpXpWshW4QLTGxiYfIcwdAqg084jRCkK/kuP/NOSkxOjydRwNFG81qzA5r1a6w==
}
engines
:
{
node
:
'
>=
12.17.0'
}
hasBin
:
true
snapshots
:
snapshots
:
'
@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.24.0)(algoliasearch@4.24.0)(search-insights@2.15.0)'
:
'
@algolia/autocomplete-core@1.9.3(@algolia/client-search@4.24.0)(algoliasearch@4.24.0)(search-insights@2.15.0)'
:
...
@@ -13960,6 +13971,8 @@ snapshots:
...
@@ -13960,6 +13971,8 @@ snapshots:
dotenv-expand@8.0.3
:
{}
dotenv-expand@8.0.3
:
{}
dotenv@16.0.3
:
{}
dotenv@16.4.5
:
{}
dotenv@16.4.5
:
{}
dotenv@8.6.0
:
{}
dotenv@8.6.0
:
{}
...
@@ -14213,6 +14226,11 @@ snapshots:
...
@@ -14213,6 +14226,11 @@ snapshots:
dependencies
:
dependencies
:
eslint
:
8.57.0
eslint
:
8.57.0
eslint-config-turbo@2.0.6(eslint@8.57.0)
:
dependencies
:
eslint
:
8.57.0
eslint-plugin-turbo
:
2.0.6(eslint@8.57.0)
eslint-import-resolver-node@0.3.9
:
eslint-import-resolver-node@0.3.9
:
dependencies
:
dependencies
:
debug
:
3.2.7
debug
:
3.2.7
...
@@ -14340,6 +14358,11 @@ snapshots:
...
@@ -14340,6 +14358,11 @@ snapshots:
regexp-ast-analysis
:
0.7.1
regexp-ast-analysis
:
0.7.1
scslre
:
0.3.0
scslre
:
0.3.0
eslint-plugin-turbo@2.0.6(eslint@8.57.0)
:
dependencies
:
dotenv
:
16.0.3
eslint
:
8.57.0
eslint-plugin-unicorn@54.0.0(eslint@8.57.0)
:
eslint-plugin-unicorn@54.0.0(eslint@8.57.0)
:
dependencies
:
dependencies
:
'
@babel/helper-validator-identifier'
:
7.24.7
'
@babel/helper-validator-identifier'
:
7.24.7
...
@@ -18897,8 +18920,3 @@ snapshots:
...
@@ -18897,8 +18920,3 @@ snapshots:
webpod
:
0.0.2
webpod
:
0.0.2
which
:
3.0.1
which
:
3.0.1
yaml
:
2.4.5
yaml
:
2.4.5
zx@8.1.4
:
optionalDependencies
:
'
@types/fs-extra'
:
11.0.4
'
@types/node'
:
20.14.10
scripts/vsh/src/lint/index.ts
View file @
8952e94
...
@@ -14,7 +14,7 @@ async function runLint({ format }: LintCommandOptions) {
...
@@ -14,7 +14,7 @@ async function runLint({ format }: LintCommandOptions) {
if
(
format
)
{
if
(
format
)
{
await
$
`stylelint "**/*.{vue,css,less.scss}" --cache --fix`
;
await
$
`stylelint "**/*.{vue,css,less.scss}" --cache --fix`
;
await
$
`eslint . --cache --fix`
;
await
$
`eslint . --cache --fix`
;
await
$
`prettier . --write --cache`
;
await
$
`prettier . --write --cache
--log-level warn
`
;
return
;
return
;
}
}
...
...
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