-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Duplicate comments showing up when using ignore comment.
Fixes #21.
- Loading branch information
Showing
4 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
name = "dprint-plugin-typescript" | ||
description = "TypeScript code formatting plugin for Dprint." | ||
keywords = ["formatting", "formatter", "typescript"] | ||
version = "0.19.6" | ||
version = "0.19.7" | ||
authors = ["David Sherret <[email protected]>"] | ||
edition = "2018" | ||
license = "MIT" | ||
|
@@ -12,6 +12,14 @@ repository = "https://github.com/dprint/dprint-plugin-typescript" | |
[lib] | ||
crate-type = ["lib", "cdylib"] | ||
|
||
[profile.release] | ||
opt-level = 3 | ||
debug = false | ||
lto = true | ||
debug-assertions = false | ||
overflow-checks = false | ||
panic = "abort" | ||
|
||
[dependencies] | ||
dprint-core = "0.23.0" | ||
swc_common = "=0.6.1" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
== should format as-is == | ||
// dprint-ignore | ||
const identity = [ | ||
1, 0, 0, | ||
0, 1, 0, | ||
0, 0, 1, | ||
]; | ||
|
||
// or even... | ||
|
||
const identity = /* dprint-ignore */ [ | ||
1, 0, 0, | ||
0, 1, 0, | ||
0, 0, 1, | ||
]; | ||
|
||
[expect] | ||
// dprint-ignore | ||
const identity = [ | ||
1, 0, 0, | ||
0, 1, 0, | ||
0, 0, 1, | ||
]; | ||
|
||
// or even... | ||
|
||
const identity = /* dprint-ignore */ [ | ||
1, 0, 0, | ||
0, 1, 0, | ||
0, 0, 1, | ||
]; |