Commit Graph
6071 Commits
Author SHA1 Message Date
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
fisker Cheung 4b2ba45825 Fix the trailingComma value from "always" to "all" in v2 blog post (#11480) 2021-09-09 18:54:45 +08:00
fisker Cheung 0cc8e96c37 Refactor installPrettier (#11476) 2021-09-09 18:53:31 +08:00
Sosuke Suzuki a1cc5d4ecd refactor: Extract printChildren and printElement (#11466)
* Extract printChildrent and printElement

* Refactor printChildren
2021-09-09 19:00:14 +09:00
sosukesuzuki d812687502 Clean changelog 2021-09-09 18:29:57 +09:00
Sosuke SuzukiandJed Fox 07476f80a7 2.4 blog post (#11457)
* Mark highlights

* Add new draft

* Update intro

* Fix typo

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Address review

* Address review

* Address review

* Regenerate draft

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Update changelog_unreleased/blog-post-intro.md

Co-authored-by: Jed Fox <git@jedfox.com>

* Address review

* Regenerate draft

* Regenerate draft

Co-authored-by: Jed Fox <git@jedfox.com>
2021-09-09 18:24:31 +09:00
sosukesuzuki a93128ff1a Update dependents count 2021-09-09 18:23:44 +09:00
sosukesuzuki 043043b8de Git blame ignore 2.4.0 2021-09-09 18:23:34 +09:00
sosukesuzuki ef514b9b5c Bump Prettier dependency to 2.4.0 2021-09-09 18:23:34 +09:00
sosukesuzuki e49951e5a3 Release 2.4.0 2021-09-09 18:19:39 +09:00
fisker Cheung 62a2629743 Build: Support build single file (#11469) 2021-09-09 12:23:53 +08:00
Ivan Nikolićandsosukesuzuki 1c4da1e441 Consistently quote Sass modules strings (#11461)
* Consistently quote Sass modules strings

Fixes #11053.

* Add module rule name check function

* Add more tests for `@use` and `@forward`

* Lint changelog

* Lint files

Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-09-09 13:18:12 +09:00
Sosuke Suzuki ce1bb16c17 Use node 16.8.0 for GitHub Actions (#11470)
* Use node 16.8

* More fix
2021-09-09 10:01:43 +09:00
Sosuke Suzuki 0eb1493988 Refactor html printer (#11462)
* tmp: not working

* works

* renamae

* Refactor

* Address review
2021-09-08 16:32:20 +09:00
fisker Cheung 04e1cee3bc Fix comments (#11464) 2021-09-08 12:28:29 +08:00
fisker Cheung 754531032d Enable regexp/no-unused-capturing-group rule (#11013) 2021-09-08 11:18:07 +08:00
Sosuke Suzuki bf2a24fdd1 Add tests for release script (#11454)
* Install jest

* Configure jest script

* Fix eslintrc

* Add @types/jest

* Add test for validate-new-version

* Fix eslintrc

* Add workflow file

* Add node version

* cd to script/release

* Fix workflow file

* Fix version

* Ignore from root

* Update yarn.lock

* Set defaults.run.working-directory
2021-09-07 14:53:45 +09:00
Sosuke Suzuki 2bbe331f64 Regenerate lockfile (#11458)
* Regenerate yarn.lock

* Fix  tests

* Add yarn.lock to workflow paths
2021-09-07 13:10:54 +09:00
dependabot[bot] 104c9fd58b Build(deps): Bump node-fetch from 2.6.1 to 3.0.0 in /scripts/release (#11451)
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 3.0.0.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Changelog](https://github.com/node-fetch/node-fetch/blob/main/docs/CHANGELOG.md)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v3.0.0)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-09-06 13:15:06 +09:00
Sosuke Suzuki f5abf17bf0 Update stage 3 -> stage 4 (#11456) 2021-09-06 04:34:53 +09:00
Sosuke Suzuki affc17392d Fix blog draft script (#11453) 2021-09-05 22:51:23 +09:00
dependabot[bot] 776654179f Build(deps-dev): Bump @babel/preset-env from 7.15.0 to 7.15.4 (#11450) 2021-09-05 12:36:14 +00:00
dependabot[bot] b0d570aedf Build(deps): Bump flow-parser from 0.158.0 to 0.159.0 (#11448) 2021-09-05 12:35:25 +00:00
dependabot[bot] 66d5736acf Build(deps): Bump @babel/parser from 7.15.4 to 7.15.5 (#11447)
Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser) from 7.15.4 to 7.15.5.
- [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.5/packages/babel-parser)

---
updated-dependencies:
- dependency-name: "@babel/parser"
  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-05 21:34:55 +09:00
dependabot[bot] 72e4809489 Build(deps-dev): Bump webpack from 5.51.1 to 5.52.0 in /website (#11438)
Bumps [webpack](https://github.com/webpack/webpack) from 5.51.1 to 5.52.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.51.1...v5.52.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  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-05 21:34:24 +09:00
TagawaHirotaka 318bc46b44 Reduce ternary operator in printer-html.js (after #11425) (#11434)
* Create printChildrenDoc function

* create printBeforeChildrenLine function

* create printAfterChildrenLine function

* Change function name
2021-09-05 18:35:31 +09:00
dependabot[bot] 55465864bb Build(deps-dev): Bump eslint-plugin-regexp from 1.0.0 to 1.1.0 (#11437)
Bumps [eslint-plugin-regexp](https://github.com/ota-meshi/eslint-plugin-regexp) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/ota-meshi/eslint-plugin-regexp/releases)
- [Commits](https://github.com/ota-meshi/eslint-plugin-regexp/compare/v1.0.0...v1.1.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-regexp
  dependency-type: direct:development
  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-05 16:51:13 +08:00
dependabot[bot] c731ec5a25 Build(deps): Bump @angular/compiler from 12.2.3 to 12.2.4 (#11442)
Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 12.2.3 to 12.2.4.
- [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.4/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-05 16:50:57 +08:00
dependabot[bot] c70963a7aa Build(deps-dev): Bump core-js from 3.16.3 to 3.17.2 (#11441) 2021-09-05 08:50:40 +00:00
dependabot[bot] 7078aff175 Build(deps-dev): Bump @babel/types from 7.15.0 to 7.15.4 (#11443)
Bumps [@babel/types](https://github.com/babel/babel/tree/HEAD/packages/babel-types) from 7.15.0 to 7.15.4.
- [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.4/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-05 16:50:06 +08:00
dependabot[bot] 64f9d57742 Build(deps-dev): Bump esm-utils from 1.1.0 to 2.0.0 (#11444) 2021-09-05 06:38:16 +00:00
dependabot[bot] 3b860c4908 Build(deps): Bump graphql from 15.5.1 to 15.5.2 (#11446)
Bumps [graphql](https://github.com/graphql/graphql-js) from 15.5.1 to 15.5.2.
- [Release notes](https://github.com/graphql/graphql-js/releases)
- [Commits](https://github.com/graphql/graphql-js/compare/v15.5.1...v15.5.2)

---
updated-dependencies:
- dependency-name: graphql
  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-05 13:03:07 +08:00
dependabot[bot] 95bb9303d5 Build(deps-dev): Bump terser-webpack-plugin from 5.1.4 to 5.2.3 (#11445)
Bumps [terser-webpack-plugin](https://github.com/webpack-contrib/terser-webpack-plugin) from 5.1.4 to 5.2.3.
- [Release notes](https://github.com/webpack-contrib/terser-webpack-plugin/releases)
- [Changelog](https://github.com/webpack-contrib/terser-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack-contrib/terser-webpack-plugin/compare/v5.1.4...v5.2.3)

---
updated-dependencies:
- dependency-name: terser-webpack-plugin
  dependency-type: direct:development
  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-05 12:46:29 +08:00
dependabot[bot] b26764639d Build(deps-dev): Bump eslint-plugin-react from 7.24.0 to 7.25.1 (#11449)
Bumps [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) from 7.24.0 to 7.25.1.
- [Release notes](https://github.com/yannickcr/eslint-plugin-react/releases)
- [Changelog](https://github.com/yannickcr/eslint-plugin-react/blob/master/CHANGELOG.md)
- [Commits](https://github.com/yannickcr/eslint-plugin-react/compare/v7.24.0...v7.25.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-react
  dependency-type: direct:development
  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-05 12:45:55 +08:00
dependabot[bot] c1dda1a55c Build(deps-dev): Bump @babel/core from 7.15.0 to 7.15.5 (#11440)
Bumps [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core) from 7.15.0 to 7.15.5.
- [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.5/packages/babel-core)

---
updated-dependencies:
- dependency-name: "@babel/core"
  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-05 12:43:47 +08:00
Sosuke Suzuki bef39f2394 Update @babel/parser to 7.15.4 (#11436)
* Install new babel/parser

* Add tests for static blocks with line breaks
2021-09-04 22:02:30 +09:00
TagawaHirotaka e7c6ca2acf Improve printer-html.js readability (#11425)
* Improve printer-html readability

* Extract to a function
2021-09-04 01:09:50 +09:00
Sosuke Suzuki c2808faf2a Fix Playground (#11433)
* Revert ENABLED_OPTIONS

* Fix

* Fix typo
2021-09-02 17:55:30 +09:00
fisker Cheungandsosukesuzuki 07786bd758 Revert "Revert features for minor" (#11044)
* Revert "Revert features for minor (#11016)"

This reverts commit 09d65c35af.

* Update cspell.json

Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-08-31 13:40:52 +09:00
4992d97203 Deprecate jsxBracketSameLine option in favour of multi-language bracketSameLine option (#11006)
* deprecate jsxBracketSameLine in favour of multi-language angleBracketSameLine option

* update docs and snapshots

* update tests to to make them more reviewable

* Rewrite angular tests

* Rewrite html tests

* Rewrite vue tests

* Restore unnecessary changes in jsx

* Fix file location

* Test both `true` and `false`

* Revert changes in markdown

* Run tests on all js parsers

* Improve html test

* fix changelog comment

* move bracketSameLine to common options

* mark jsxBracketSameLine as deprecated

* Update changelog_unreleased/html/11006.md

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

* Update 11006.md

* fix tests by removing `jsxBracketSameLine` `default` property

* fix style

* Revert docs under website dir

* Add tests for deprecated options

* Fix lint problems

Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2021-08-31 11:47:50 +09:00
Sosuke Suzuki af19dd18d6 Improve generate changelog script (#11427)
* Output file path

* Address review
2021-08-31 10:55:16 +09:00
Sosuke Suzuki 6dd2788e85 Support TypeScript 4.4 (#11426)
* Update to ts-estree 4.30

* Add tests

* Add changelog
2021-08-31 10:29:20 +09:00
Oskari Noppa 6a5efe7fa8 Print semi before Flow variance sigil w/ no-semi (#11398)
* Print semi before Flow variance sigil w/ no-semi

Fixes #11397. Omitting semicolon before class property with a Flow
variance sigil `+` or `-` may lead to output that is syntatically
incorrect or has incorrect runtime behaviour.

* Add changelog for PR 11398

* Put semi to the end of previous line

Put the semicolon for Flow class property variance sigil to the end of
the previous line, not at the beginning of the the line where the
variance sigil is.

This approach was suggested in the comments of #11398.

* Add babel-flow to parser to Flow no-semi specs

As per discussion in PR #11398, babel-flow parser should also be tested.

* Print semi before private fields w/ variance

* Add private fields to changelog

* Use existing isClassProperty helper

Use existing helper function `isClassProperty` to simplify the conditional
a bit.
Note that this also adds new case, `type === "PropertyDefinition"`, that
would be a match. However, nextNode.type can't be "PropertyDefinition"
in practice, as it's part of estree parser output which doesn't support
Flow. There's no real downside in checking that extra case, though, and
this does simplify the code a bit.

* Add new property tests to the snapshot spec

* Change one of the variance sigils to `-` (contravariant)
* Add one computed property
* Make one of the property values be a function

These cases also require semi in the previous line.

* Add new testcases from previous patch to changelog

* Add variance sigil to computed property in spec
2021-08-30 21:19:05 +09:00
dependabot[bot] a547330ca9 Build(deps): Bump @angular/compiler from 12.2.2 to 12.2.3 (#11417)
Bumps [@angular/compiler](https://github.com/angular/angular/tree/HEAD/packages/compiler) from 12.2.2 to 12.2.3.
- [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.3/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-08-30 11:46:20 +08:00
dependabot[bot] 47cfb6beb3 Build(deps): Bump typescript from 4.3.5 to 4.4.2 (#11423) 2021-08-29 09:37:09 +00:00
dependabot[bot] e22b2d738c Build(deps-dev): Bump jest from 27.0.6 to 27.1.0 (#11416) 2021-08-29 09:07:26 +00:00
dependabot[bot] 108fd1f60a Build(deps): Bump codecov/codecov-action from 2.0.2 to 2.0.3 (#11413) 2021-08-29 09:02:46 +00:00