Commit Graph
6117 Commits
Author SHA1 Message Date
Cyrille 2f9663b6fa Refactor and use getPreferredQuote in both jsx and handlebars printers (#11569)
* raw => rawContent

* Refactor getPreferredQuote

Exposing { quote, regex, escaped } from the getPreferredQuote return
value allows us to simplify a bit the code in the printer.

* Use the common/util function

And remove chooseEnclosingQuote

* Move favoriteQuote

* Fix lint

* Remove enclosing quotes _before_ unescape
2021-09-24 06:32:32 +09:00
dependabot[bot]andfisker Cheung 737d436a95 Build(deps-dev): Bump @rollup/plugin-commonjs from 18.1.0 to 20.0.0 (#11288)
* Build(deps-dev): Bump @rollup/plugin-commonjs from 18.1.0 to 20.0.0

Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins/tree/HEAD/packages/commonjs) from 18.1.0 to 20.0.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Changelog](https://github.com/rollup/plugins/blob/master/packages/commonjs/CHANGELOG.md)
- [Commits](https://github.com/rollup/plugins/commits/commonjs-v20.0.0/packages/commonjs)

---
updated-dependencies:
- dependency-name: "@rollup/plugin-commonjs"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

* Hack

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-09-24 06:22:57 +09:00
Sosuke Suzuki 41d77d6c13 Remove PipelineTopicExpression and PipelinePrimaryTopicReference (#11531) 2021-09-22 18:08:08 +09:00
dependabot[bot] 5aabd70950 Build(deps): Bump @angular/compiler from 12.2.5 to 12.2.6 (#11546) 2021-09-22 05:57:18 +00:00
dependabot[bot] 4a20760cfa Build(deps-dev): Bump node-fetch from 2.6.1 to 3.0.0 (#11439)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-22 13:56:42 +08:00
fisker Cheung ad357d236f Minor refactor (#11566) 2021-09-22 13:49:55 +08:00
dependabot[bot] b2fa604e77 Build(deps-dev): Bump jest from 27.1.1 to 27.2.0 (#11545) 2021-09-20 12:47:25 +00:00
dependabot[bot]andsosukesuzuki 1a5f430f05 Build(deps): Bump flow-parser from 0.159.0 to 0.160.0 (#11544)
* Build(deps): Bump flow-parser from 0.159.0 to 0.160.0

Bumps [flow-parser](https://github.com/facebook/flow) from 0.159.0 to 0.160.0.
- [Release notes](https://github.com/facebook/flow/releases)
- [Changelog](https://github.com/facebook/flow/blob/main/Changelog.md)
- [Commits](https://github.com/facebook/flow/compare/v0.159.0...v0.160.0)

---
updated-dependencies:
- dependency-name: flow-parser
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Add flow to import-meta tests

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-09-20 20:53:42 +09:00
dependabot[bot] b586141e84 Build(deps-dev): Bump jest from 27.1.1 to 27.2.0 in /scripts/release (#11549) 2021-09-19 08:49:48 +00:00
Josh Unger 3833515c1c Add prettier-plugin-erb (#11535) 2021-09-19 16:56:39 +09:00
dependabot[bot] b4e1db6bdc Build(deps): Bump string-width from 5.0.0 to 5.0.1 in /scripts/release (#11550) 2021-09-19 07:33:54 +00:00
dependabot[bot] 10747ab388 Build(deps-dev): Bump eslint-plugin-react from 7.25.1 to 7.25.2 (#11543) 2021-09-19 06:00:05 +00:00
dependabot[bot] b5d94c275d Build(deps-dev): Bump @jest/globals in /scripts/release (#11551) 2021-09-19 05:13:03 +00:00
dependabot[bot] b035f11fe1 Build(deps): Bump @typescript-eslint/typescript-estree (#11548) 2021-09-19 05:12:20 +00:00
dependabot[bot] 97fbc46b7f Build(deps-dev): Bump eslint-plugin-jest from 24.4.0 to 24.4.2 (#11542) 2021-09-19 04:18:59 +00:00
dependabot[bot] 95c3af1acc Build(deps-dev): Bump webpack from 5.52.1 to 5.53.0 in /website (#11541) 2021-09-19 04:18:22 +00:00
dependabot[bot] a3b6576c66 Build(deps-dev): Bump babel-jest from 27.1.1 to 27.2.0 (#11539) 2021-09-19 04:17:34 +00:00
dependabot[bot] f29923d6c7 Build(deps): Bump actions-cool/issues-helper from 2.4.2 to 2.4.3 (#11538) 2021-09-19 04:17:13 +00:00
dependabot[bot] 5b610e9e3c Build(deps): Bump codecov/codecov-action from 2.0.3 to 2.1.0 (#11537) 2021-09-19 04:16:54 +00:00
Sosuke Suzuki 30f82c0356 Remove sentence for copying from CHANGELOG (#11530) 2021-09-17 20:29:18 +09:00
Sosuke Suzuki 8bea529fde Fix changelog for #10961 (#11528) 2021-09-16 20:25:18 +03:00
sosukesuzuki 099b226913 Git blame ignore 2.4.1 2021-09-16 15:09:12 +09:00
sosukesuzuki 2b5b22056e Bump Prettier dependency to 2.4.1 2021-09-16 15:09:12 +09:00
sosukesuzuki 7ced9e6654 Release 2.4.1 2021-09-16 15:06:00 +09:00
Ivan NikolićandGeorgii Dolzhykov 59b5eb4e1f Fix wildcard syntax in @forward (#11482) (#11487)
* Fix wildcard syntax in `@forward` (#11482)

* Add additional tests

* Apply suggestions from code review

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-09-16 14:08:03 +09:00
Sosuke SuzukiandGeorgii Dolzhykov aa63269743 Add new CLI option debug-print-ast (#11514)
* Add new CLI option debug-print-ast

* Add tests

* Add changelog

* Remove text from ast

* Update tests/integration/__tests__/debug-print-ast.js

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>

* Update tests

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-09-15 21:03:04 +09:00
Carlos Frias ae33e494a9 fix(docs): lint-staged install instructions (#11363)
As per https://github.com/okonet/lint-staged#installation-and-setup

The previous ones were not working.
2021-09-13 19:38:11 +03:00
Gastón Giménez a1a7502f4f Update integrating-with-linters.md (#11399) 2021-09-13 19:33:33 +03:00
dependabot[bot] f63e15d1cd Build(deps): Bump typescript from 4.4.2 to 4.4.3 (#11507) 2021-09-12 17:44:18 +00:00
dependabot[bot] dec24722d6 Build(deps-dev): Bump @babel/preset-env from 7.15.4 to 7.15.6 (#11499) 2021-09-12 17:16:53 +00:00
dependabot[bot] ac3912cd47 Build(deps-dev): Bump eslint-plugin-unicorn from 35.0.0 to 36.0.0 (#11504) 2021-09-12 16:39:30 +00:00
Sosuke Suzuki bf5a027794 Revert workaround for node 16.9 (#11493) 2021-09-13 00:47:08 +09:00
dependabot[bot] ddee8dbaae Build(deps): Bump espree from 8.0.0 to 9.0.0 (#11509) 2021-09-12 15:46:54 +00:00
dependabot[bot] 5c7358fb97 Build(deps-dev): Bump jest from 27.1.0 to 27.1.1 (#11500) 2021-09-12 15:35:54 +00:00
dependabot[bot] 88d2be5386 Build(deps): Bump @angular/compiler from 12.2.4 to 12.2.5 (#11505)
Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 12.2.4 to 12.2.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/12.2.5/packages/compiler)

---
updated-dependencies:
- dependency-name: "@angular/compiler"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-12 23:24:33 +08:00
dependabot[bot] 2c230a7ae6 Build(deps-dev): Bump webpack from 5.52.0 to 5.52.1 in /website (#11501) 2021-09-12 14:37:39 +00:00
dependabot[bot] 5812bb3b0f Build(deps): Bump actions-cool/issues-helper from 2.4.0 to 2.4.2 (#11496) 2021-09-12 11:55:55 +00:00
dependabot[bot] e18426b0fd Build(deps): Bump graphql from 15.5.2 to 15.5.3 (#11497) 2021-09-12 11:55:23 +00:00
dependabot[bot] eb14316c18 Build(deps-dev): Bump terser-webpack-plugin from 5.2.3 to 5.2.4 (#11506) 2021-09-12 11:45:30 +00:00
dependabot[bot] 6e31ff3f3e Build(deps-dev): Bump babel-jest from 27.1.0 to 27.1.1 (#11508) 2021-09-12 11:44:56 +00:00
dependabot[bot] 44f35ad6da Build(deps-dev): Bump core-js from 3.17.2 to 3.17.3 (#11511) 2021-09-12 11:44:31 +00:00
dependabot[bot] 032abdda1a Build(deps-dev): Bump @babel/types from 7.15.4 to 7.15.6 (#11510)
Bumps [@babel/types](https://github.com/babel/babel/tree/HEAD/packages/babel-types) from 7.15.4 to 7.15.6.
- [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.15.6/packages/babel-types)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-12 20:43:36 +09:00
dependabot[bot] f3db50f326 Build(deps): Bump @typescript-eslint/typescript-estree (#11502)
Bumps [@typescript-eslint/typescript-estree](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/typescript-estree) from 4.30.0 to 4.31.0.
- [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.31.0/packages/typescript-estree)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/typescript-estree"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-12 20:42:35 +09:00
Sosuke Suzukiandfisker Cheung 96795dc2b3 Adds more info for release URL (#11492)
* Add getReleaseUrl function

* Implement

* Add emoji

* tmp

* Update jest

* Test works

* Add comment

* Empty lines to tigger netlify build

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-09-11 16:20:26 +09:00
fisker Cheung 5ce28ddd7f Refactor website build script (#11488) 2021-09-11 09:55:46 +08:00
tomohiro-yanagi b32bd61873 Update 2021-09-09-2.4.0.md (#11486)
fix comment
2021-09-10 18:58:34 +09:00
fisker Cheung 8a01dee53e Refactor build script (#11475) 2021-09-10 10:20:43 +08:00
Sosuke Suzukiandfisker Cheung 2664fcb2ba Enable import/no-anonymous-default-export (#11478)
* Enable import/no-anonymous-default-export

* Add names to default exported

* More

* Ignore shims

* Update scripts/build/config.mjs

Co-authored-by: fisker Cheung <lionkay@gmail.com>

* lint  for shims

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-09-10 11:17:09 +09:00
fisker Cheung d3d1bc19bd Use pnpm 6 (#11477) 2021-09-09 19:13:59 +08:00
Sosuke Suzuki 6739679767 Revert workaround (#11481) 2021-09-09 19:59:04 +09:00