Skip to content

Commit 566ea80

Browse files
committed
fix more eslint
1 parent 01c609e commit 566ea80

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/addons/_tests/eslint/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test.concurrent.for(variants)('core - %s', async (variant, { page, ...ctx }) =>
1919

2020
expect(() => execSync('pnpm lint', { cwd, stdio: 'pipe' })).toThrowError();
2121

22-
expect(() => execSync('pnpm eslint --fix .', { cwd, stdio: 'pipe' })).not.toThrowError();
22+
expect(() => execSync('pnpm eslint --fix .', { cwd, stdio: 'inherit' })).not.toThrowError();
2323

2424
expect(() => execSync('pnpm lint', { cwd, stdio: 'pipe' })).not.toThrowError();
2525
});

packages/addons/eslint/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,8 @@ export default defineAddon({
113113
parserOptions: {
114114
projectService: true,
115115
extraFileExtensions: ['.svelte'],
116-
parser: 'ts.parser',
117-
svelteConfig: 'svelteConfig'
116+
parser: variables.createIdentifier('ts.parser'),
117+
svelteConfig: variables.createIdentifier('svelteConfig')
118118
}
119119
}
120120
});

0 commit comments

Comments
 (0)