File tree Expand file tree Collapse file tree 4 files changed +15
-11
lines changed Expand file tree Collapse file tree 4 files changed +15
-11
lines changed Original file line number Diff line number Diff line change 5
5
},
6
6
"parser" : " @typescript-eslint/parser" ,
7
7
"parserOptions" : {
8
- "ecmaVersion" : 2019 ,
8
+ "ecmaVersion" : 2021 ,
9
9
"sourceType" : " module"
10
10
},
11
- "plugins" : [" svelte3 " , " @typescript-eslint" ],
12
- "extends" : [" eslint: recommended" ],
11
+ "plugins" : [" @typescript-eslint" ],
12
+ "extends" : [" plugin:svelte/ recommended" ],
13
13
"overrides" : [
14
14
{
15
- "files" : [" **/*.svelte" ],
16
- "processor" : " svelte3/svelte3"
15
+ "files" : [" *.svelte" ],
16
+ "parser" : " svelte-eslint-parser" ,
17
+ "parserOptions" : {
18
+ "parser" : " @typescript-eslint/parser"
19
+ }
17
20
}
18
21
],
19
- "settings " : {
20
- "svelte3/typescript " : true
22
+ "rules " : {
23
+ "svelte/no-at-html-tags " : " off "
21
24
}
22
25
}
Original file line number Diff line number Diff line change 6
6
"trailingComma" : " es5" ,
7
7
"bracketSameLine" : true ,
8
8
"singleAttributePerLine" : false ,
9
- "quoteProps" : " consistent"
9
+ "quoteProps" : " consistent" ,
10
+ "plugins" : [" prettier-plugin-svelte" ]
10
11
}
Original file line number Diff line number Diff line change 1
- <!DOCTYPE html>
1
+ <!doctype html>
2
2
< html lang ="en ">
3
3
< head >
4
4
< meta charset ="UTF-8 " />
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ import Index from './Index.svelte';
3
3
const targetElement = document . getElementById ( 'app' ) ;
4
4
5
5
if ( ! targetElement ) {
6
- throw new Error ( "Couldn't find the 'app' element!" ) ;
6
+ throw new Error ( "Couldn't find the 'app' element!" ) ;
7
7
}
8
8
9
9
const app = new Index ( {
10
- target : targetElement ,
10
+ target : targetElement ,
11
11
} ) ;
12
12
13
13
export default app ;
You can’t perform that action at this time.
0 commit comments