Commit Graph
100 Commits
Author SHA1 Message Date
fisker Cheung 9049c166b4 Run prettier on more supported files (#7456) 2020-01-31 13:40:30 +02:00
fisker Cheung 340951f045 Keep parentheses of SequenceExpression for ExportDefaultDeclaration (#7491)
* Fix export default `SequenceExpression`

* Add more parser

* Add change log

* Fix  logic

* Rename that function

* Add a branch
2020-01-31 13:28:08 +03:00
fisker Cheung a1ce84a13b Cleanup dead code from pr7461 (#7468)
* Add test for #5810

* Remove maybe dead code

* Add changelog

* Remove old tests

* More dead code
2020-01-31 13:23:10 +03:00
fisker Cheung 0370f47cb3 Refactor some Object.assign (#7437) 2020-01-31 09:13:37 +09:00
fisker Cheung 947a174954 Flow: Add support for decorators (#7482)
* Update flow parse options

* Add `decorators` test

* Restore enums

* Add changelog

* Add babel-verify
2020-01-31 08:55:30 +09:00
fisker Cheunganddependabot-preview[bot] 28e70b6c9b Bump linguist-languages from 7.7.0 to 7.8.0 (#7481)
* Bump linguist-languages from 7.7.0 to 7.8.0

Bumps [linguist-languages](https://github.com/ikatyang/linguist-languages) from 7.7.0 to 7.8.0.
- [Release notes](https://github.com/ikatyang/linguist-languages/releases)
- [Commits](https://github.com/ikatyang/linguist-languages/compare/v7.7.0...v7.8.0)

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

* Bump linguist-languages from 7.7.0 to 7.8.0

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-01-30 19:36:49 +02:00
fisker Cheung eb1e587d2f Flow: Add support for ClassPrivateProperty (#7484)
* Support `ClassPrivateProperty`

* Add changelog

* Code style

* Fix babel

* Move logic up

* Add tests

* Make test a little bit uglier
2020-01-31 01:51:27 +09:00
fisker Cheung 90128a3a00 Flow: add typing support for the symbol type (#7472)
* Flow: add typing support for the `symbol` type

* Add changelog
2020-01-30 13:08:01 +03:00
fisker Cheung 0c93198942 Remove deprecated parser & update sharedUtil (#6993)
* Remove some old stuff

* Add changelog

* Fix test

* util changes

* restore parser

* Fix `util` usage
2020-01-29 17:32:42 +03:00
fisker Cheung 2877dda67e Use ci-info instead of is-ci (#7432) 2020-01-29 15:42:07 +02:00
fisker Cheung d2f54564fa Update cdn files version (#7457) 2020-01-29 15:38:50 +02:00
fisker Cheung ebd0c6d605 Remove useless argument in editorconfig load function (#7459) 2020-01-29 12:51:05 +03:00
fisker Cheung e4e1b3ec5b Always set parser bundle target to universal (#7455)
* Always set parser bundle target to `universal`

* Allow override
2020-01-29 12:45:57 +03:00
fisker Cheung 23079c461e Update babel target (#7418) 2020-01-29 09:03:36 +09:00
fisker Cheunganddependabot-preview[bot] d0f0bac976 Bump @glimmer/syntax from 0.41.0 to 0.47.0 (#7443)
* Bump @glimmer/syntax from 0.41.0 to 0.47.0

Bumps [@glimmer/syntax](https://github.com/glimmerjs/glimmer-vm) from 0.41.0 to 0.47.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.41.0...v0.47.0)

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

* fix build script

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-01-28 21:53:29 +02:00
fisker Cheung c493bdef8d Update mem to v6 (#7260)
* Style: use async for `editorconfigAsyncNoCache`

* Update `mem` to v6

* Fix usage of `mem`

* Fix: add `await`

* Use JSON.stringify
2020-01-28 19:10:01 +02:00
fisker Cheung f11a94befd Simplify createUsage (#7439)
* Simplify `createUsage`

* restore some change
2020-01-28 18:56:36 +02:00
fisker Cheung ccb38118b5 Minor tweak (#7440)
* Simplify `isExportDeclaration`

* move `isExportDeclaration` and `getParentExportDeclaration` to `language-js/utils.js`
2020-01-28 18:55:00 +02:00
fisker Cheung 93f71d499a Setup github actions (#7321) 2020-01-25 16:22:29 +02:00
fisker Cheung c0517441b2 Enable unicorn/prefer-string-slice (#7251) 2020-01-23 15:15:28 +03:00
fisker Cheung 9d9b4a15e5 Use BOM string instead of BOM charCode (#7420)
* Use BOM string instead of BOM charCode

* Trigger CI
2020-01-23 13:40:05 +02:00
fisker Cheung 27b5cb4d9d Enable ESLint prefer-rest-params rule (#7400) 2020-01-23 10:36:18 +02:00
fisker Cheung e7f3cfd684 Simplify getLast (#7267) 2020-01-22 17:30:25 +03:00
fisker CheungandGeorgii Dolzhykov 0e17ba0fe1 Update chalk to v3 (#7259)
* Update `chalk` to v3

* Shim `tty`

* add tty to EXTERNALS in bundler.js

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-01-22 15:36:07 +02:00
fisker Cheung 07b9465dcf website: remove eslint-disable in landing.js (#7329) 2020-01-21 22:23:45 +02:00
fisker Cheung e8009fa102 GraphQL: improve detection of separator between interfaces (#7305) 2020-01-21 13:18:53 +02:00
fisker Cheung 4ba0fc7b3c Add title to the /en/users/ page (#7379) 2020-01-20 23:43:27 +02:00
fisker Cheung 96d419b91a Fix srcset parse error (#7295)
* Fix srcset parse

* Don't swallow error

* fix srcset parse

* Add changelog

* Update case

* Fix quote style

* Make input ugly
2020-01-20 20:58:38 +02:00
fisker Cheung c472358a92 Enable eslint rule prefer-object-spread (#7398) 2020-01-20 19:21:51 +02:00
fisker Cheung 9900174d50 HTML: don't treat colons as namespace prefix delimiters in tag names (#7273) 2020-01-20 16:39:19 +02:00
fisker Cheung c97e96d31e Use lodash/partition (#7265) 2020-01-20 15:43:52 +03:00
fisker Cheung 7264566d55 Move React ESLint rules to "/website" (#7332) 2020-01-20 13:51:40 +03:00
fisker Cheung 9b2c7f342f Fix prefer-object-spread in /scripts (#7336) 2020-01-20 13:49:52 +03:00
fisker Cheung 5330d9d4a6 Fix error throws on unclosed tag in pre (#7392) 2020-01-20 13:49:36 +03:00
fisker Cheung 988a9a616d Tiny refactor (#7334) 2020-01-20 13:33:24 +03:00
fisker Cheung 00d2299bce Fix prefer-object-spread in src/config (#7354) 2020-01-19 13:42:48 +02:00
fisker Cheung 20be335c52 Switch rollup-plugin-node-resolve to @rollup/plugin-node-resolve (#7248) 2020-01-19 01:35:56 +02:00
fisker Cheung 50a0136c5f Fix prefer-object-spread in src/language-markdown (#7350) 2020-01-19 01:25:36 +02:00
fisker Cheung 00d46ee26e Fix prefer-object-spread in /tests* (#7337) 2020-01-19 01:23:16 +02:00
fisker Cheung 657b85ee9e Fix prefer-object-spread for src/language-yaml (#7349) 2020-01-19 01:22:18 +02:00
fisker Cheung 288bf5ee3d Fix prefer-object-spread in src/language-css (#7351) 2020-01-19 01:20:58 +02:00
fisker Cheung d4c816959a Fix prefer-object-spread in src/language-html (#7352) 2020-01-19 01:15:12 +02:00
fisker Cheung 9fccf61a0d Fix prefer-object-spread in /src/cli (#7356) 2020-01-19 01:06:33 +02:00
fisker Cheung 19edf6e09b Fix prefer-object-spread in src/language-js (part 3) (#7360) 2020-01-19 00:59:05 +02:00
fisker Cheung 278efbe104 Fix prefer-object-spread in src/document (#7353) 2020-01-19 00:57:54 +02:00
fisker Cheung 61f7a09483 Fix prefer-object-spread in src/language-js (part 2) (#7359) 2020-01-19 00:56:28 +02:00
fisker Cheung 751c134964 Fix prefer-object-spread in src/language-js (part 1) (#7358) 2020-01-19 00:55:37 +02:00
fisker Cheung c2430bf545 Fix prefer-object-spread in src/language-js (part 4) (#7361) 2020-01-19 00:54:22 +02:00
fisker Cheung f390781e71 Update get-stream to v5 (#7362) 2020-01-19 00:53:17 +02:00
fisker Cheung 1710299b15 Add missing snapshot (#7378) 2020-01-19 00:52:20 +02:00
fisker Cheung afd3e5d101 Fix some String#repeat (#7335) 2020-01-19 00:48:04 +02:00
fisker Cheung 11c4cea68a Switch parse-srcset to srcset (#7381) 2020-01-19 00:44:44 +02:00
fisker Cheung 748ebbf0bf Add tests for #2091 (#7368) 2020-01-16 18:25:36 +02:00
fisker Cheung 25fb413ace Update snapshot-diff to v0.6.2 (#7364) 2020-01-16 15:57:56 +02:00
fisker Cheung 99fb09a533 Update tempy to v0.3.0 (#7363) 2020-01-16 15:56:58 +02:00
fisker Cheung 5c06775c3b Fix prefer-object-spread in src/common (#7355) 2020-01-16 15:56:28 +02:00
fisker Cheung e5234162eb Fix prefer-object-spread in src/main (#7357) 2020-01-16 15:54:58 +02:00
fisker Cheung 5ff6c37777 Run lock check on CI (#7342) 2020-01-16 13:36:45 +03:00
fisker Cheung 2041a0df95 Simplify getSupportInfo (#7269) 2020-01-16 13:24:21 +03:00
fisker Cheung da8d082ce0 Add changelog lint script (#7320)
* Add changelog lint script

* Refactor lint script

* spell

* Fix indent

* fix templateComment

* add H4 check

* Add category in title check

* use array destructuring

* Add space check
2020-01-15 19:25:55 +02:00
fisker Cheung 4abd19ae14 Use array destructuring for some simple case (#7330)
* Use array destructuring for some simple case

* Revert [0]
2020-01-15 19:24:52 +02:00
fisker Cheung f805388d65 Fix prefer-object-spread in /website (#7338) 2020-01-15 18:27:46 +02:00
fisker Cheung 5e71b48ea7 Update execa to v4 (#7261) 2020-01-15 17:05:04 +02:00
fisker Cheung d219d1216e Update escape-string-regexp to v2 (#7340) 2020-01-15 16:55:47 +02:00
fisker Cheung 02800285a3 Add cli executable test (#7300) 2020-01-15 16:55:08 +02:00
fisker Cheung b6ed57130d Tiny refactor comment.js (#7331) 2020-01-15 16:21:09 +02:00
fisker Cheung dd1721f68e Remove an old fix for Node 4 (#7328) 2020-01-15 16:16:04 +02:00
fisker Cheung d6f7beb2b2 Fix yarn.lock for next (#7341) 2020-01-15 16:11:23 +02:00
fisker CheungandGeorgii Dolzhykov d456b158e0 Style: use object destructuring (#7325)
* Style: use object destructuring

* Update versions.js

* Update sync-flow-tests.js

* Update core.js

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-01-14 17:30:18 +02:00
fisker CheungandGeorgii Dolzhykov 493df07019 Style: enable eqeqeq (#7324)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-01-14 17:10:25 +02:00
fisker Cheung dd77e146b9 using object spread for createLanguage (#7268) 2020-01-14 16:47:39 +02:00
fisker Cheung 7ff6347398 Style: enable prefer-spread (#7270) 2020-01-14 14:05:28 +02:00
fisker Cheung 5bfc5de410 Simplify arrayify (#7266) 2020-01-14 14:02:54 +02:00
fisker Cheung 23463a5526 Update rollup-plugin-terser to v5.2.0 (#7308)
* Update `rollup-plugin-terser` to v5.2.0

* Trigger CI
2020-01-14 15:00:33 +03:00
fisker Cheung 85eefb918e Style: enable object-shorthand (#7322) 2020-01-14 14:25:24 +03:00
fisker Cheung c238bb68ec Style: enable dot-notation (#7323) 2020-01-14 13:20:07 +02:00
fisker Cheung 382a8d7947 Update @babel/code-frame to v7.8.0 (#7307) 2020-01-14 13:59:05 +03:00
fisker Cheung c68d6e3c2b Move doc directory to document (#7272) 2020-01-14 13:58:42 +03:00
fisker Cheung beeaa98cb9 Fix quote style, enable quote rule (#7304) 2020-01-14 13:58:20 +03:00
fisker Cheung 0ffd9a774b Add .editorconfig (#7252) 2020-01-14 13:54:26 +03:00
fisker CheungandGeorgii Dolzhykov 6e7c04d7b8 Update eslint-plugin-unicorn to v15 (#7250)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-01-13 16:33:43 +02:00
fisker Cheung eec0bca937 Switch rollup-plugin-commonjs to @rollup/plugin-commonjs (#7247) 2020-01-13 16:31:38 +02:00
fisker Cheung 02c161cf33 Fix: don't throw on broken html (#7293) 2020-01-13 17:31:03 +03:00
fisker CheungandGeorgii Dolzhykov 6a71fabc45 Update string-width to v4.2.0 (#7258)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-01-13 16:30:53 +02:00
fisker Cheung 5e254b45c3 Update codemirror-graphql to v0.11.6 (#7298) 2020-01-13 15:39:12 +02:00
fisker Cheung ab77a77550 Update strip-ansi to v6 (#7257) 2020-01-13 15:38:31 +02:00
fisker Cheung 82cc3f3716 Add tests for sharedUtil.getMaxContinuousCount (#7262) 2020-01-13 15:37:59 +03:00
fisker Cheung b91277bae6 Update semver to v7 (#7256) 2020-01-13 15:26:44 +03:00
fisker Cheung 656a59a7bf Use shorthand bin (#7264) 2020-01-13 15:17:24 +03:00
fisker Cheung ac3c046747 Run lint-docs on changelogs (#7253) 2020-01-13 15:13:38 +03:00
fisker Cheung 7594d6ac4c Update eslint to v6.8.0 (#7249) 2020-01-13 14:53:14 +03:00
fisker Cheung f6e5c79903 Add cspell as devDependencies (#7299) 2020-01-13 13:46:50 +02:00
fisker Cheung 178241841b Update rollup related deps (#7254) 2020-01-13 14:41:40 +03:00
fisker Cheung 34253b0b89 Fix #5959 changlog (#7294) 2020-01-13 11:41:38 +02:00
fisker CheungandGeorgii Dolzhykov ea23fc5d92 Update cosmiconfig to v6 (#6850)
* Update `cosmiconfig` to v6

* fix changes required

* style

* replace parentModule logic

* fix build script

* fix import-fresh

* fix rebase consequences

* remove babel-plugin-transform-async-to-promises

Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-01-10 03:21:44 +02:00
fisker Cheung ac82262abc Optimize some usage of Array#filter (#6996) 2019-12-19 13:06:45 +03:00
fisker Cheung 320c5cca64 Update jest to v24 (#6954)
* Update `jest` to v24

* run test on linux and windows

* fix regexp for macOS

* fix color problem

* restore asserts

* update yarn.lock

* fix status assert
2019-11-19 10:54:57 +02:00
fisker Cheung 596f55e324 Replace trim{Left,Right} with trim{Start,End} (#6994) 2019-11-18 21:22:24 +01:00
fisker Cheung 791996df7b Set trailingComma default value to es5 (#6963)
* Set `trailingComma` default value to `es5`

* Update `options` documentation

* Update tests

* style

* fix js code style

* change options order

* update tests_integration snap

* disable es5 for __ng_interpolation

* fix angular tests

* fix scss test

* fix `css_trailing_comma` snap

* fix css_scss snapshot
2019-11-18 11:39:12 +01:00
fisker Cheung a1423e05b4 Switch rollup-plugin-json to @rollup/plugin-json (#6987) 2019-11-17 17:29:11 +01:00