Skip to content

Commit e2a2b8a

Browse files
committed
fix
1 parent 283df41 commit e2a2b8a

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

packages/eslint-plugin-svelte/src/shared/svelte-compile-warns/transform/babel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function transform(
4343
output: output.code!,
4444
mappings: output.map!.mappings
4545
};
46-
} catch (_e) {
46+
} catch {
4747
return null;
4848
}
4949
}

packages/eslint-plugin-svelte/src/shared/svelte-compile-warns/transform/less.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export function transform(
5050
output: output.css,
5151
mappings: JSON.parse(output.map).mappings
5252
};
53-
} catch (_e) {
53+
} catch {
5454
return null;
5555
}
5656
}

packages/eslint-plugin-svelte/src/shared/svelte-compile-warns/transform/postcss.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function transform(
4949
output: result.content,
5050
mappings: result.map.toJSON().mappings
5151
};
52-
} catch (_e) {
52+
} catch {
5353
// console.log(e)
5454
return null;
5555
}

packages/eslint-plugin-svelte/src/shared/svelte-compile-warns/transform/sass.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export function transform(
3939
output: output.css,
4040
mappings: output.sourceMap!.mappings
4141
};
42-
} catch (_e) {
42+
} catch {
4343
return null;
4444
}
4545
}

packages/eslint-plugin-svelte/src/shared/svelte-compile-warns/transform/stylus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export function transform(
4545
output,
4646
mappings: (style as unknown as { sourcemap: RawSourceMap }).sourcemap.mappings
4747
};
48-
} catch (_e) {
48+
} catch {
4949
return null;
5050
}
5151
}

packages/eslint-plugin-svelte/src/utils/get-package-json.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function readPackageJson(dir: string): PackageJson | null {
3535
data.filePath = filePath;
3636
return data;
3737
}
38-
} catch (_err) {
38+
} catch {
3939
// do nothing.
4040
}
4141

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function hasSvelteKit(filePath: string): boolean {
5555
return Boolean(
5656
packageJson.dependencies?.['@sveltejs/kit'] ?? packageJson.devDependencies?.['@sveltejs/kit']
5757
);
58-
} catch (_e) {
58+
} catch {
5959
return false;
6060
}
6161
}

packages/eslint-plugin-svelte/tools/new-rule.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ This rule reports ???.
141141
cp.execSync(`code "${ruleFile}"`);
142142
cp.execSync(`code "${testFile}"`);
143143
cp.execSync(`code "${docFile}"`);
144-
} catch (_) {
144+
} catch {
145145
logger.error('Unable to find code command. Will not open files with VSCode.');
146146
}
147147
})(process.argv.slice(2));

0 commit comments

Comments
 (0)