Commit graph

1649 commits

Author SHA1 Message Date
Greg Price
d0a1729f3a Support Flow "declare class" fully: type parameters, "extends", "implements".
This is basically copied from the "ClassDeclaration" case.
There's so much in common between them -- it'd be nice to share
most of this logic.
2022-09-27 05:36:14 +00:00
Brian Donovan
9a07a14236 test: fix override example
Since we're pretty printing we get double quotes, not single quotes.
2022-09-27 05:35:44 +00:00
Brian Donovan
928497dccd 0.21.4 2022-09-27 05:23:46 +00:00
Brian Donovan
295d7c8028
Merge pull request #1151 from 625dennis/fix-typescript-override-keyword-printer
Fix typescript override keyword printer
2022-09-26 22:23:20 -07:00
Brian Donovan
05dde8773e
Merge pull request #881 from zeratul1/patch-1
add sourceType option for esprima
2022-09-26 22:02:17 -07:00
zeratul1
bfbc7b2f9f add sourceType option for esprima
according to https://esprima.readthedocs.io/en/4.0/syntactic-analysis.html#distinguishing-a-script-and-a-module,
we should pass sourceType option to the esprima.parse function.
2022-09-27 04:59:50 +00:00
Brian Donovan
8844292283
Merge pull request #1077 from coderaiser/test/ambient-context
Test/ambient context
2022-09-26 21:53:06 -07:00
Brian Donovan
80d5da137f
Merge pull request #987 from anka-213/patch-1
Update source map example to use less misleading file names
2022-09-26 21:50:45 -07:00
Brian Donovan
5d9f3795e2
Merge pull request #884 from thorn0/babylon-error
Replace babylon → babel in README, improve error in parser/babel
2022-09-26 21:48:28 -07:00
Brian Donovan
c0b779064b 0.21.3 2022-09-27 03:29:38 +00:00
Brian Donovan
aca111e807
Merge pull request #1024 from coderaiser/fix/quote-print-options
Fix/quote print options
2022-09-26 20:29:20 -07:00
coderaiser
fbab80418f fix: print options: quote 2022-09-27 03:26:27 +00:00
Brian Donovan
e3bdfe079a 0.21.2 2022-08-03 10:33:23 -07:00
Brian Donovan
52c2ec1fdf
Merge pull request #1157 from henryqdineen/fix-ts-type-literal-comma
fix: additional commas in TsTypeLiteral
2022-08-03 10:20:12 -07:00
hdineen
8e24cf67ea add would-be failing test for unwanted commas in TSTypeLiteral 2022-08-03 10:17:32 -07:00
hdineen
165e92a297 fix: additional commas in TsTypeLiteral 2022-08-03 10:16:51 -07:00
Brian Donovan
88df88a529
Merge pull request #1147 from suchipi/fix-disappearing-tsmoduleblock-curlies 2022-08-03 10:11:32 -07:00
Dennis Kuduzovic
bc030e5530 add override keyword to printMethod function 2022-07-19 21:34:32 -06:00
Dennis Kuduzovic
a46f75cf47 tdd 2022-07-19 21:33:09 -06:00
Lily Scott
aec4d901fa Fix #1146 2022-07-12 17:33:05 -06:00
Lily Scott
8516823fa7 Add failing test 2022-07-12 17:23:11 -06:00
Brian Donovan
25351f6a84
Merge pull request #1118 from andersk/ts-clean 2022-05-25 15:03:47 -07:00
Anders Kaseorg
fe5deb9bc2 Replace ts-emit-clean with tsc --build --clean.
See https://github.com/benjamn/ast-types/issues/768.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-05-25 14:57:13 -07:00
Brian Donovan
3c08ff3314
Merge pull request #1116 from andersk/prepare
Rename prepack script to prepare, to allow installation from Git
2022-05-25 14:36:30 -07:00
Anders Kaseorg
051fc7aa2c Rename prepack script to prepare, to allow installation from Git
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2022-05-25 13:56:22 -07:00
Brian Donovan
74feafba01 0.21.1 2022-04-27 23:54:05 +00:00
Brian Donovan
91bc665e17
Merge pull request #1095 from benjamn/pr/xyy94813/896
Fix parenthesis missing
2022-04-27 16:25:35 -07:00
RoXoM
33cc57046d Fix parenthesis missing
Parentheses are missing,
when BinaryExpression child is nullish expression
2022-04-27 23:11:44 +00:00
Brian Donovan
482afbef8d
Merge pull request #1094 from benjamn/pr/thorn0/885
Refine Prettier configuration (redux)
2022-04-27 16:09:15 -07:00
Georgii Dolzhykov
ba51321748 Reformat all 2022-04-27 23:03:05 +00:00
Georgii Dolzhykov
79708e2da3 Fix Prettier config 2022-04-27 23:02:37 +00:00
Brian Donovan
06eca93f28
Merge pull request #1013 from lokshunhung/fix/ts-class-prop-definite
Print class property definite assignment assertions
2022-04-27 15:56:37 -07:00
LS Hung
e71ab9bc6a Test printing definite class property 2022-04-27 22:53:58 +00:00
dependabot[bot]
c6049401b9
Merge pull request #1093 from benjamn/dependabot/npm_and_yarn/ansi-regex-3.0.1 2022-04-27 22:46:45 +00:00
dependabot[bot]
9ed91a2cf7
Merge pull request #1091 from benjamn/dependabot/npm_and_yarn/lint-staged-12.4.1 2022-04-27 22:46:27 +00:00
dependabot[bot]
0cdc3ee0b2
Merge pull request #1079 from benjamn/dependabot/npm_and_yarn/minimist-1.2.6 2022-04-27 22:46:09 +00:00
dependabot[bot]
de68b345fd
Merge pull request #973 from benjamn/dependabot/npm_and_yarn/types/esprima-4.0.3 2022-04-27 22:45:12 +00:00
Brian Donovan
809351a16e
Merge pull request #868 from coderaiser/fix/additional-semicolon-in-ts-interface-body
fix: additional semicolon in TSInterfaceBody
2022-04-27 15:43:35 -07:00
coderaiser
6e0685ceb1 fix: additional semicolon in TSInterfaceBody 2022-04-27 22:40:08 +00:00
Brian Donovan
c327a5e289
Merge pull request #871 from NickHeiner/patch-1
Update README.md
2022-04-27 15:33:34 -07:00
dependabot[bot]
699bc52acd
Bump lint-staged from 10.5.3 to 12.4.1
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 10.5.3 to 12.4.1.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Commits](https://github.com/okonet/lint-staged/compare/v10.5.3...v12.4.1)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-27 22:32:52 +00:00
dependabot[bot]
2458532af5
Bump minimist from 1.2.5 to 1.2.6
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-27 22:32:29 +00:00
dependabot[bot]
35817a4abf
Bump @types/esprima from 4.0.2 to 4.0.3
Bumps [@types/esprima](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/esprima) from 4.0.2 to 4.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/esprima)

