File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change
1
+ import * as prettier from 'prettier'
2
+
1
3
const x : string = "xx"
2
4
3
5
const a : string = "q"
@@ -8,3 +10,6 @@ console.log(a + x)
8
10
9
11
const b = { a : 1 }
10
12
console . log ( `Some ${ b } ` )
13
+
14
+ console . log ( x + prettier . format ( "a" ) )
15
+ console . log ( ` some ${ prettier . format ( "a" ) } ` )
Original file line number Diff line number Diff line change 19
19
"homepage" : " https://github.com/srijanpaul-deepsource/bad-javascript-stuff#readme" ,
20
20
"devDependencies" : {
21
21
"@tsconfig/recommended" : " ^1.0.1" ,
22
- "typescript" : " ^4.5.4" ,
23
- "prettier-plugin-organize-imports" : " ^2.3.4"
22
+ "@types/prettier" : " ^2.4.2" ,
23
+ "prettier-plugin-organize-imports" : " ^2.3.4" ,
24
+ "typescript" : " ^4.5.4"
24
25
},
25
26
"dependencies" : {
26
27
"prettier" : " ^2.5.1" ,
Original file line number Diff line number Diff line change 7
7
resolved "https://registry.npmjs.org/@tsconfig/recommended/-/recommended-1.0.1.tgz"
8
8
integrity sha512-2xN+iGTbPBEzGSnVp/Hd64vKJCJWxsi9gfs88x4PPMyEjHJoA3o5BY9r5OLPHIZU2pAQxkSAsJFqn6itClP8mQ==
9
9
10
+ " @types/prettier@^2.4.2 " :
11
+ version "2.4.2"
12
+ resolved "https://registry.yarnpkg.com/@types/prettier/-/prettier-2.4.2.tgz#4c62fae93eb479660c3bd93f9d24d561597a8281"
13
+ integrity sha512-ekoj4qOQYp7CvjX8ZDBgN86w3MqQhLE1hczEJbEIjgFEumDy+na/4AJAbLXfgEWFNB2pKadM5rPFtuSGMWK7xA==
14
+
10
15
prettier-plugin-organize-imports@^2.3.4 :
11
16
version "2.3.4"
12
17
resolved "https://registry.npmjs.org/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-2.3.4.tgz"
You can’t perform that action at this time.
0 commit comments