Ika
1a2c4e663e
chore: use pre-release version number on master ( #4855 )
...
* chore: use pre-release version number on master
* docs: tweak comment
2018-07-18 09:38:26 +08:00
Ika
cb7fe00863
fix(yaml): support end comments ( #4854 )
2018-07-18 09:37:53 +08:00
Ika
ed0ecdad18
fix(json): do not put values on a separate line from the key ( #4852 )
...
* test: add tests
* fix(json): do not put values on a separate line from the key
2018-07-17 18:08:59 -03:00
Ika
cd16ff27d7
fix(markdown): preserve entity for surrogate pair ( #4832 )
2018-07-12 21:42:39 +08:00
Ika
da91fb2f46
fix(javascript): allow top level super and await ( #4823 )
2018-07-11 13:18:20 +08:00
Ika
b1c0c8c8d6
refactor(typescript): remove unnecessary experimental types ( #4819 )
...
Ref: eslint/typescript-eslint-parser#429
2018-07-10 10:05:31 +08:00
Ika
2271992446
feat(json): add jsonc to aliases and use it to find parser in markdown embed ( #4734 )
2018-07-07 20:46:34 +08:00
Ika
0df2199688
fix(grahpql): linebreak in non-block stringValue ( #4808 )
2018-07-05 00:14:09 +08:00
Ika
432c9d7d04
feat(yaml): support proseWrap ( #4742 )
...
- support `proseWrap` in `yaml`
- move `proseWrap` to `commonOptions`
- update to `yaml@1.0.0-rc.4` and `yaml-unist-parser@1.0.0-rc.1`
2018-07-04 00:28:47 +08:00
Ika
99c4e41fa1
feat: format yaml front matter ( #4773 )
...
* refactor: front-matter
* feat: format yaml front matter
2018-07-03 09:54:40 +08:00
Ika
e9f489cea1
refactor(debug-repeat): use built-in int type ( #4791 )
2018-07-02 16:01:05 +08:00
Ika
c4be0a57c3
feat(playground): add description for options ( #4785 )
...
* feat(playground): add description for options
* fix: support opposite description
* refactor
2018-07-02 08:23:21 +08:00
Ika
9bb8edf96a
feat: support .js.flow ( #4777 )
...
* feat: support .js.flow
* feat: add Flow language entry
2018-07-01 16:18:08 +08:00
Ika
b4a92c6ee5
feat(playground): use real code sample ( #4770 )
...
* feat(playground): double click to insert example
* fix: correct condition
* feat: real code sample
* fix: remove unnecessary updateValue
* feat: auto-select on focus
2018-07-01 16:17:25 +08:00
Ika
61d5eeadd3
fix(javascript): add parens for await in bind ( #4778 )
2018-06-30 23:15:45 +08:00
Ika
50d242d085
feat(typescript): support TSOptionalType and TSRestType ( #4757 )
...
Ref: Microsoft/TypeScript#24897
2018-06-30 09:10:56 +08:00
Ika
e10c31a333
fix(typescript): update typescript-eslint-parser ( #4762 )
2018-06-29 19:27:21 +08:00
Ika
0b659b898d
feat: update linguist languages ( #4741 )
...
Context: https://github.com/prettier/prettier/pull/4734#issue-196702272
Languages should be easy to maintain now.
2018-06-28 08:24:02 +08:00
Ika
b67fa907bd
fix(markdown): preserve email autolink ( #4740 )
...
```diff
<hello@example.com >
<mailto:hello@example.com >
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-<mailto:hello@example.com >
+<hello@example.com >
<mailto:hello@example.com >
```
2018-06-27 08:36:51 +08:00
Ika
9805babf94
docs(changelog): link -> diff
...
for consistency
2018-06-25 22:10:11 +08:00
Ika
f51acf22fe
feat(vue): support pragma ( #4713 )
2018-06-25 10:44:00 +08:00
Ika
c38e6af301
fix(yaml): add missing since field ( #4739 )
2018-06-23 17:04:47 +08:00
Ika
652628b6c9
chore: update lockfile
...
reflect changes in #4733
2018-06-23 15:26:50 +08:00
Ika
f53b5b8323
fix(options): inferParser for standalone ( #4721 )
2018-06-22 12:43:44 +08:00
Ika
5cfaba6a1c
chore(ISSUE_TEMPLATE): add template for integration issue ( #4722 )
...
Ref: https://blog.github.com/2018-05-02-issue-template-improvements/

So that people would know what kind of info we need to know to understand issues like #4720 .
2018-06-22 12:37:52 +08:00
Ika
dcf44ffbdc
feat: support YAML ( #4563 )
...
* feat: support YAML
* fix: do not indent sequence in mappingValue
* docs: add yaml to index.md
* fix: reduce `SyntaxError: Node#parse consumed no characters`
* chore: remove old-build and new-worker.js
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* refactor
* fix: no space after `<<`
* fix: add yaml to standalone test
* test: add tests
* fix: next empty line in flow collection
* fix: tabs are not allowed
http://yaml.org/spec/1.2/spec.html#space/indentation/
* fix: update parser
* feat: rewrite the mappingItem logic
* feat: indent sequence in mapping
* feat(doc): add ifBreak#groupId and group#id
* chore: fix node 4
* chore: add tools_yaml.svg
* chore: remove resolved TODO
* refactor: remove unnecessary workaround
* chore(worker): importScriptOnce
* chore(build): rename with babelPlugins
* make it rollup compatible
* feat: support singleQuote
* refactor
2018-06-21 10:29:42 +08:00
Ika
b99de9811b
feat(graphql): support pragma ( #4699 )
2018-06-17 14:04:48 +08:00
Ika
4109abf4dd
feat(javascript): support BigIntLiteral ( #4697 )
2018-06-16 00:20:04 +08:00
Ika
18aa527adc
feat(api): support relative paths for plugin(SearchDir)s in config files ( #4667 )
...
* feat(api): support relative paths for plugin(SearchDir)s in config files
* fix: convince appveyor
2018-06-15 04:25:03 +08:00
Ika
f6890bd071
feat(css): support pragma ( #4688 )
2018-06-14 09:51:18 +08:00
Ika
5646573ad7
fix(javascript): preserve parens for type casting for sub-item ( #4648 )
2018-06-11 19:50:53 +08:00
Ika
98bfd03d93
feat(typescript): support unknown type ( #4625 )
2018-06-10 00:12:30 +08:00
Ika
3666411bd5
chore(scripts): add missing execa import
...
See 4dde525996
2018-06-09 22:09:51 +08:00
Ika
c5bbee67d3
fix(playground): no unnecessary import ( #4653 )
2018-06-09 00:01:14 +08:00
Ika
35a42bef24
fix(markdown): better handling for trailing spaces ( #4593 )
...
- preserve trailing spaces in html, excluding html comment
- `doc-printer` is now unrelated to `options.parser`
- fix some cases that two trailing spaces are mis-considered as `break`
2018-06-08 00:20:25 +08:00
Ika
fb74dc54c3
feat(api): make getFileInfo() really async ( #4640 )
2018-06-07 00:34:02 +08:00
Ika
f27f6c525b
fix(typescript): preserve decorator on interface ( #4632 )
2018-06-05 00:08:24 +08:00
Ika
26b13b6274
chore(scripts): update ISSUE_TEMPLATE and exclude tarball ( #4620 )
2018-06-01 10:58:16 -03:00
Ika
77c0e940f3
docs(issue_template): bump version to 1.13.4
2018-06-01 20:07:17 +08:00
Ika
ae6abe4d8c
chore: bump own prettier to 1.13.4
2018-06-01 20:02:28 +08:00
Ika
dfefe259db
chore(release): 1.13.4
2018-06-01 19:59:12 +08:00
Ika
b55997eb3d
fix(multiparser): no additional trailing newline for graphql in js ( #4616 )
...
Fixes #4615
The root cause is the output doc from graphql printer does not match the desired input from `stripTrailingHardline`.
https://github.com/prettier/prettier/blob/a9b21a01e2d352aab06332e8e545e33efacc4f97/src/doc/doc-utils.js#L167-L180
2018-06-01 00:38:39 +08:00
Ika
e74e6565b4
fix(markdown): respect blank line between block htmls ( #4609 )
...
Fixes #4605
The AST here is actually two `html`s and it did follow the [CommonMark spec](https://spec.commonmark.org/0.28/#html-blocks ), so I ended up with respecting the blank line between block `html`s.
2018-06-01 00:33:37 +08:00
Ika
a9b21a01e2
docs(changelog): fix a typo in the url
2018-05-31 09:58:21 +08:00
Ika
75e86b9e6b
fix(cli): no regression for --debug-check + --list-different ( #4600 )
2018-05-31 00:42:26 +08:00
Ika
8abbc5d4b0
fix(javascript): regression for hasOwnProperty ( #4603 )
2018-05-31 00:39:39 +08:00
Ika
71e12ef321
docs: replace NO-BREAK SPACE with the normal one ( #4592 )
2018-05-29 23:01:22 +08:00
Ika
e9b7c7ff9b
chore: fix 2 TODOs ( #4591 )
2018-05-29 22:05:25 +08:00
Ika
11275bfa9d
docs: fix linting
2018-05-29 10:16:07 +08:00
Ika
553e9bb1ac
fix(typescript): preserve quoted class property ( #4517 )
2018-05-21 18:57:30 +08:00
Ika
a9eb68296c
fix(markdown): do not merge continuous cjk if proseWrap=preserve ( #4504 )
...
* test: add tests
* fix(markdown): do not merge continuous cjk if proseWrap=preserve
* fix: remove trailing comma for node4
2018-05-19 13:53:34 +08:00
Ika
d0f6aac001
refactor(massageAst): move stripLocation to corresponding plugins ( #4477 )
2018-05-14 20:52:27 +08:00
Ika
1062f2a889
feat: support JSON.stringify formatting ( #4450 )
...
* test: move tests
* feat: support legacy JSON formatting
* fix: add missing assertion
* test: fix coverage
* fix: same output as JSON.stringify
* refactor: fix linting
* refactor: rename to json-stringify
* refactor: fix linting
* fix: should fix the production build
* docs: remove outdated name
* fix(playgound): add lib/parser-json-stringify.js
* feat(playgound): add example for json-stringify
* fix: no error on singleQuote string
* fix(playground): correctly load json-stringify
* fix: identifier is only allowed in ObjectProperty.key
* refactor: clearer
2018-05-14 09:12:25 +08:00
Ika
6447d30b0b
feat(markdown): change unordered list symbol to hyphen ( #4440 )
2018-05-10 14:32:52 +08:00
Ika
92485601eb
refactor: fix linting
2018-05-10 02:27:56 +08:00
Ika
0f02940de2
refactor(javascript): move loc util ( #4443 )
2018-05-10 02:23:40 +08:00
Ika
3fe790d4b7
refactor: fix linting
2018-05-08 12:42:02 +08:00
Ika
76a5f3c7b6
fix(typescript): add missing qualifier and typeof in TSImportType ( #4438 )
2018-05-08 12:35:12 +08:00
Ika
df3eb0cf68
refactor(massageAst): move target props to corresponding plugins ( #4430 )
2018-05-08 10:48:29 +08:00
Ika
cc4392e5c0
feat(typescript): support TSImportType ( #4429 )
...
* feat(typescript): support TSImportType
* test: add singleQuote test
2018-05-07 07:57:57 +08:00
Ika
7e81a613b5
feat(javascript): support jest-each template string ( #4423 )
...
* feat(javascript): support jest-each
* test: add trailing newline
* fix: there can be no trailing newline
* refactor: simplify regex
* refactor: Array.from
* refactor
* fix: print quasis safely
2018-05-06 14:52:34 +08:00
Ika
9cc5d4f162
fix(json): jsonc is considered JSON instead of JSON5 ( #4374 )
...
* fix(json): jsonc in consider JSON instead of JSON5
* feat: add json5 id
2018-04-27 00:09:36 +08:00
Ika
ff38aaff95
fix(javascript): correct escape for markdown in js ( #4381 )
...
* test: add tests
* fix(javascript): correct escape for markdown in js
* test: add trailing newline
2018-04-26 13:22:43 +03:00
Ika
b46a46b112
fix(playground): add missing input code sample for copy markdown ( #4382 )
2018-04-26 00:37:29 -03:00
Ika
289b98c125
feat(json): enforce StringLiteral-style property key ( #4371 )
...
* test: add tests
* feat(json): enforce StringLiteral-style property key
2018-04-26 00:00:07 +08:00
Ika
317f3a3c56
feat: split out JSON5 ( #4367 )
...
* feat: split out JSON5
* test: update snapshots
* test: update debug-check tests
* feat(playground): use JSON's code sample for JSON5
* fix: add missing trailing newline
2018-04-25 22:10:22 +08:00
Ika
6b2be99b53
docs(plugins): add parser.preprocess ( #4365 )
...
* docs(plugins): add parser.preprocess
* docs: fix linting
2018-04-25 00:41:39 +08:00
Ika
6a17474e37
feat(typescript): support generic JSX element ( #4268 )
...
* feat(typescript): support generic JSX element
* fix(playground): `buffer is not defined` in `--parser typescript`
* chore(deps): update typescript-eslint-parser
2018-04-24 08:45:31 -05:00
Ika
643e2a83d6
feat(typescript): support TaggedTemplateExpression typeParameters ( #4353 )
...
* test: add tests
* feat(typescript): support TaggedTemplateExpression typeParameters
* fix(playground): `buffer is not defined` in `--parser typescript`
* chore(deps): update typescript-eslint-parser
2018-04-24 08:45:06 -05:00
Ika
586b55b326
docs(api): language.since is now optional ( #4363 )
2018-04-24 21:00:52 +08:00
Ika
1f84880fb1
refactor: remove duplicate mapDoc ( #4310 )
2018-04-15 00:07:03 +08:00
Ika
5d7b14856b
fix(schema): support array type ( #4312 )
...
* test: add test
* fix(schema): support array type
* fix: convince CI
* refactor: another way to convince CI
2018-04-15 00:06:43 +08:00
Ika
8e8a8d50cf
refactor(doc-utils): move rawText to printer-estree ( #4309 )
2018-04-14 00:05:00 +08:00
Ika
c814a9fa4d
fix(markdown): null check for code.lang ( #4307 )
2018-04-13 17:50:33 +08:00
Ika
c052d9c086
test(markdown): update snapshot ( #4283 )
2018-04-09 08:20:29 +08:00
Ika
0c1d62079e
feat(markdown): support hasPragma/insertPragma ( #4275 )
...
* feat(markdown): support hasPragma/insertPragma
* test: add require-pragma tests
* feat: support pragma with front matter
* feat: support pragma in multiline comment
2018-04-09 00:10:24 +08:00
Ika
4bc80d8c64
fix(markdown): remove unnecessary empty line in front matter ( #4280 )
...
* test: add tests
* fix(markdown): remove unnecessary empty line in front matter
2018-04-08 00:05:27 +08:00
Ika
01e8e2bb8a
refactor(markdown): use built-in ignore ( #4274 )
2018-04-07 00:19:26 +08:00
Ika
7029346887
fix(playground): correct rangeStart/rangeEnd value ( #4273 )
2018-04-06 22:06:33 +08:00
Ika
93caa7642e
chore: add a script to generate schema ( #4248 )
...
* chore: add a script to generate schema
* typo fix
* refactor
2018-04-05 00:59:50 +08:00
Ika
1b09fde361
feat(markdown): support top-level prettier-ignore-start/end ( #4202 )
...
* test: add tests
* feat(markdown): support top-level `prettier-ignore-start/end`
* docs(ignore): add range ignore
2018-03-27 00:03:28 +08:00
Ika
23cd5d44f7
fix(playground): no undefined parsers ( #4159 )
2018-03-16 11:37:08 -03:00
Ika
0c09e150ba
feat(markdown): support fenced codeblock lang followed by attributes ( #4153 )
...
* test: add tests
* feat(markdown): support fenced codeblock lang followed by attributes
ref: https://shd101wyy.github.io/markdown-preview-enhanced/#/code-chunk
* refactor: set limit
2018-03-16 00:25:39 +08:00
Ika
836fd1ddcf
fix(markdown): correct html indentation ( #4115 )
...
* test: add test case
* fix(markdown): correct html indentation
2018-03-08 00:06:22 +08:00
Ika
2b283908cf
fix(markdown): print literalline for newline instead of hardline ( #4083 )
...
* test: add tests
* fix(markdown): print literalline for newline instead of hardline
* test: add tests
2018-03-01 14:42:20 +02:00
Ika
0ce4ce3138
fix(api): no regression for deprecated parser ( #4072 )
2018-03-01 00:14:30 +08:00
Ika
b6c27893cc
fix(markdown): list prefix alignment: count spaces from correct place ( #4041 )
...
* test: add tests
* fix(markdown): list prefix alignment: count spaces from correct place
* docs: codeblock -> code block
2018-02-26 08:53:09 +08:00
Ika
ca81bef73e
fix(markdown): list prefix: no unnecessary trailing spaces ( #4042 )
...
* fix(markdown): list prefix: no unnecessary trailing spaces
* refactor
2018-02-26 08:52:49 +08:00
Ika
c1107a86dd
feat(markdown): respect tabWidth for list items ( #3990 )
...
* feat(markdown): respect tabWidth for list items
* test: ensure no regression for #3459
2018-02-24 19:13:02 +11:00
Ika
8f6a32853c
feat(typescript): support definite assignment (!:) ( #4020 )
2018-02-22 01:40:57 +08:00
Ika
4a4bd2faed
fix(typescript): support unique symbol ( #3967 )
...
* test(typescript): add failing test
* chore(deps): update typescript-eslint-parser to v13.0.0
* fix(typescript): support `unique symbol`
2018-02-14 01:03:53 +08:00
Ika
47714f5d4b
feat(plugins): change external options to be plugin-level ( #3924 )
2018-02-09 00:06:38 +08:00
Ika
84c603623d
feat: support external options ( #3775 )
...
* refactor: wrap
* refactor: replace
* refactor: replace
* refactor: replace
* refactor: extract
* refactor: logger
* refactor
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* feat(support): add `showInternal` option
* refactor: use internal
* refactor
* refactor: extract
* refactor: extract
* refactor
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: reorder
* refactor: remove unnecessary
* refactor: reorder
* refactor: move
* refactor
* refactor
* refactor
* refactor: remove unnecessary
* feat: external options from CLI
* refactor: push/pop plugins
* feat: external options from config file
* refactor: remove unnecessary
* refactor
* refactor
* refactor
* fix: use `json-stable-stringify`
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: move
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: extract
* refactor: move
* refactor: extract
* docs: add comments
* refactor: sort
* refactor: sort
* refactor: rename
* refactor: remove unnecessary
* style: remove trailing whitespace
2018-01-28 00:24:25 +08:00
Ika
b529c634d1
fix(markdown): print multiline content correctly in footnoteDefinition ( #3787 )
...
* fix(markdown): print multiline content correctly in footnoteDefinition
* refactor: replace `ifBreak(line)` with `softline`
* refactor: fix linting
2018-01-27 00:48:47 +08:00
Ika
03292a6488
fix(javascript): ternary with --use-tabs ( #3745 )
...
* test: add test cases
* test: add test cases
* fix(javascript): ternary with `--use-tabs`
* chore: add istanbul ignore comment
* fix: remove unnecessary condition
* docs(commands): update `align`
* fix: do not transform the middle part
* refactor: markAsRoot
* fix: print tabs in sub-ternaries
* docs(commands): update
* test: add a cool test case
2018-01-26 10:02:42 +08:00
Ika
08b9e07207
fix(markdown): update remark-parse to v5.0.0 ( #3780 )
...
* fix(markdown): update remark-parse to v5.0.0
* test(markdown): ensure links with entities printed correctly
* test(markdown): ensure lists interrupted by headings
2018-01-21 12:31:30 +08:00
Ika
dc26445e51
refactor(options): use supportOptions to generate CLI options ( #3622 )
...
* refactor(cli-constant): use supportOptions
* refactor(options): use supportOptions
* refactor(cli-util): use supportOptions
* fix: do not infer parser in multiparser
* chore: remove unnecessary package
* chore: trigger another travis build
* test: add kebab-case test to ensure no regression
* test: update snapshots
2018-01-18 15:26:27 +08:00
Ika
de6bc4448f
fix(multiparser): respect 0-indent markdown-in-js ( #3676 )
...
* fix(multiparser): respect 0-indent markdown-in-js
* fix: use literalline for 0-indent
* test: add unexpected case
* fix: 0-indent
* test: add failing test
* refactor: simplify
* fix(doc): literallines respect `ind.root`
* docs: update commands
* fix: what a magic...
2018-01-17 12:52:42 +08:00
Ika
2dd311d554
fix(javascript): indentation for sub-ternaries ( #3747 )
...
* test: add test cases
* test: add test cases
* fix(javascript): indentation for sub-ternaries
* test: update test cases
* fix: no extra tab for `tabWidth: 4`
2018-01-16 11:32:25 +08:00
Ika
3df7d60a7f
feat(markdown): respect tabWidth for list indentation ( #3694 )
...
* test: add test case
* feat(markdown): respect `tabWidth` for list indentation
* test: add extreme `tabWidth` test case
2018-01-10 18:45:22 +11:00