Commit Graph
284 Commits
Author SHA1 Message Date
fisker Cheung 95c8086c2c Add flat-ast-path-call rule (#10354) 2021-02-26 09:26:50 +08:00
fisker Cheung 64a3906571 Enable unicorn/prefer-optional-catch-binding (#9464) 2021-02-25 18:28:55 +08:00
fisker Cheung 2f4140ff18 Test: Skip install for standalone test (#10273) 2021-02-11 00:50:59 +08:00
Georgii Dolzhykov f3906d84d4 Refactor: rename FastPath → AstPath (#10276) 2021-02-10 13:42:06 +02:00
fisker Cheung a1ba8fb812 Build: Add rollup-plugin-polyfill-node (#10249) 2021-02-08 09:50:43 +08:00
Georgii Dolzhykov 5a33fec904 RFC: indentIfBreak (#10221) 2021-02-05 01:03:40 +02:00
Sosuke Suzukiandfisker Cheung 07b30645ec style: Add new ESLint rule no-empty-string-for-ifbreak (#10172)
* Add new ESLint rule for ifBreak

* Fix for third argument

* Run fix with new rule

* Address review

* Fix

* Update no-empty-flat-contents-for-if-break.js

* Fix CI config

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-01-29 20:03:11 +09:00
fisker Cheung ce26805e84 Enable unicorn/prefer-spread (#10129) 2021-01-26 09:46:14 +08:00
fisker CheungandGeorgii Dolzhykov 6175013ae3 Enable unicorn/no-array-for-each (#10112)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-01-24 19:26:42 +08:00
fisker Cheung dd606d9ce1 Enable unicorn/no-array-push-push (#10111)
* Enable rule

* Apply auto-fix

* Manual fix
2021-01-23 22:37:01 +02:00
fisker Cheung 12bddae20c Switch default branch to main (#10115) 2021-01-23 19:14:13 +02:00
Sosuke Suzuki fbb3c421e5 Remove workaround for rollup/plugin-node-resolve 11 (#10075) 2021-01-18 16:51:00 +09:00
fisker Cheung 7b24335064 Refactor: Use Doc[] instead of concat() (#9993) 2021-01-11 13:46:05 +08:00
Sosuke Suzuki 671fa5ddaf Move checkCache to Cache class (#10029)
* Move checkCache to Cache class

* Address reviews
2021-01-11 13:25:34 +09:00
Sosuke Suzukiandfisker Cheung e70ad5b7fb Check cache only when purge-cache is off (#10031)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-01-11 10:24:24 +08:00
fisker Cheung 358ad36a84 Forbid use concat() in concat() (#9998) 2021-01-11 10:19:13 +08:00
Sosuke Suzuki e2c84527e7 Use fs.promises in build script (#10025) 2021-01-09 02:09:40 +09:00
fisker CheungandSosuke Suzuki 7ec7a0f21f Fix using concat() on single Doc (#9994)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2021-01-04 14:40:02 +08:00
fisker Cheung 181a325c1c Enable unicorn/explicit-length-check (#9975) 2021-01-04 10:11:57 +08:00
fisker CheungandGeorgii Dolzhykov 9d9c0e2b6f Add Doc[] as Doc (#9733)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-01-04 10:04:30 +08:00
fisker Cheung c55f899b32 Test internal eslint rules (#9929) 2020-12-24 19:44:17 +08:00
fisker Cheung f0f18d3090 Enable unicorn/prefer-number-properties (#9935) 2020-12-21 17:09:20 +08:00
fisker Cheung c7e354e38c Add isNonEmptyArray (#9902) 2020-12-17 14:46:59 +08:00
Sosuke Suzuki de882505f0 Fix params mistaking at #9900 (#9912) 2020-12-16 18:46:56 +09:00
Sosuke Suzuki cb6a977733 Prints bundle sizes in build script log (#9900)
* Prints bundle size with flags

* Add "gzipped" to cspell.json

* Print esm bundle size

* Remove gzipped size from log
2020-12-16 08:45:29 +09:00
fisker Cheung 89402482ee Consistent Jsx case in variables (#9871) 2020-12-15 12:23:40 +08:00
dependabot[bot]andfisker bce3500b5e Build(deps-dev): Bump @rollup/plugin-node-resolve from 10.0.0 to 11.0.0 (#9804)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-12-02 16:57:15 +08:00
Sosuke Suzuki 083b501663 Refactor: Make Cache modern in build scripts (#9809)
* Make cache class

* equal -> strictEqual

* Use strict mode assert module
2020-12-02 15:03:32 +09:00
fisker Cheung 11ac80f64e Build: Fix rollup warning (#9808) 2020-12-02 11:10:53 +08:00
fisker Cheung d8e40cd978 JS: Add hasComment and getComments (#9742) 2020-11-25 22:14:27 +08:00
fisker Cheung 74ec6a25f3 Remove changelog filename pr- prefix (#9667) 2020-11-20 13:54:14 +08:00
Sosuke Suzuki f2b4965a6a Add clean-changelog-unreleased step to release script (#9682) 2020-11-18 12:45:44 +08:00
Sosuke Suzukiandfisker Cheung 4cc149248a Support TypeScript 4.1 via typescript-estree (#9636)
* Update typescript and typescript-estree

* Add AST transformation for TSTemplateLiteralType

* Update tests for template-literal-types

* Fix transformChainExpression

* Update tests for key-remapping-in-mapped-types

* Implement recoverInvalidDecorators

* Update changelog

* Avoid typecheck error

* Add os.platform() shim

* Update config.js

* Update config.js

* Shim os.cpus

* Update `process.versions.node`

* Attempt to fix build

* Update ts parserOptions

* Fix code style

* Remove `errorOnUnknownASTType`, fix code style

* Use `[] ||` instead of `[] //`

* Fix hack

* Add invalid tests

* checkMissingDecorators

* Update tests

* Fix tests

* Add comment

* Revert "Implement recoverInvalidDecorators"

This reverts commit 27e7b46ed41df36fb585791117c85e1b2dab932c.

* Add ref pr link

* Simplify logic

* Don't transform `TSTemplateLiteralType`

* Add `TSTemplateLiteralType` as simple type

* Fix tests

* Update comments

* Add comment

* Fix logic

* Minor tweak

* use multiple parsers

* Update @typescript-eslint/typescript-estree to v4.8.0

* Switch to `parseWithNodeMaps`

* Rename `esNode` -> `esTreeNode`

* Update @typescript-eslint/typescript-estree to 4.8.1-alpha.1

* Use @typescript-eslint/typescript-estree 4.8.1

Co-authored-by: fisker Cheung <lionkay@gmail.com>
2020-11-18 10:59:58 +09:00
Sosuke Suzuki fe789dc1d1 Reuse dirPath variable (#9683) 2020-11-16 14:17:36 +09:00
fisker Cheung 3e20fc244c Lint: Report duplicated changelog (#9666) 2020-11-14 12:45:30 +08:00
fisker Cheung 84b81c8a1a Enable directly-loc-start-end in language-css (#9591) 2020-11-05 19:26:05 +08:00
fisker Cheung 3d7016e2dc Add meriyah parser (#9514) 2020-11-05 14:08:37 +08:00
fisker Cheung c7390d33b7 Refactor: Use locStart and locEnd directly from language-js/loc.js (#9576) 2020-11-04 08:52:02 +08:00
Sosuke Suzukiandfisker f7554c62a2 Revert breaking changes related to adding pure css parser for minor releasing (#9500)
* revert without tests

* Downgrade postcss-scss and postcss-less

* Fix tests

* Revert "Make `isSCSS*` function stricter (#9093)"

This reverts commit 01f986bea9.

* Revert "Remove `css` parser from `isLessParser` check (#9092)"

This reverts commit c0bca1805d.

* Revert "Add pure css parser (#7933)"

This reverts commit 589ebf670b.

* Disable `parser-postcss.js` minify

* Try to fix build script

* Update fs.mjs

* Update fs.mjs

* Style

Co-authored-by: fisker <lionkay@gmail.com>
2020-10-31 22:22:35 +09:00
fisker CheungandGeorgii Dolzhykov fbee029497 Add index to FastPath#each() callback (#9499)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-10-30 12:27:20 +08:00
fisker Cheung fb07399ac5 Playground: only build needed files (#9480) 2020-10-26 09:44:09 +08:00
fisker Cheung e32cd5d284 Fix missing esm files in dist/package.json (#9491) 2020-10-26 09:07:44 +08:00
fisker Cheung 771a09dfee Refactor needs-parens.js (#9485) 2020-10-26 09:05:21 +08:00
dependabot[bot]andfisker 7f9444eb21 Build(deps): Bump postcss from 8.1.1 to 8.1.2 (#9443)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-10-23 20:44:04 +08:00
dependabot[bot]andfisker 5af5fa7a66 Build(deps-dev): Bump webpack from 4.44.2 to 5.1.0 (#9373)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-10-22 13:32:50 +08:00
fisker Cheung b7be0b5dbb Add .git-blame-ignore-revs (#9415) 2020-10-18 09:05:28 +08:00
fisker CheungandChris Brody 73e3976c34 Add espree parser (#9000)
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>
2020-10-13 09:14:02 +08:00
dependabot[bot]andfisker 0f595eae07 Build(deps): Bump @glimmer/syntax from 0.61.2 to 0.62.0 (#9240)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-09-27 08:52:51 +08:00
dependabot[bot]andfisker b084a84df0 Build(deps-dev): Bump @rollup/plugin-commonjs from 14.0.0 to 15.1.0 (#9253)
* Build(deps-dev): Bump @rollup/plugin-commonjs from 14.0.0 to 15.1.0

Bumps [@rollup/plugin-commonjs](https://github.com/rollup/plugins) from 14.0.0 to 15.1.0.
- [Release notes](https://github.com/rollup/plugins/releases)
- [Commits](https://github.com/rollup/plugins/compare/commonjs-v14.0.0...commonjs-v15.1.0)

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

* Try `requireReturnsDefault: "preferred"`

* Size check `.mjs`

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-09-22 13:05:31 +03:00
Yuku Kotaniandfisker 549090a5ba Add ESM distributions for browser (#8983)
Co-authored-by: fisker <lionkay@gmail.com>
2020-09-17 00:08:44 +08:00