File tree Expand file tree Collapse file tree 8 files changed +8
-12
lines changed
src/shared/svelte-compile-warns/transform Expand file tree Collapse file tree 8 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 11module . exports = {
2- extends : [ "plugin:svelte/recommended " ] ,
2+ extends : [ "plugin:@ota-meshi/+svelte " ] ,
33 env : {
44 browser : true ,
55 es2022 : true ,
@@ -10,10 +10,6 @@ module.exports = {
1010 rules : {
1111 "svelte/no-target-blank" : "error" ,
1212 "svelte/button-has-type" : "error" ,
13- "svelte/no-useless-mustaches" : "error" ,
14- "svelte/prefer-class-directive" : "error" ,
15- "svelte/prefer-style-directive" : "error" ,
16- "svelte/spaced-html-comment" : "error" ,
1713 "node/file-extension-in-import" : "off" ,
1814 } ,
1915}
Original file line number Diff line number Diff line change 8888 "@changesets/changelog-github" : " ^0.4.6" ,
8989 "@changesets/cli" : " ^2.24.2" ,
9090 "@fontsource/fira-mono" : " ^4.5.0" ,
91- "@ota-meshi/eslint-plugin" : " ^0.12 .0" ,
91+ "@ota-meshi/eslint-plugin" : " ^0.13 .0" ,
9292 "@sindresorhus/slugify" : " ^2.1.0" ,
9393 "@sveltejs/adapter-static" : " ^1.0.0-next.40" ,
9494 "@sveltejs/kit" : " ^1.0.0-next.456" ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export function transform(
4141 output : output . code ! ,
4242 mappings : output . map ! . mappings ,
4343 }
44- } catch ( e ) {
44+ } catch ( _e ) {
4545 return null
4646 }
4747}
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export function transform(
4848 output : output . css ,
4949 mappings : JSON . parse ( output . map ) . mappings ,
5050 }
51- } catch ( e ) {
51+ } catch ( _e ) {
5252 return null
5353 }
5454}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export function transform(
4747 output : result . content ,
4848 mappings : result . map . toJSON ( ) . mappings ,
4949 }
50- } catch ( e ) {
50+ } catch ( _e ) {
5151 // console.log(e)
5252 return null
5353 }
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export function transform(
3838 output : output . css ,
3939 mappings : output . sourceMap ! . mappings ,
4040 }
41- } catch ( e ) {
41+ } catch ( _e ) {
4242 return null
4343 }
4444}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export function transform(
4444 mappings : ( style as unknown as { sourcemap : RawSourceMap } ) . sourcemap
4545 . mappings ,
4646 }
47- } catch ( e ) {
47+ } catch ( _e ) {
4848 return null
4949 }
5050}
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export function loadTestCases(
119119 let output
120120 try {
121121 output = fs . readFileSync ( outputFile , "utf8" )
122- } catch ( e ) {
122+ } catch ( _e ) {
123123 writeFixtures ( ruleName , inputFile )
124124 output = fs . readFileSync ( outputFile , "utf8" )
125125 }
You can’t perform that action at this time.
0 commit comments