Skip to content

Commit 4329513

Browse files
Test
1 parent b5e9122 commit 4329513

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

bad/index.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import * as prettier from 'prettier'
2+
13
const x: string = "xx"
24

35
const a: string = "q"
@@ -8,3 +10,6 @@ console.log(a + x)
810

911
const b = { a: 1 }
1012
console.log(`Some ${b}`)
13+
14+
console.log(x + prettier.format("a"))
15+
console.log(` some ${prettier.format("a")}`)

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@
1919
"homepage": "https://github.com/srijanpaul-deepsource/bad-javascript-stuff#readme",
2020
"devDependencies": {
2121
"@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"
2425
},
2526
"dependencies": {
2627
"prettier": "^2.5.1",

yarn.lock

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
resolved "https://registry.npmjs.org/@tsconfig/recommended/-/recommended-1.0.1.tgz"
88
integrity sha512-2xN+iGTbPBEzGSnVp/Hd64vKJCJWxsi9gfs88x4PPMyEjHJoA3o5BY9r5OLPHIZU2pAQxkSAsJFqn6itClP8mQ==
99

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+
1015
prettier-plugin-organize-imports@^2.3.4:
1116
version "2.3.4"
1217
resolved "https://registry.npmjs.org/prettier-plugin-organize-imports/-/prettier-plugin-organize-imports-2.3.4.tgz"

0 commit comments

Comments
 (0)