Skip to content

Commit 8952e94

Browse files
committed
feat: add eslint-plugin-turbo
1 parent 1f96872 commit 8952e94

File tree

8 files changed

+55
-16
lines changed

8 files changed

+55
-16
lines changed

internal/lint-configs/eslint-config/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
}
2828
},
2929
"dependencies": {
30+
"eslint-config-turbo": "^2.0.6",
3031
"eslint-plugin-command": "^0.2.3"
3132
},
3233
"devDependencies": {

internal/lint-configs/eslint-config/src/configs/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export * from './perfectionist';
1111
export * from './prettier';
1212
export * from './regexp';
1313
export * from './test';
14+
export * from './turbo';
1415
export * from './typescript';
1516
export * from './unicorn';
1617
export * from './vue';
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import type { Linter } from 'eslint';
2+
3+
export async function turbo(): Promise<Linter.FlatConfig[]> {
4+
const [pluginTurbo] = await Promise.all([
5+
// @ts-expect-error - no types
6+
import('eslint-config-turbo'),
7+
] as const);
8+
9+
return [
10+
{
11+
plugins: {
12+
turbo: pluginTurbo,
13+
},
14+
},
15+
];
16+
}

internal/lint-configs/eslint-config/src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import {
1414
prettier,
1515
regexp,
1616
test,
17+
turbo,
1718
typescript,
1819
unicorn,
1920
vue,
@@ -46,6 +47,7 @@ async function defineConfig(config: FlatConfig[] = []) {
4647
test(),
4748
regexp(),
4849
command(),
50+
turbo(),
4951
...customConfig,
5052
...config,
5153
];

internal/node-utils/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,6 @@
3737
"pkg-types": "^1.1.3",
3838
"prettier": "^3.3.2",
3939
"rimraf": "^6.0.0",
40-
"zx": "^8.1.4"
40+
"zx": "^7.2.3"
4141
}
4242
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@
101101
],
102102
"updateConfig": {
103103
"ignoreDependencies": [
104-
"eslint"
104+
"eslint",
105+
"zx"
105106
]
106107
}
107108
}

pnpm-lock.yaml

Lines changed: 31 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/vsh/src/lint/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ async function runLint({ format }: LintCommandOptions) {
1414
if (format) {
1515
await $`stylelint "**/*.{vue,css,less.scss}" --cache --fix`;
1616
await $`eslint . --cache --fix`;
17-
await $`prettier . --write --cache`;
17+
await $`prettier . --write --cache --log-level warn`;
1818
return;
1919
}
2020

0 commit comments

Comments
 (0)