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
Ika
7e24d3ff79
fix(playground): avoid assign to readonly error on Safari ( #3668 )
...
* fix(playground): suppress`assign to readonly` error
* fix(playground): avoid `assign to readonly` error
2018-01-10 18:02:49 +11:00
Ika
5e2e7a2881
feat(playground): add example placeholder ( #3657 )
...
* feat(playground): add example placeholder
* Add TypeScript example
* fix: mock process.binding
* fix: add missing comma
* refactor: use legacy function
* fix: mock return `{}`
* Return the error stack when there’s a non-SyntaxError thrown
* Code style
* fix: mock path.resolve
* chore: cache placeholder.js
* fix mock path.resolve attempt 2
* fix: mock path.{parse,join,dirname}
* fix: mock process.cwd
* fix: mock path.parse root
2018-01-07 06:59:14 -05:00
Ika
445b4afc73
docs(readme): travis master badge ( #3666 )
2018-01-07 20:06:25 +11:00
Ika
dbe0758b48
chore: shorten filename ( #3636 )
...
Context: https://github.com/prettier/prettier/pull/3627#issuecomment-354935942
2018-01-02 23:48:46 -05:00
Ika
a627ca7b5d
docs: minor tweaks ( #3627 )
...
* docs(blog): replace `:emoji:` with `${emoji}`
* docs(blog): move images to assets
* docs(index): move images to assets
* docs(index): fix typo
2018-01-03 00:04:22 +08:00
Ika
6c0dd74518
feat(support-info): add options field ( #3433 )
...
* refactor: rename supportTable with supportLanguages
* refactor: use `dedent`
* test: reduce unnecessary data
* feat(support-info): add `options` field
* add `showDeprecated` option
* add `showUnreleased` option
* test: snapshot diff
* fix(support): add missing `since`
* fix: add missing `category`
* refactor: use template tag
* fix: `trailingComma:true` should redirect to `trailingComma:es5`
* refactor: reorder parser
* refactor: fix linting
* refactor: move options
* refactor: move options to printers
2017-12-31 15:34:37 +11:00
Ika
8a86c0cc9f
fix(playground): fix report version ( #3614 )
2017-12-31 12:12:56 +11:00
Ika
6872ed8310
fix(markdown): replace newlines with hardlines in multiparser ( #3611 )
...
* test: add failing test
* fix(markdown): replace newlines with hardlines in multiparser
2017-12-30 10:33:58 -05:00
Ika
0af436cd47
fix(playground): use prVersion ( #3613 )
2017-12-31 00:54:36 +11:00
Ika
47f05d12f5
docs(changelog): fix typo ( #3420 )
2017-12-06 13:20:01 +08:00
Ika
e09359d242
fix(doc-printer): no wrong function call ( #3401 )
2017-12-05 20:09:36 +08:00
Ika
f3e7ca2210
chore(playground): add new options ( #3350 )
2017-12-05 21:22:10 +11:00
Ika
1122701053
fix(doc-printer): respect indent/align order ( #3383 )
2017-12-05 08:59:27 +11:00
Ika
c1623d88e6
feat(markdown): preserve break style ( #3325 )
2017-12-03 15:02:13 +11:00
Ika
073c0b16d8
feat(markdown): add proseWrap: "preserve" option ( #3340 )
...
* test: add test case
* feat(markdown): add `proseWrap: "preserve"` option
* test: add tests
* docs(options): update `proseWrap`
* feat(markdown): change default to `proseWrap: "preserve"`
BREAKING CHANGE
* docs(options): update `proseWrap`
* test: specify option explicitly
* Fix lint after merge
* Fix error after merge
2017-12-02 09:48:40 +11:00
Ika
23c306c8a0
docs(index): fix links on GitHub ( #3367 )
2017-12-01 10:59:17 +08:00
Ika
7670024292
fix(markdown): do not break before special prefix ( #3347 )
2017-11-30 08:43:22 +11:00
Ika
fbbfa52517
fix(markdown): do not print linebreaks in heading ( #3343 )
2017-11-29 22:13:38 +11:00
Ika
ac3f74e7a3
docs(options): add available version for arrow-parens ( #3339 )
2017-11-29 00:20:26 +08:00
Ika
9b4ecec183
fix(markdown): preserve non-breakable whitespaces ( #3327 )
2017-11-27 19:37:52 +11:00
Ika
1c9ee6c5a7
chore(website): ignore <!-- prettier-ignore --> before passing into Docusaurus ( #3326 )
...
prettier-ignore -->` before passing into Docusaurus
2017-11-27 19:32:20 +11:00
Ika
a1d878acc7
fix(cli): respect --ignore-path when using --stdin-filepath ( #3309 )
2017-11-23 21:54:04 +11:00
Ika
76efb33e75
chore: setup markdown formatting ( #3224 )
...
* chore(deps): upgrade prettier to v1.8.2
* chore: setup lint-docs script
* docs: add `<!-- prettier-ignore -->`s
* docs: format docs
* Revert "docs: format docs"
This reverts commit 6dba903987dddc498cb589ca311905f25b6aee53.
* chore(prettierrc): set `--no-prose-wrap`
* docs: format docs
* Revert "docs: format docs"
This reverts commit 139bd744b6921916be8fac4fa3bab83bae5d12df.
* docs: tweak
* docs: format docs
* chore: rename .prettierrc
* chore: rename back to .prettierrc
* chore: split out third-party
* refactor: fix linting
* chore: do not split out third-party on website
2017-11-22 22:27:40 +11:00
Ika
d5a3abd7a6
fix(markdown): only indent the first non-list node in checkbox list item ( #3297 )
...
* fix(markdown): do not indent checkbox
* fix: keep alignment for first non-list node
* fix: force whitespaces
2017-11-22 00:01:59 +08:00
Ika
3cbbac3d08
fix(multiparser): fix markdown error and remove trailing new line ( #3293 )
2017-11-21 00:19:49 +08:00
Ika
b6f126eb29
feat(markdown): support TOML ( #3290 )
2017-11-19 17:38:25 +11:00
Ika
378cfee508
refactor(markdown): expose hasPunctuation to AST for better debugging ( #3272 )
...
* refactor(markdown): extract `punctuationRegex`
* refactor: expose `has(Leading|Trailing)Punctuaion` to AST for better debugging
* refactor: tweak
* refactor: tweak
* fix: no regression
* test: fix typo
2017-11-16 13:59:01 +08:00
Ika
b6b601815c
docs(webstorm): improve image urls ( #3261 )
2017-11-14 18:37:15 +11:00
Ika
5820ec1e11
chore(website): fix logo filename ( #3258 )
2017-11-13 21:50:27 +08:00
Ika
d08df0b221
fix(markdown): handle punctuation variants ( #3254 )
...
* fix(markdown): handle punctuation variants
* docs: add comment
2017-11-13 00:09:04 +08:00
Ika
bddbd1914d
fix(markdown): no extra whitespace between ascii punc and CJK char ( #3249 )
...
* fix(markdown): no extra whitespace between ascii punctuation and CJK character
* test: update snapshot
2017-11-12 00:38:18 +08:00
Ika
4ae52c5aa6
fix(markdown): do not enable splitText in inlineCode ( #3243 )
2017-11-12 00:29:59 +08:00
Ika
1cde865a11
fix(markdown): no extra whitespace between non-cjk and cjk-punctuation ( #3244 )
...
* fix(markdown): no extra whitespace between non-cjk and cjk-punctuation
* fix: no node v4 unsupported feature
2017-11-12 00:08:24 +08:00
Ika
4c6a7e8749
fix(markdown): escape all emphasis-like text ( #3246 )
...
* fix(markdown): escape all emphasis-like text
* test: add test case
2017-11-12 00:07:58 +08:00
Ika
92459047ed
fix(markdown): force print spaces ( #3225 )
2017-11-11 15:05:07 +08:00
Ika
49f578fb91
fix(markdown): do not break inlineCode ( #3230 )
2017-11-11 12:50:40 +08:00
Ika
ed0f91f7be
feat(playground): add options ( #3222 )
...
* chore(playground): add options
* chore(playground): re-reorder options
2017-11-09 22:30:38 +11:00
Ika
adabed2c3f
chore(playground): add ruler for inputEditor ( #3221 )
2017-11-09 21:08:50 +11:00
Ika
ec15405e56
docs(editors): sort alphabetically ( #3219 )
2017-11-09 21:07:50 +11:00
Ika
c37e7fae2a
docs(options): add note for available version ( #3217 )
2017-11-09 13:39:07 +08:00
Ika
7fb8e3fe43
fix(markdown): no break on link ( #3204 )
...
* fix(markdown): link/image url head is breakable
* fix(markdown): no break on link
2017-11-09 08:19:35 +11:00
Ika
9652ad75f8
docs(website): fix link ( #3206 )
2017-11-09 00:49:39 +08:00
Ika
4f1a2c4108
feat(markdown): add --no-prose-wrap option ( #3199 )
...
* feat(markdown): add `--no-prose-wrap` option
* refactor: fix typo
* refactor: fix typo
* refactor: reduce duplicate code
* docs: mention the option is for markdown
2017-11-08 21:01:06 +11:00