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 55 },
66 "parser" : " @typescript-eslint/parser" ,
77 "parserOptions" : {
8- "ecmaVersion" : 2019 ,
8+ "ecmaVersion" : 2021 ,
99 "sourceType" : " module"
1010 },
11- "plugins" : [" svelte3 " , " @typescript-eslint" ],
12- "extends" : [" eslint: recommended" ],
11+ "plugins" : [" @typescript-eslint" ],
12+ "extends" : [" plugin:svelte/ recommended" ],
1313 "overrides" : [
1414 {
15- "files" : [" **/*.svelte" ],
16- "processor" : " svelte3/svelte3"
15+ "files" : [" *.svelte" ],
16+ "parser" : " svelte-eslint-parser" ,
17+ "parserOptions" : {
18+ "parser" : " @typescript-eslint/parser"
19+ }
1720 }
1821 ],
19- "settings " : {
20- "svelte3/typescript " : true
22+ "rules " : {
23+ "svelte/no-at-html-tags " : " off "
2124 }
2225}
Original file line number Diff line number Diff line change 66 "trailingComma" : " es5" ,
77 "bracketSameLine" : true ,
88 "singleAttributePerLine" : false ,
9- "quoteProps" : " consistent"
9+ "quoteProps" : " consistent" ,
10+ "plugins" : [" prettier-plugin-svelte" ]
1011}
Original file line number Diff line number Diff line change 1- <!DOCTYPE html>
1+ <!doctype html>
22< html lang ="en ">
33 < head >
44 < meta charset ="UTF-8 " />
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ import Index from './Index.svelte';
33const targetElement = document . getElementById ( 'app' ) ;
44
55if ( ! targetElement ) {
6- throw new Error ( "Couldn't find the 'app' element!" ) ;
6+ throw new Error ( "Couldn't find the 'app' element!" ) ;
77}
88
99const app = new Index ( {
10- target : targetElement ,
10+ target : targetElement ,
1111} ) ;
1212
1313export default app ;
You can’t perform that action at this time.
0 commit comments