File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed
packages/eslint-plugin-svelte
shared/svelte-compile-warns/transform Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 ) ) ;
You can’t perform that action at this time.
0 commit comments