Commit Graph
100 Commits
Author SHA1 Message Date
fisker Cheung 52c9a20e2c Merge branch 'main' into next
# Conflicts:
#	package.json
#	src/cli/index.js
#	tests/config/install-prettier.js
#	tests/format/yaml/block-literal/jsfmt.spec.js
#	tests/integration/__tests__/file-info.js
#	yarn.lock
2022-02-21 16:12:59 +08:00
fisker Cheung 54835025d5 Migrate JS language to ES Module (#12342) 2022-02-21 15:53:02 +08:00
fisker Cheung c5fd728273 Migrate Handlebars language to ES Module (#12340) 2022-02-21 14:46:56 +08:00
fisker Cheung 1caec5de69 Migrate CSS language to ES Module (#12341) 2022-02-21 14:22:51 +08:00
fisker Cheung b05812737d Migrate YAML language to ES Module (#12339) 2022-02-21 13:49:08 +08:00
fisker Cheung 0040204e2c Migrate GraphQL language to ES Module (#12321) 2022-02-21 10:25:39 +08:00
fisker Cheung 15781c91d4 Migrate Markdown language to ES Module (#12303) 2022-02-20 23:57:53 +08:00
fisker Cheung 888db50d9f Build: Fix --compare-size (#12323) 2022-02-18 17:12:18 +08:00
fisker CheungandAlexander Kachkaev 3ba48bb266 Add --no-plugin-search (#10274)
Co-authored-by: Alexander Kachkaev <alexander@kachkaev.ru>
2022-02-18 16:36:53 +08:00
fisker Cheung 56791a2624 Migrate src/*.js to ES Module (#12278) 2022-02-17 09:47:35 +08:00
fisker Cheung 7efc67a7ef Style: Minor refactor (#12308) 2022-02-16 08:34:55 +08:00
fisker Cheung da7eb9aa60 Remove duplicated location info in error message from meriyah parser (#12307) 2022-02-16 08:24:53 +08:00
fisker Cheung be0739ec22 Add type:"module" to package.json (#12272) 2022-02-12 15:39:16 +08:00
fisker Cheung dc80e12fd8 Merge branch 'main' into next 2022-02-11 21:11:23 +08:00
fisker Cheung badff2d1d6 Update esm-utils to v3 (#12274) 2022-02-11 18:02:04 +08:00
fisker Cheung 8a1da32ebe Merge branch 'main' into next
# Conflicts:
#	tests/config/install-prettier.js
2022-02-11 17:33:56 +08:00
fisker Cheung 1ec2fd8a8b Clean installed Prettier after test (#12273) 2022-02-11 17:25:51 +08:00
fisker Cheung 491825dd9b Migrate CLI to ES Module (#11903) 2022-02-11 09:56:58 +08:00
fisker Cheung 9303d84697 Merge branch 'main' into next
# Conflicts:
#	src/language-css/parser-postcss.js
#	tests/integration/__tests__/arg-parsing.js
#	tests/integration/__tests__/check.js
#	tests/integration/__tests__/config-invalid.js
#	tests/integration/__tests__/config-resolution.js
#	tests/integration/__tests__/cursor-offset.js
#	tests/integration/__tests__/debug-check.js
#	tests/integration/__tests__/debug-print-ast.js
#	tests/integration/__tests__/debug-print-comments.js
#	tests/integration/__tests__/debug-print-doc.js
#	tests/integration/__tests__/early-exit.js
#	tests/integration/__tests__/error-on-unmatched-pattern.js
#	tests/integration/__tests__/file-info.js
#	tests/integration/__tests__/help-options.js
#	tests/integration/__tests__/ignore-absolute-path.js
#	tests/integration/__tests__/ignore-emoji.js
#	tests/integration/__tests__/ignore-in-subdirectories.js
#	tests/integration/__tests__/ignore-path.js
#	tests/integration/__tests__/ignore-relative-path.js
#	tests/integration/__tests__/ignore-unknown.js
#	tests/integration/__tests__/ignore-vcs-files.js
#	tests/integration/__tests__/infer-parser.js
#	tests/integration/__tests__/invalid-ignore.js
#	tests/integration/__tests__/line-suffix-boundary.js
#	tests/integration/__tests__/list-different.js
#	tests/integration/__tests__/loglevel.js
#	tests/integration/__tests__/parser-api.js
#	tests/integration/__tests__/patterns-dirs.js
#	tests/integration/__tests__/patterns-glob.js
#	tests/integration/__tests__/patterns.js
#	tests/integration/__tests__/piped-output.js
#	tests/integration/__tests__/plugin-default-options.js
#	tests/integration/__tests__/plugin-extensions.js
#	tests/integration/__tests__/plugin-flush-line-suffix.js
#	tests/integration/__tests__/plugin-options-string.js
#	tests/integration/__tests__/plugin-options.js
#	tests/integration/__tests__/plugin-precedence.js
#	tests/integration/__tests__/plugin-preprocess.js
#	tests/integration/__tests__/plugin-resolution.js
#	tests/integration/__tests__/plugin-virtual-directory.js
#	tests/integration/__tests__/skip-folders.js
#	tests/integration/__tests__/stdin-filepath.js
#	tests/integration/__tests__/support-info.js
#	tests/integration/__tests__/syntax-error.js
#	tests/integration/__tests__/with-config-precedence.js
#	tests/integration/__tests__/with-node-modules.js
#	tests/integration/__tests__/with-parser-inference.js
#	tests/integration/__tests__/with-shebang.js
#	tests/integration/__tests__/write.js
2022-02-10 10:52:10 +08:00
fisker Cheung d962466a82 Style: Enforce kebab-case filename (#12265) 2022-02-10 10:12:31 +08:00
fisker Cheung 12b4283b4d Fix 2022-02-09 10:11:46 +08:00
fisker Cheung 1b6388e9b1 Fix 2022-02-09 10:08:32 +08:00
fisker Cheung f0b63f3dff Merge branch 'main' into next
# Conflicts:
#	CONTRIBUTING.md
#	cspell.json
#	docs/options.md
#	package.json
#	scripts/build/bundler.mjs
#	src/language-css/loc.js
#	src/language-css/parser-postcss.js
#	src/language-css/utils/index.js
#	tests/format/js/arrows-bind/jsfmt.spec.js
#	tests/format/js/async-do-expressions/jsfmt.spec.js
#	tests/format/js/bind-expressions/jsfmt.spec.js
#	tests/format/js/classes/top-level-super/jsfmt.spec.js
#	tests/format/js/comments-pipeline-own-line/jsfmt.spec.js
#	tests/format/js/decorator-comments/jsfmt.spec.js
#	tests/format/js/decorators-export/jsfmt.spec.js
#	tests/format/js/decorators/jsfmt.spec.js
#	tests/format/js/do/jsfmt.spec.js
#	tests/format/js/export-default/escaped/jsfmt.spec.js
#	tests/format/js/export-extension/jsfmt.spec.js
#	tests/format/js/export-star/jsfmt.spec.js
#	tests/format/js/exports/jsfmt.spec.js
#	tests/format/js/invalid-code/jsfmt.spec.js
#	tests/format/js/logical-assignment/jsfmt.spec.js
#	tests/format/js/multiparser-invalid/jsfmt.spec.js
#	tests/format/js/no-semi-babylon-extensions/jsfmt.spec.js
#	tests/format/js/object-property-comment/jsfmt.spec.js
#	tests/format/js/partial-application/jsfmt.spec.js
#	tests/format/js/pipeline-operator/jsfmt.spec.js
#	tests/format/js/private-in/jsfmt.spec.js
#	tests/format/js/record/jsfmt.spec.js
#	tests/format/js/reserved-word/jsfmt.spec.js
#	tests/format/js/strings/jsfmt.spec.js
#	tests/format/js/throw_expressions/jsfmt.spec.js
#	tests/format/js/trailing-whitespace/jsfmt.spec.js
#	tests/format/js/v8_intrinsic/jsfmt.spec.js
#	tests/format/misc/errors/js/literal/jsfmt.spec.js
#	tests/format/misc/errors/js/object/jsfmt.spec.js
#	tests/format/misc/errors/js/variable-declarator/jsfmt.spec.js
#	tests/integration/__tests__/bundle.js
#	tsconfig.json
#	yarn.lock
2022-02-09 09:22:32 +08:00
fisker Cheung ed951b3167 Update test:dist-lint script (#12262) 2022-02-09 08:30:36 +08:00
fisker Cheung f5b41bf133 Remove babel-loader (#12263) 2022-02-08 23:36:48 +08:00
fisker Cheung 6d02cd9650 Add parens to ClassExpression with decorators (#12260) 2022-02-08 15:06:31 +08:00
fisker Cheung b1e59dd70a Save vendor licenses for build script (#12258) 2022-02-08 10:33:09 +08:00
fisker Cheung 3712028053 Skip validate-vendor-versions on push (#12256) 2022-02-07 13:52:11 +08:00
fisker Cheung 0b7eee3536 Regenerate yarn.lock (#12254) 2022-02-07 12:31:36 +08:00
fisker Cheung ac348c1dbb Build: Add --compare-size flag (#12187) 2022-02-07 12:00:43 +08:00
fisker Cheung 717e6d8cb7 Follow up work for flow-parser@0.171.0 (#12252) 2022-02-07 11:24:32 +08:00
fisker Cheung 86a9e222d9 Update banner image url (#12188) 2022-02-05 22:55:41 +08:00
fisker Cheung 4ff9461a29 Improve build script (#12190) 2022-02-05 22:51:17 +08:00
fisker Cheung 8886e6310a Build: Add --clean (#12186) 2022-02-02 11:23:51 +09:00
fisker Cheung e3efd11401 Drop color support for standalone build (#12182) 2022-01-28 18:27:27 +08:00
fisker Cheung 08da4e55b0 Build: Remove define on second run (#12183) 2022-01-28 16:31:48 +08:00
fisker Cheung 9691e7bc37 Add acorn parser (#12172) 2022-01-28 15:25:30 +08:00
fisker Cheung a407f9b5af Exclude getInterpreter from 'standalone.js' (#12180) 2022-01-28 10:57:15 +08:00
fisker Cheung 350c05330e Build: Minor tweak to the umd plugin (#12179) 2022-01-28 10:34:59 +08:00
fisker Cheung 02052fd6ce Build: Verbose text report (#12178) 2022-01-28 10:11:35 +08:00
fisker CheungandSosuke Suzuki 2fd1406f5f Remove chalk from standalone.js (#12162)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-01-28 09:24:48 +08:00
fisker Cheung 9106e7ea13 Remove esm/doc.mjs (#12166) 2022-01-27 21:14:31 +08:00
fisker Cheung e73ee65d97 Reduce size of inherits module in parser-markdown.js (#12175) 2022-01-27 21:14:05 +08:00
fisker Cheung c9543b9fef Build: More reporter format (#12165) 2022-01-27 16:53:07 +08:00
fisker Cheung 950196fb88 Replace tslib entry when bundling parser-yaml.js (#12169) 2022-01-27 16:52:43 +08:00
fisker Cheung 7d7f7e928a Reduce bundled size of diff package (#12160) 2022-01-27 15:04:07 +08:00
fisker Cheung 7e73f1cf0d Update cSpell config (#12154) 2022-01-27 15:03:49 +08:00
fisker Cheung 54e9feb2d3 Build: Add --report flag (#12159) 2022-01-27 11:16:50 +08:00
fisker Cheung b08b79cc87 Update build script (#12157) 2022-01-27 09:37:55 +08:00
fisker Cheung f2ab2f9306 Remove useless TypeScriptServices from parser-typescript.js (#12155) 2022-01-26 22:27:10 +08:00
fisker Cheung f265e584df Build: Add --no-babel flag (#12153) 2022-01-26 20:33:15 +08:00
fisker Cheung 93af7641c9 Remove ts.sys in parser-typescript.js (#12151) 2022-01-26 19:38:03 +08:00
fisker Cheung d5bf36060f Exclude process shim (#12149) 2022-01-26 19:08:55 +08:00
fisker Cheung 7fbd4fcab3 Replace esbuild-plugin-browserslist with browserslist-to-esbuild (#12150) 2022-01-26 17:55:45 +08:00
fisker Cheung 2c5839b4ac Exclude assert shim (#12147) 2022-01-26 08:56:44 +08:00
fisker Cheung 27e7376229 Fix hangs on invalid v-for (#12113) 2022-01-19 20:53:17 +08:00
fisker Cheung 53da86c34d Fix some lgtm alerts (#12084) 2022-01-17 09:19:50 +08:00
fisker Cheung f2033d8f31 Update postcss-less to v6 (#12082) 2022-01-17 09:19:34 +08:00
fisker Cheung 16aa669141 Update rollup-plugin-license (#12081) 2022-01-16 10:21:29 +08:00
fisker Cheung 8b87407343 Linting 2022-01-14 16:53:01 +08:00
fisker Cheung 852619b8f9 Merge branch 'main' into next
# Conflicts:
#	package.json
#	scripts/build/build.mjs
#	scripts/build/bundler.mjs
#	scripts/build/shims/path.mjs
#	yarn.lock
2022-01-14 16:07:45 +08:00
fisker Cheung cc6856ae20 Build: Switch to esbuild (backport #12052 and #10006) (#12055) 2022-01-14 15:58:13 +08:00
fisker Cheung f1b0ea9386 Fix test 2022-01-14 15:57:17 +08:00
fisker Cheung c0fafdce78 Merge branch 'main' into next 2022-01-14 15:51:35 +08:00
fisker Cheung ddd45cf511 Bring back yarn test script (#12072) 2022-01-12 08:47:55 +08:00
fisker Cheung 668bbe7d0e Merge branch 'main' into next
# Conflicts:
#	package.json
#	website/package.json
#	website/yarn.lock
#	yarn.lock
2022-01-10 16:41:09 +08:00
fisker Cheung 4593aa07c2 Build: Switch to esbuild (#12052) 2022-01-09 01:15:04 +08:00
fisker Cheung 0cfb9d95e4 Merge branch 'main' into next 2022-01-08 22:19:54 +08:00
fisker Cheung 52ec456ab2 Add final new line to cspell.json file (#12049) 2022-01-08 12:14:07 +08:00
fisker Cheung 7290ff2dc7 Add internal ESLint rule no-legacy-format-test-fixtures (#12044) 2022-01-04 19:31:17 +08:00
fisker CheungandSosuke Suzuki 6bd81c23b6 Migrate format test to ES Module (#11902)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-01-04 17:00:25 +08:00
fisker Cheung d9ca78e156 Fix new test 2022-01-04 15:10:24 +08:00
fisker Cheung 12d8ac32c5 Merge branch 'main' into next
# Conflicts:
#	cspell.json
#	package.json
#	tests/integration/__tests__/early-exit.js
#	yarn.lock
2022-01-04 15:04:40 +08:00
fisker Cheung 624c51101c Enable unicorn/prefer-json-parse-buffer and unicorn/no-useless-promise-resolve-reject rule (#12043) 2022-01-04 13:56:10 +08:00
fisker Cheung 3a1de5cb4f Simplify clean-cspell script (#12015) 2022-01-03 22:17:14 +08:00
fisker CheungandSosuke Suzuki 5f453482bc Add internal ESLint rule await-cli-tests (#12013)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2022-01-03 22:16:25 +08:00
fisker Cheung cf4bf1adc0 Simplify cli options stack (#11994) 2021-12-24 19:34:18 +08:00
fisker Cheung 07f7ad8c79 Improve shorthand specifier detection (#11941) 2021-12-18 11:16:18 +08:00
fisker Cheung bdea56df87 Add changelog back (#11980) 2021-12-18 11:13:35 +08:00
fisker Cheung 306d009904 Use camelCase cli arguments internally (#11976) 2021-12-18 11:11:49 +08:00
fisker Cheung 6317e6557e Test: Make runPrettier result "thenable" (#11979) 2021-12-18 11:10:03 +08:00
fisker Cheung a938cf525c Fix 2021-12-17 10:37:49 +08:00
fisker Cheung 49c6b82517 Merge branch 'main' into next
# Conflicts:
#	package.json
#	tests/integration/__tests__/help-options.js
#	yarn.lock
2021-12-17 10:30:50 +08:00
fisker Cheung 326f23cd35 Restructure cli files (#11974) 2021-12-16 09:21:15 +08:00
fisker Cheung cd4a57b113 Remove .pre-commit-hooks.yaml (#11936) 2021-12-09 14:14:26 +08:00
fisker Cheung 011672669e Merge branch 'main' into next
# Conflicts:
#	package.json
#	yarn.lock
2021-12-07 15:15:42 +08:00
fisker Cheung fa821da366 Update netlify config (#11937) 2021-12-07 15:09:56 +08:00
fisker Cheung 294a02b979 Enable regexp/no-useless-lazy rule (#11014) 2021-12-07 14:15:03 +08:00
fisker Cheung e2d07b35ec Enable unicorn/prefer-switch (#11935) 2021-12-07 14:13:12 +08:00
fisker Cheung 7bce1d02c7 Fix comments inside map (#11920) 2021-12-06 21:31:51 +08:00
fisker Cheung 6b39dbe876 Update tempy to v2 (#11931) 2021-12-06 21:31:46 +08:00
fisker Cheung afa9e1eebf Add funding field to package.json (#11914) 2021-12-06 13:55:58 +08:00
fisker Cheung 29f408c99e Add changelog for #11892 (#11904) 2021-12-04 22:22:08 +09:00
fisker Cheung e7a74529a5 Make options argument in parsers optional (#11892) 2021-12-04 22:21:51 +09:00
fisker Cheung 5028086e07 Refactor integration test files to use ES Module (part 2) (#11912) 2021-12-03 15:41:12 +08:00
fisker Cheung 257a8dfd26 Add changelog for #11892 (#11904) 2021-12-03 13:19:57 +09:00
fisker CheungandSosuke Suzuki b49da10d38 Include bundled dependencies licenses in LICENSE file (#10006)
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com>
2021-12-02 19:47:14 +08:00
fisker Cheung dd2856341b Build: Remove aliases (#11885) 2021-12-02 19:12:59 +08:00
fisker Cheung 81d7ca3926 Merge branch 'main' into next 2021-12-02 14:00:53 +08:00
fisker Cheung 56818db4b4 Update postcss-scss to v4.0.2 (#11886) 2021-12-02 13:58:49 +08:00