Commit Graph
6060 Commits
Author SHA1 Message Date
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
dependabot[bot] 5921b279ec Build(deps-dev): Bump babel-jest from 27.0.6 to 27.1.0 (#11419) 2021-08-29 07:29:27 +00:00
dependabot[bot] 8c23e6c011 Build(deps): Bump @typescript-eslint/typescript-estree (#11418) 2021-08-29 07:29:02 +00:00
dependabot[bot] 66c0ca55e2 Build(deps-dev): Bump eslint-plugin-import from 2.24.1 to 2.24.2 (#11420) 2021-08-29 07:28:52 +00:00
dependabot[bot] bdfe906119 Build(deps-dev): Bump core-js from 3.16.2 to 3.16.3 (#11421) 2021-08-29 07:28:17 +00:00
dependabot[bot]andSosuke Suzuki 493f393ac7 Build(deps): Bump flow-parser from 0.157.0 to 0.158.0 (#11385)
* Build(deps): Bump flow-parser from 0.157.0 to 0.158.0

Bumps [flow-parser](https://github.com/facebook/flow) from 0.157.0 to 0.158.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.157.0...v0.158.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 tests for class fields feature (#11394)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2021-08-24 13:23:31 +09:00
dependabot[bot]andfisker Cheung ea701359b7 Build(deps-dev): Bump eslint-plugin-regexp from 0.13.2 to 1.0.0 (#11351)
* Build(deps-dev): Bump eslint-plugin-regexp from 0.13.2 to 1.0.0

Bumps [eslint-plugin-regexp](https://github.com/ota-meshi/eslint-plugin-regexp) from 0.13.2 to 1.0.0.
- [Release notes](https://github.com/ota-meshi/eslint-plugin-regexp/releases)
- [Commits](https://github.com/ota-meshi/eslint-plugin-regexp/compare/v0.13.2...v1.0.0)

---
updated-dependencies:
- dependency-name: eslint-plugin-regexp
  dependency-type: direct:development
  update-type: version-update:semver-major
...

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

* Update options for `regexp/no-useless-flag` rule

* Remove useless flag

* Fix style

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-08-24 10:31:24 +09:00
dependabot[bot] e361704268 Build(deps-dev): Bump eslint-plugin-compat from 3.11.1 to 3.13.0 (#11376) 2021-08-24 01:30:39 +00:00
TagawaHirotaka 3ff6dd476e Fix comment about espree link (#11387) 2021-08-23 14:12:08 +09:00
dependabot[bot] c74713bb43 Build(deps-dev): Bump webpack-cli from 4.7.2 to 4.8.0 in /website (#11377) 2021-08-23 02:22:41 +00:00
dependabot[bot] dcf7f6ba4b Build(deps-dev): Bump webpack from 5.50.0 to 5.51.1 in /website (#11379)
Bumps [webpack](https://github.com/webpack/webpack) from 5.50.0 to 5.51.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.50.0...v5.51.1)

---
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-08-23 08:40:32 +08:00
dependabot[bot] da0f1e1a6e Build(deps): Bump actions-cool/issues-helper from 2.3.1 to 2.4.0 (#11375)
Bumps [actions-cool/issues-helper](https://github.com/actions-cool/issues-helper) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/actions-cool/issues-helper/releases)
- [Changelog](https://github.com/actions-cool/issues-helper/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions-cool/issues-helper/compare/v2.3.1...v2.4.0)

---
updated-dependencies:
- dependency-name: actions-cool/issues-helper
  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-08-23 08:39:41 +08:00