Commit Graph

386 Commits (master)

Author SHA1 Message Date
fisker Cheung 9c46c88a98 Update `jest-junit` to v8 (#6549) 2019-09-28 19:21:11 +03:00
fisker Cheung 6e5cef01ab Update `remark-math` to v1.0.6 (#6556)
* Update `remark-math` to v2

* Update `remark-math` to v1.0.6
2019-09-28 16:40:13 +02:00
fisker Cheung 261e775606 Update `@babel/core` and `@babel/preset-env` to v7.6.2 (#6557) 2019-09-28 16:39:49 +02:00
fisker Cheung b69deca1dc Update flow-parser to v.89.0 (#6555) 2019-09-28 16:35:02 +02:00
fisker Cheung 7f389e1f60 Update `shelljs` to v0.8.3 (#6552) 2019-09-28 16:32:39 +02:00
fisker Cheung e742a1c80b Update `html-element-attributes` to v2.1.0 (#6537) 2019-09-28 16:32:18 +02:00
fisker Cheung 2a995cab42 Update `strip-ansi` to v5 (#6554) 2019-09-28 15:45:24 +02:00
fisker Cheung 0610862f56 Update `dashify` to v2 (#6531) 2019-09-28 15:44:20 +02:00
fisker Cheung d1ec5975c4 update `cosmiconfig` to v5.2.1 (#6530) 2019-09-28 15:43:06 +02:00
fisker Cheung 496c5a208a update `camelcase` to v5.3.1 (#6528)
* update `camelcase` to v5.3.1

* update yarn.lock
2019-09-28 15:42:43 +02:00
fisker Cheung 7ec1af1cbd update `editorconfig` to v0.15.3 (#6533) 2019-09-28 15:41:30 +02:00
fisker Cheung 27bef857df Update `rimraf` to v3 (#6551) 2019-09-28 15:40:47 +02:00
fisker Cheung f86a5bfae3 Update `webpack` to v4.41.0 (#6560)
* Update `webpack` to v4.41.0

* update cache version
2019-09-28 15:40:28 +02:00
fisker Cheung eeb4734b23 Update `resolve` to v1.12.0 (#6542) 2019-09-28 15:40:05 +02:00
fisker Cheung 1125936063 Update `html-tag-names` to v1.1.4 (#6553) 2019-09-28 15:39:32 +02:00
fisker Cheung 28b06e9400 Update `eslint-plugin-prettier` to v3.1.1 (#6558) 2019-09-28 15:39:11 +02:00
fisker Cheung 3fb6d0b88a Update `linguist-languages` to v7.6.0 (#6489) 2019-09-24 18:53:31 +02:00
fisker Cheung 24ffeba8f6 Update `@angular/compiler` to v8 (#6498) 2019-09-23 18:36:31 +02:00
fisker Cheung f000fb1e88 Update babel related deps (#6485) 2019-09-16 08:33:59 -03:00
fisker Cheung a0eddb1c8c Update rollup related deps (#6484) 2019-09-16 08:33:40 -03:00
fisker Cheung 35b6cdcef3 Update eslint related deps (#6483) 2019-09-16 08:33:11 -03:00
fisker Cheung 71d9a08488 Minify postcss parser (#6395)
* Update webpack to v4

* add todo

* add link

* Minify postcss parser

* update yarn.lock

* chore: update yarn.lock
2019-09-16 12:13:32 +03:00
fisker Cheung 5ce16eaa02 Update linguist-languages to v7 (#6367)
* Update linguist-languages to v7

* Trigger build

* Update

* replace `includes` with `indexOf`

* fix `exclude`

* add `nodejs` back
2019-09-14 00:57:16 +03:00
fisker Cheung 370e827217 Update webpack to v4 (#6366)
* Update webpack to v4

* add todo

* add link
2019-09-14 00:55:30 +03:00
dependabot[bot] 7c47135f61 Bump mixin-deep from 1.3.1 to 1.3.2 (#6432)
Bumps [mixin-deep](https://github.com/jonschlinkert/mixin-deep) from 1.3.1 to 1.3.2.
- [Release notes](https://github.com/jonschlinkert/mixin-deep/releases)
- [Commits](https://github.com/jonschlinkert/mixin-deep/compare/1.3.1...1.3.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-29 20:15:35 +02:00
dependabot[bot] 5c976c4636 Bump eslint-utils from 1.3.1 to 1.4.2 (#6421)
Bumps [eslint-utils](https://github.com/mysticatea/eslint-utils) from 1.3.1 to 1.4.2.
- [Release notes](https://github.com/mysticatea/eslint-utils/releases)
- [Commits](https://github.com/mysticatea/eslint-utils/compare/v1.3.1...v1.4.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-08-27 07:08:46 +02:00
Chris Brody 4b96097a8d get-stream@4.1.0 update in package dependencies (#6372) 2019-08-09 16:42:02 +03:00
fisker Cheung 494e3b7428 Update babel (#6368)
* Update `@babel/core` & `@babel/preset-env` to latest

* Update `@babel/code-frame`
2019-08-08 15:00:42 +03:00
fisker Cheung c5cf747b26 Update rollup to v1.19.4 (#6365) 2019-08-08 13:23:04 +03:00
fisker Cheung 0e77cd3d33 Update ESLint to v6 (#6364) 2019-08-08 13:21:32 +03:00
Gabriel Harel 6fae09b67e Add --only-changed flag to CLI (#5910) 2019-07-22 11:17:24 -03:00
Lucas Duailibe 91a7aa081e
Fix more bugs with double slash in TSX (#6289) 2019-07-11 11:27:53 -03:00
dependabot[bot] 712b44b814 Bump mem from 1.1.0 to 4.0.0 (#6275)
Bumps [mem](https://github.com/sindresorhus/mem) from 1.1.0 to 4.0.0.
- [Release notes](https://github.com/sindresorhus/mem/releases)
- [Commits](https://github.com/sindresorhus/mem/compare/v1.1.0...v4.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-07-10 08:19:50 -03:00
Gavin Joyce 12b8176d5d [Glimmer] preserve html entities (#6234) 2019-07-08 11:07:41 +02:00
Chris Brody cacaa92a3f @glimmer/syntax 0.39.3 update (#5983) 2019-06-18 08:50:51 -03:00
dependabot[bot] 35d7e36356 Bump diff from 3.2.0 to 3.5.0 (#6221)
Bumps [diff](https://github.com/kpdecker/jsdiff) from 3.2.0 to 3.5.0.
- [Release notes](https://github.com/kpdecker/jsdiff/releases)
- [Changelog](https://github.com/kpdecker/jsdiff/blob/master/release-notes.md)
- [Commits](https://github.com/kpdecker/jsdiff/compare/v3.2.0...v3.5.0)

Signed-off-by: dependabot[bot] <support@github.com>
2019-06-14 11:26:46 -03:00
fisker Cheung 24f161db56 Bump `eslint` (#6201) 2019-06-12 11:40:05 -03:00
Lucas Duailibe 4e8f911a29
Print comment following a JSX generic (#6209) 2019-06-10 09:30:54 -03:00
Lucas Duailibe 3805034bdf Improve Rollup setup 2019-06-07 18:20:40 -03:00
fisker Cheung 99d4b86c18 Rollup update (#6200) 2019-06-07 16:58:05 -03:00
Lucas Duailibe 3609d56417 Bump Prettier dependency to 1.18.2 2019-06-07 11:57:01 -03:00
Lucas Duailibe 4cc99242a8 Bump Prettier dependency to 1.18.0 2019-06-06 18:48:11 -03:00
dependabot[bot] 3270ebf6f0 Bump handlebars from 4.0.10 to 4.1.2 (#6183)
Bumps [handlebars](https://github.com/wycats/handlebars.js) from 4.0.10 to 4.1.2.
- [Release notes](https://github.com/wycats/handlebars.js/releases)
- [Changelog](https://github.com/wycats/handlebars.js/blob/master/release-notes.md)
- [Commits](https://github.com/wycats/handlebars.js/compare/v4.0.10...v4.1.2)

Signed-off-by: dependabot[bot] <support@github.com>
2019-06-06 09:50:20 -03:00
Gavin Joyce 79fe6d8ab2 [Glimmer] update @glimmer/syntax to "0.38.4" (#6185) 2019-06-06 09:49:47 -03:00
dependabot[bot] 7d4492d3ef Bump js-yaml from 3.10.0 to 3.13.1 (#6182)
Bumps [js-yaml](https://github.com/nodeca/js-yaml) from 3.10.0 to 3.13.1.
- [Release notes](https://github.com/nodeca/js-yaml/releases)
- [Changelog](https://github.com/nodeca/js-yaml/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nodeca/js-yaml/compare/3.10.0...3.13.1)

Signed-off-by: dependabot[bot] <support@github.com>
2019-06-06 09:48:46 -03:00
dependabot[bot] 3f906ec07c Bump sshpk from 1.13.1 to 1.16.1 (#6173)
Bumps [sshpk](https://github.com/joyent/node-sshpk) from 1.13.1 to 1.16.1.
- [Release notes](https://github.com/joyent/node-sshpk/releases)
- [Commits](https://github.com/joyent/node-sshpk/compare/v1.13.1...v1.16.1)
2019-06-04 12:45:35 -03:00
Lucas Duailibe bb1fd59e00
Remove eval() call from the bundle (#6129) 2019-05-17 10:15:45 -03:00
Lucas Duailibe 7bb32f41f5 Bump Prettier version 2019-05-13 10:55:54 -03:00
Lucas Duailibe ff79721397 Bump Prettier dependency to 1.17.0 2019-04-12 17:44:48 -03:00
Chris Brody 4d6ce371fe ignore 4.0.6 update (#5987) 2019-04-08 16:38:20 -03:00
Chris Brody 9dbe96705d @angular/compiler 7.2.9 update (#5985) 2019-04-08 16:28:49 -03:00
Chris Brody dbd09175f2 @babel/code-frame 7.0.0 update (#5986) 2019-04-05 00:37:57 +03:00
Adrian Zgorzałek 9cb50add5e graphql: Support variable directives. (#6020) 2019-04-04 09:47:05 -03:00
Ika f4bcb13d41
feat(typescript): support TS 3.4 (#6027)
- add support for `readonly` operator
- `as const` was already supported, added tests to ensure no regression
2019-04-04 15:32:54 +08:00
Ika dd7715ae85 Bump Prettier dependency to 1.16.4 2019-02-03 20:35:04 +08:00
Ika 154435bb36 Bump Prettier dependency to 1.16.3 2019-01-31 12:23:34 +08:00
Ika cb8d300ca0 Bump Prettier dependency to 1.16.2 2019-01-30 16:24:57 +08:00
Alexander Kachkaev 36aeb4ce4f Fix CI detection to avoid unwanted TTY behavior (#5804) 2019-01-30 14:08:03 +08:00
James Henry 1143619600
chore: update typescript-estree to new package name (#5799) 2019-01-28 19:46:51 -05:00
Ika 7faa2608c1 Bump Prettier dependency to 1.16.1 2019-01-22 21:54:32 +08:00
Ika 32f7e03906 Bump Prettier dependency to 1.16.0 2019-01-20 16:01:28 +08:00
James Henry 8ac0a731a4
chore: update typescript-estree to 18.0.0 (#5750) 2019-01-12 17:02:16 -05:00
James Henry ef6386015d fix: update typescript and typescript-estree to latest (#5728) 2019-01-12 11:10:52 +08:00
Ika f94f63b040
chore: update azure pipelines (#5611)
- upload coverage report (codecov) from azure pipelines
- only build `dist` once (`dist` is now shared between production jobs)
- run production tests on macOS (not sure why but it's faster than others)
- extract shareable steps
- remove travis/circle
2018-12-18 08:16:32 +08:00
mattia richetto 031f6e860f Update string-width to support emoji natively (#5646)
the `string-width` package v3 now supports emoji width https://github.com/sindresorhus/string-width/pull/17
2018-12-18 08:13:12 +08:00
Brian Ng 8e612f05a0
Add support for class private methods (#5637) 2018-12-14 09:45:26 -06:00
Ika ffc8482458
fix(vue): tag names are case-sensitive (#5606) 2018-12-13 10:31:48 +08:00
Ika 952bc0cc03
fix: get rid of CRLF (#5494) 2018-12-08 18:28:29 +08:00
Ika 525c076be8 Bump Prettier dependency to 1.15.3 2018-11-30 10:30:52 +08:00
Ika 3cd1d003c0
fix(typescript): do not throw errors on bigint keyword (#5577)
- fix `Error: unknown type: "TSBigIntKeyword"`
- bump typescript to stable version
2018-11-30 10:12:32 +08:00
Ika 28b938da97
feat(html): update angular-html-parser (#5565)
- support [`htm`](https://github.com/developit/htm) (`<${Component}>content<//>`, `<div />`)
- preserve [bogus comments](https://www.w3.org/TR/html5/syntax.html#bogus-comment-state) (`<! ... >`, `<? ... >`)
2018-11-29 11:03:22 +08:00
Wei-Wei Wu c28dc2f19c Updating cosmiconfig to not cache .js config files when told not to (#5558) 2018-11-29 09:49:33 +08:00
Ika 05ad885c3c
feat(typescript): support BigInt (#5546) 2018-11-27 16:53:34 +08:00
Ika 99a3efaa7a
fix: update editorconfig-to-prettier (#5550) 2018-11-26 13:08:52 +08:00
Ika a50a8e258c
fix(javascript): upgrade @babel/parser to 7.1.6 (#5530) 2018-11-24 21:47:47 +08:00
Evilebot Tnawi e588533e16
chore(deps): update `postcss-scss` (#5481)
* chore(deps): update `postcss-scss`

* chore: trigger build
2018-11-15 17:23:26 +03:00
Ika 5726df774e Bump Prettier dependency to 1.15.2 2018-11-11 01:10:29 +08:00
Ika 6fafd0a48d
fix(angular): correctly print unary expression with `+` (#5405) 2018-11-10 01:01:18 +08:00
Ika 7f472d72ae
fix(angular): handle parens in ng expression correctly (#5387) 2018-11-09 00:06:16 +08:00
Ika 5e8ab7a104 chore: update changelog and lock 2018-11-07 10:23:10 +08:00
Ika 306cce5b10 Bump Prettier dependency to 1.15.1 2018-11-07 10:21:18 +08:00
Ika 514b6d3741 Bump Prettier dependency to 1.15.0 2018-11-07 09:12:25 +08:00
Brian Ng e882452c54 Bump @babel/parser (#5356)
Follows #5304 with flow inexact support in @babel/parser!
2018-11-07 08:42:11 +08:00
Alexander Kachkaev b87fe4cf22 Add option to enforce certain line endings (#5327) 2018-11-06 22:47:13 +08:00
Ika f6a95dd2e0 chore(deps): replace parse-srcset with the gh commit one
to avoid potential changes
2018-11-04 23:19:41 +08:00
Ika 5e8a4a115a
feat: support HTML/Vue/Angular (#5259) 2018-11-04 23:03:07 +08:00
Sibiraj 2402a2a07b build: update editorconfig to resolve a deprecated warning (#5307)
This resolves a deprecated warning when installing prettier.

[image](https://user-images.githubusercontent.com/20282546/47603753-0995a700-da0e-11e8-9c89-61e0ff3d13c9.png)
2018-10-28 15:01:53 +08:00
Jordan Brown 5d47e02f64 Update flow parser to 0.84.0 (#5303) 2018-10-26 22:14:47 +08:00
Ika dd4687e7ef
feat(html): whitespace-sensitive formatting (#5168)
- whitespace-sensitive formatting 
  - respect css `display: block`/`white-space: pre` (data from [`html-styles`](https://github.com/marionebl/html-styles))
  - support magic comment (`<!-- display: block -->`)
  - add an option to specify whitespace sensitivity (`--html-whitespace-sensitivity <css|strict|ignore>`)
    - magic comments take precedence
    - (default) `css`: respect default css style (safe in the most cases)
    - `strict`: every node is considered whitespace sensitive (the safest)
    - `ignore`: every node is considered whitespace insensitive (dangerous, the original behavior)
  - inline inline-tags 
- support ie conditional comment (`<!--[if IE]><![endif]-->`)
- indent the script/style content
- no inconsistent output for 2+ attributes
- force break tag if there're multiline attributes
2018-10-13 13:55:38 +08:00
Petter 1244729ad7 Infer via shebang (#5149)
If no file type can be inferred, this attempts to read the first line of a file and extract a shebang, which can be checked against a known list.
2018-10-05 08:47:23 +08:00
Brian Ng 5315e6fe7a
Bump babel-related deps (#5180) 2018-10-02 20:44:54 -05:00
Ika 07abf0588e
fix(html): non-HTML attributes are considered case-sensitive (#5135) 2018-09-27 20:18:00 +08:00
James Henry 81cf08118e
Drop-in replacement: typescript-estree for typescript-eslint-parser (#5139) 2018-09-25 15:44:21 -04:00
Ika 13147facc5
feat(html): switch to htmlparser2 (#5127)
- switch to [`htmlparser2`](https://github.com/fb55/htmlparser2)
  - no need to fork
  - won't generate pseudo nodes ([`parse5` will](https://github.com/prettier/prettier/issues/5098#issuecomment-423055181))
  - should be [faster](https://github.com/fb55/htmlparser2#performance)
- support custom self-closing tags
- support HTML entities
- remove extra trailing newline for `<template>`
- distinguish empty/empty-string attributes (`<tag x>`/`<tag x="">`)
- rename `--parser parse5` with `--parser html`
- enable `html` since 1.15, which means it's enabled by default if you install the dev version from GitHub after this PR merged.
2018-09-22 21:53:38 +08:00
Ika 8e88f52225 chore: bump Prettier dependency to 1.14.3 2018-09-19 21:02:43 +08:00
Evilebot Tnawi 8b0bdf52be [WIP] feat: html support (#4753)
* feat: html support

* fix: support empty lines between children

* refactor: isScriptTagNode util

* refactor: rename `glimmer` and `handlebars` tests

* fix don't add newline after `directive` node

* fix: support `pre` tag

* fix: don't trim comments content

* fix: `script` and `style` tags output

* feat: indent `head` and `body` inside `html`

* fix: better handle quotes around attribute value

* feat: better handle embed

* tests: svg into html

* fix: better handle boolean and empty attributes

* chore(deps): update `parse5` to latest version

* fix: better handle empty attribute

* tests: fix

* fix: extra newline in multiline node

* fix: print `pre` and `textarea` in right way

* tests: xhtml doctype

* fix: use `>` instead `/>`

* tests: case

* refactor: remove `toLowerCase()`

* feat: support `prettier-ignore`

* tests: empty `script` and `style` tags

* fix: clean

* tests: refactor and more
2018-09-13 07:06:49 -06:00
Ika a1545a835a
feat(markdown): preserve math (#5050)
- preserve inlineMath (`$inline$`) and blockMath:

  ```md
  $$
  block
  $$
  ```
- side effect: `$` always needs to be escaped.
2018-09-05 21:07:37 +08:00
Ika 91206891cd
fix(markdown): do not add whitespaces between Latin and Hangul (#5040)
Based on https://github.com/prettier/prettier/issues/5028#issuecomment-417825085, it seems Korean text uses conventional space so we're not going to add whitespaces between Latin and Hangul.
2018-09-02 16:20:22 +08:00
Ika db2bc3636d
fix(yaml): update parsers (#5027)
- upgrade to `yaml@1.0.0-rc.8` and `yaml-unist-parser@1.0.0-rc.4`
- refactor some logic since the AST has slightly changed (ikatyang/yaml-unist-parser#82)
- unmatched aliases are now errors since it may introduce invalid AST from `yaml`
- rewrite the document separator (`...`/`---`) logic, this fixes some cases where it can use `---` but we printed `...`
- removed some unnecessary duplicate trailing newline
- trailing comments on `document` (`... #comment`) and `documentHead` (`--- #comment`) are preserved (i.e. they won't be moved somewhere)
2018-09-01 20:04:37 +08:00
Ika 55e620bdc7
chore: extract jest snapshot serializers (#5034) 2018-09-01 12:11:19 +08:00