File tree 8 files changed +8
-12
lines changed
src/shared/svelte-compile-warns/transform
8 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- extends : [ "plugin:svelte/recommended " ] ,
2
+ extends : [ "plugin:@ota-meshi/+svelte " ] ,
3
3
env : {
4
4
browser : true ,
5
5
es2022 : true ,
@@ -10,10 +10,6 @@ module.exports = {
10
10
rules : {
11
11
"svelte/no-target-blank" : "error" ,
12
12
"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" ,
17
13
"node/file-extension-in-import" : "off" ,
18
14
} ,
19
15
}
Original file line number Diff line number Diff line change 88
88
"@changesets/changelog-github" : " ^0.4.6" ,
89
89
"@changesets/cli" : " ^2.24.2" ,
90
90
"@fontsource/fira-mono" : " ^4.5.0" ,
91
- "@ota-meshi/eslint-plugin" : " ^0.12 .0" ,
91
+ "@ota-meshi/eslint-plugin" : " ^0.13 .0" ,
92
92
"@sindresorhus/slugify" : " ^2.1.0" ,
93
93
"@sveltejs/adapter-static" : " ^1.0.0-next.40" ,
94
94
"@sveltejs/kit" : " ^1.0.0-next.456" ,
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ export function transform(
41
41
output : output . code ! ,
42
42
mappings : output . map ! . mappings ,
43
43
}
44
- } catch ( e ) {
44
+ } catch ( _e ) {
45
45
return null
46
46
}
47
47
}
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export function transform(
48
48
output : output . css ,
49
49
mappings : JSON . parse ( output . map ) . mappings ,
50
50
}
51
- } catch ( e ) {
51
+ } catch ( _e ) {
52
52
return null
53
53
}
54
54
}
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export function transform(
47
47
output : result . content ,
48
48
mappings : result . map . toJSON ( ) . mappings ,
49
49
}
50
- } catch ( e ) {
50
+ } catch ( _e ) {
51
51
// console.log(e)
52
52
return null
53
53
}
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export function transform(
38
38
output : output . css ,
39
39
mappings : output . sourceMap ! . mappings ,
40
40
}
41
- } catch ( e ) {
41
+ } catch ( _e ) {
42
42
return null
43
43
}
44
44
}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ export function transform(
44
44
mappings : ( style as unknown as { sourcemap : RawSourceMap } ) . sourcemap
45
45
. mappings ,
46
46
}
47
- } catch ( e ) {
47
+ } catch ( _e ) {
48
48
return null
49
49
}
50
50
}
Original file line number Diff line number Diff line change @@ -119,7 +119,7 @@ export function loadTestCases(
119
119
let output
120
120
try {
121
121
output = fs . readFileSync ( outputFile , "utf8" )
122
- } catch ( e ) {
122
+ } catch ( _e ) {
123
123
writeFixtures ( ruleName , inputFile )
124
124
output = fs . readFileSync ( outputFile , "utf8" )
125
125
}
You can’t perform that action at this time.
0 commit comments