Commit Graph
5172 Commits
Author SHA1 Message Date
dependabot[bot] 61bb04c2fe Build(deps-dev): Bump webpack from 5.11.0 to 5.11.1 (#9974)
Bumps [webpack](https://github.com/webpack/webpack) from 5.11.0 to 5.11.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.11.0...v5.11.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-29 21:04:52 +08:00
dependabot[bot] 60bbe79fc7 Build(deps-dev): Bump eslint-plugin-unicorn from 24.0.0 to 25.0.0 (#9969)
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 24.0.0 to 25.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v24.0.0...v25.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-29 20:44:12 +09:00
dependabot[bot] 8db9decfe8 Build(deps): Bump codemirror-graphql from 0.13.0 to 0.13.1 in /website (#9971)
Bumps [codemirror-graphql](https://github.com/graphql/graphiql) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/graphql/graphiql/releases)
- [Changelog](https://github.com/graphql/graphiql/blob/main/CHANGELOG.md)
- [Commits](https://github.com/graphql/graphiql/compare/codemirror-graphql@0.13.0...codemirror-graphql@0.13.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-29 17:11:10 +09:00
dependabot[bot] 3278c8cc6e Build(deps-dev): Bump webpack from 5.11.0 to 5.11.1 in /website (#9970)
Bumps [webpack](https://github.com/webpack/webpack) from 5.11.0 to 5.11.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.11.0...v5.11.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-29 17:10:13 +09:00
dependabot[bot] 1350f57941 Build(deps): Bump @typescript-eslint/typescript-estree (#9968)
Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 4.11.0 to 4.11.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/typescript-estree/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.11.1/packages/typescript-estree)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-29 17:07:41 +09:00
Christopher Chedeau eec3e82f48 Fix absolute path in custom CSS url() calls (#9966)
At Facebook we have some custom pre-processor `-fb-url(/abs/path/)` that gets messed up as `-fb-url(/ abs/path)`  with the current version of prettier.

The parser has hardcoded logic to only parse as path things that use `url()` but not `-fb-url()` and it parses it as `division /` and `abs/path/`. Because we put a space after division, the bug is introduced.

I don't really know the impact of changing the parser, but on the printer side, it is straightforward to not add a space after `/` if it's the first element in a group. I can't think of any reason why you could write `(/ something` in CSS so I think it's a safe change.
2020-12-28 20:22:25 -03:00
dependabot[bot] 60b8ad0c51 Build(deps-dev): Bump pretty-bytes from 5.4.1 to 5.5.0 (#9956)
Bumps [pretty-bytes](https://github.com/sindresorhus/pretty-bytes) from 5.4.1 to 5.5.0.
- [Release notes](https://github.com/sindresorhus/pretty-bytes/releases)
- [Commits](https://github.com/sindresorhus/pretty-bytes/compare/v5.4.1...v5.5.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-24 19:55:46 +08:00
dependabot[bot] d5ba6b01ba Build(deps-dev): Bump @babel/types from 7.12.11 to 7.12.12 (#9957)
Bumps [@babel/types](https://github.com/babel/babel/tree/HEAD/packages/babel-types) from 7.12.11 to 7.12.12.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.12/packages/babel-types)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-24 19:55:34 +08:00
fisker Cheung c55f899b32 Test internal eslint rules (#9929) 2020-12-24 19:44:17 +08:00
dependabot[bot] f1574a9e7a Build(deps-dev): Bump builtin-modules from 3.1.0 to 3.2.0 (#9950)
Bumps [builtin-modules](https://github.com/sindresorhus/builtin-modules) from 3.1.0 to 3.2.0.
- [Release notes](https://github.com/sindresorhus/builtin-modules/releases)
- [Commits](https://github.com/sindresorhus/builtin-modules/compare/v3.1.0...v3.2.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-23 17:05:03 +08:00
dependabot[bot] 196dfd207a Build(deps): Bump codecov/codecov-action from v1.1.0 to v1.1.1 (#9948)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.1.0 to v1.1.1.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v1.1.0...1fc7722ded4708880a5aea49f2bfafb9336f0c8d)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-23 09:18:59 +08:00
dependabot[bot] cbaf683ee0 Build(deps): Bump @typescript-eslint/typescript-estree from 4.10.0 to 4.11.0 (#9946)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-23 09:18:44 +08:00
dependabot[bot] 8cfda58f61 Build(deps): Bump @glimmer/syntax from 0.73.0 to 0.73.1 (#9944)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-23 09:18:04 +08:00
dependabot[bot] 1d855aeb86 Build(deps-dev): Bump @typescript-eslint/types from 4.10.0 to 4.11.0 (#9947)
Bumps [@typescript-eslint/types](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/visitor-keys) from 4.10.0 to 4.11.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/visitor-keys/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.11.0/packages/visitor-keys)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-22 13:31:30 +08:00
dependabot[bot] aa841a552f Build(deps-dev): Bump @glimmer/reference from 0.73.0 to 0.73.1 (#9945)
Bumps @glimmer/reference from 0.73.0 to 0.73.1.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-22 13:30:57 +08:00
dependabot[bot] 2f02f3c5a8 Build(deps): Bump @glimmer/syntax from 0.72.0 to 0.73.0 (#9937)
Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm) from 0.72.0 to 0.73.0.
- [Release notes](https://github.com/glimmerjs/glimmer-vm/releases)
- [Changelog](https://github.com/glimmerjs/glimmer-vm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/glimmerjs/glimmer-vm/compare/v0.72.0...v0.73.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-21 20:11:33 +08:00
fisker Cheung be497c3c8f Use printBlock to print ClassBody (#9915) 2020-12-21 17:10:03 +08:00
fisker Cheung f0f18d3090 Enable unicorn/prefer-number-properties (#9935) 2020-12-21 17:09:20 +08:00
dependabot[bot] 6843b51113 Build(deps-dev): Bump eslint from 7.15.0 to 7.16.0 (#9939) 2020-12-21 09:05:55 +00:00
Cyrille David fbe57068e7 Handlebars: Add tests for ignore and strict modes (1/3) (#9883) 2020-12-21 17:04:18 +08:00
dependabot[bot] 6cf7f303fa Build(deps): Bump flow-parser from 0.140.0 to 0.141.0 (#9938)
Bumps [flow-parser](https://github.com/facebook/flow) from 0.140.0 to 0.141.0.
- [Release notes](https://github.com/facebook/flow/releases)
- [Changelog](https://github.com/facebook/flow/blob/master/Changelog.md)
- [Commits](https://github.com/facebook/flow/compare/v0.140.0...v0.141.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-21 14:56:30 +08:00
dependabot[bot] e154e031a2 Build(deps-dev): Bump @glimmer/reference from 0.72.0 to 0.73.0 (#9941)
Bumps @glimmer/reference from 0.72.0 to 0.73.0.

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-21 14:26:44 +08:00
dependabot[bot] 76fe06a88f Build(deps-dev): Bump eslint-config-prettier from 7.0.0 to 7.1.0 (#9940)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-21 14:25:31 +08:00
dependabot[bot] b172717fd9 Build(deps): Bump preactjs/compressed-size-action from v2.0.1 to 2.1.0 (#9942)
Bumps [preactjs/compressed-size-action](https://github.com/preactjs/compressed-size-action) from v2.0.1 to 2.1.0.
- [Release notes](https://github.com/preactjs/compressed-size-action/releases)
- [Commits](https://github.com/preactjs/compressed-size-action/compare/v2.0.1...7d87f60a6b0c7d193b8183ce859ed00b356ea92f)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-21 14:24:03 +08:00
fisker Cheung 5d69b2e324 Refactor: Move jsx related function to jsx.js (#9927) 2020-12-18 19:21:53 +08:00
fisker Cheung 85abe0fccd Refactor graphql parser to use tryCombinations (#9928) 2020-12-18 19:20:20 +08:00
dependabot[bot] aae625a05f Build(deps): Bump codecov/codecov-action from v1.0.15 to v1.1.0 (#9934)
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from v1.0.15 to v1.1.0.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/master/CHANGELOG.md)
- [Commits](https://github.com/codecov/codecov-action/compare/v1.0.15...7de43a7373de21874ae196a78f8eb633fcf7f0c4)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-18 19:10:12 +08:00
dependabot[bot] 12b5dd297f Build(deps-dev): Bump webpack from 5.10.3 to 5.11.0 in /website (#9930)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-18 18:49:34 +08:00
dependabot[bot] 29b9ab076a Build(deps-dev): Bump webpack from 5.10.3 to 5.11.0 (#9932) 2020-12-18 05:52:05 +00:00
dependabot[bot] 3d25e506a4 Build(deps-dev): Bump eslint-plugin-unicorn from 23.0.0 to 24.0.0 (#9931)
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn) from 23.0.0 to 24.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases)
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v23.0.0...v24.0.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-18 13:18:09 +08:00
fisker Cheung d55d4e90d8 Add JS version isNextLineEmpty (#9925) 2020-12-18 10:14:14 +08:00
dependabot[bot] 330d3387c5 Build(deps-dev): Bump @glimmer/reference from 0.71.0 to 0.72.0 (#9919) 2020-12-17 08:15:54 +00:00
fisker Cheung ec5f60725b Send array to FastPath#{each,map} callback (#9901) 2020-12-17 15:52:51 +08:00
fisker Cheung c7e354e38c Add isNonEmptyArray (#9902) 2020-12-17 14:46:59 +08:00
fisker Cheung 0fd2a28cff Enable arrow-body-style rule (#9918) 2020-12-17 14:31:51 +08:00
dependabot[bot] df8eef0013 Build(deps): Bump @angular/compiler from 11.0.4 to 11.0.5 (#9921)
Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 11.0.4 to 11.0.5.
- [Release notes](https://github.com/angular/angular/releases)
- [Changelog](https://github.com/angular/angular/blob/master/CHANGELOG.md)
- [Commits](https://github.com/angular/angular/commits/HEAD/packages/compiler)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-17 14:23:37 +08:00
dependabot[bot] fa958b611f Build(deps): Bump @glimmer/syntax from 0.71.0 to 0.72.0 (#9922)
Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm) from 0.71.0 to 0.72.0.
- [Release notes](https://github.com/glimmerjs/glimmer-vm/releases)
- [Changelog](https://github.com/glimmerjs/glimmer-vm/blob/master/CHANGELOG.md)
- [Commits](https://github.com/glimmerjs/glimmer-vm/compare/v0.71.0...v0.72.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-17 14:22:54 +08:00
dependabot[bot] 67d6254bfa Build(deps): Bump outdent from 0.7.1 to 0.8.0 (#9923)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-17 14:22:15 +08:00
dependabot[bot] e46aaaabba Build(deps): Bump actions/setup-node from v2.1.3 to v2.1.4 (#9924)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-17 14:16:25 +08:00
fisker Cheung ea17be725c Move isLastStatement to print/statement.js (#9916) 2020-12-17 12:10:49 +08:00
fisker Cheung 334609d81e Fix comments.js import style (#9917) 2020-12-17 12:09:55 +08:00
fisker Cheung f09ad46166 Use index instead of .getName() in FastPath#each() (#9914) 2020-12-17 10:39:42 +08:00
fisker Cheung 45407d82b9 Refactor yaml (#9629) 2020-12-17 10:39:02 +08:00
fisker Cheung cf8cba363f DRY Block and Program print (#9899) 2020-12-17 09:28:58 +08:00
fisker Cheung d7c9dd0eaf Refactor(html): use concat directly (#9845) 2020-12-17 08:40:45 +08:00
fisker Cheung 790c8ee9db Replace normalizeParts with safer cleanDoc (#9844) 2020-12-17 08:39:23 +08:00
dependabot[bot] 2f930ee314 Build(deps): Bump @babel/parser from 7.12.10 to 7.12.11 (#9904)
Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser) from 7.12.10 to 7.12.11.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.12.11/packages/babel-parser)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-17 08:38:44 +08:00
dependabot[bot] 243997fcd9 Build(deps-dev): Bump @glimmer/reference from 0.70.0 to 0.71.0 (#9905) 2020-12-16 12:09:17 +00:00
dependabot[bot] ef7831ff64 Build(deps-dev): Bump @babel/types from 7.12.10 to 7.12.11 (#9910)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-12-16 19:10:11 +08:00
dependabot[bot] 1cb51216a0 Build(deps): Bump @babel/code-frame from 7.10.4 to 7.12.11 (#9906) 2020-12-16 10:18:29 +00:00