---
updated-dependencies:
- dependency-name: "@types/esprima"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-27 22:32:28 +00:00
dependabot[bot]
85b74466e1
Bump ansi-regex from 3.0.0 to 3.0.1
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 3.0.0 to 3.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v3.0.0...v3.0.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-27 22:32:10 +00:00
dependabot[bot]
5fddfec138
Merge pull request #1047 from benjamn/dependabot/npm_and_yarn/babel/preset-env-7.16.11 2022-04-27 22:31:48 +00:00
Brian Donovan
08e43e1579
Merge pull request #1068 from conartist6:fix-babel-parens
Fix missing parens in reprinted output
2022-04-27 15:31:01 -07:00
Conrad Buck
eb94a84167 Fix missing parens in reprinted output 2022-04-26 08:49:45 -04:00
coderaiser
df56d4d219 test: typescript: Initializers are not allowed in ambient contexts (https://stackoverflow.com/questions/26946495/what-means-ambient-in-typescript) 2022-03-30 21:26:52 +03:00
Brian Donovan
cb7ff9a333
Merge pull request #1056 from djpohly/pretty-u2028-u2029 2022-02-06 10:19:18 -08:00
Brian Donovan
60cd7562c3
Merge pull request #1057 from djpohly/parens-function-in-seqexp 2022-02-05 09:00:58 -08:00