Skip to content

Commit f1a1cca

Browse files
committed
tidy
1 parent ad3dfc3 commit f1a1cca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/eslint-plugin-svelte/src/utils/svelte-context.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ function getSvelteKitContext(
8787
if (isRunInBrowser) {
8888
return {
8989
svelteKitVersion,
90-
// Judge by only file path if it runs on browser.
90+
// Judge by only file path if it runs in browser.
9191
svelteKitFileType: getSvelteKitFileTypeFromFilePath(filePath)
9292
};
9393
}
@@ -121,7 +121,7 @@ function getSvelteKitContext(
121121
* @returns
122122
*/
123123
function getSvelteKitVersion(filePath: string): SvelteContext['svelteKitVersion'] {
124-
// Hack: if it runs on browser, it regards as SvelteKit project.
124+
// Hack: if it runs in browser, it regards as SvelteKit project.
125125
if (isRunInBrowser) return 2;
126126
try {
127127
const packageJson = getPackageJson(filePath);

0 commit comments

Comments
 (0)