Skip to content

Commit 49ee3c2

Browse files
authored
fix: compatible with windows (#12)
1 parent 1ce8f5d commit 49ee3c2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ export default (api: IApi) => {
2323
const isInstalled = await checkNpmPackageInstalled('eslint');
2424
if (isInstalled) {
2525
execSync(
26-
`npx eslint ${inputFolder} --ext .tsx,.ts --rule '@typescript-eslint/consistent-type-exports: error'`,
26+
// Requires compatibility with Windows environment
27+
`npx eslint ${inputFolder} --ext .tsx,.ts --rule "@typescript-eslint/consistent-type-exports: error"`,
2728
{
2829
cwd: process.cwd(),
2930
env: process.env,

0 commit comments

Comments
 (0)