fisker Cheung
f8fff81005
Print HTML5 doctype in lowercase ( #7391 )
2022-08-08 01:13:18 +08:00
fisker Cheung
5aadab6f28
Support ESM plugins ( #13201 )
2022-08-06 10:42:27 +08:00
fisker Cheung
83400d19b4
Change default value of trailingComma to "all" ( #11479 )
2022-08-01 11:05:17 +08:00
fisker Cheung
c22ea97e00
Merge branch 'main' into next
...
# Conflicts:
# package.json
# scripts/build/bundler.mjs
# scripts/build/config.mjs
# src/language-html/print/tag.js
# src/main/load-parser.js
# src/main/parser.js
# yarn.lock
2022-06-06 22:00:41 +08:00
Sosuke Suzuki
be9d63e543
Avoid printing attribute per line in Vue SFC blocks ( #12895 )
...
* Avoid print single attribute perline for Vue SFC blocks
* Add tests
* Add changelog
* Fix typo
* Add more tests
2022-06-04 23:25:27 +09:00
fisker Cheung
9569ab12aa
Merge branch 'main' into next
...
# Conflicts:
# .github/renovate.json5
# .github/workflows/lint.yml
# package.json
# src/cli/format.js
# src/language-js/print/type-annotation.js
# src/language-js/print/typescript.js
# src/language-js/utils/index.js
# tests/format/typescript/enum/jsfmt.spec.js
# tests/format/vue/with-plugins/jsfmt.spec.js
# website/yarn.lock
# yarn.lock
2022-05-28 11:19:03 +08:00
053022f5ed
Infer Stylus parser in Vue SFC ( #12707 )
...
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-05-01 23:01:24 +08:00
fisker Cheung
76d0002265
Fix by ESLint
2022-04-25 14:48:07 +08:00
fisker Cheung
a85f38f096
Merge branch 'main' into next
...
# Conflicts:
# .github/workflows/dev-test.yml
# jest.config.mjs
# package.json
# scripts/vendors/vendor-meta.json
# scripts/vendors/vendors.mjs
# src/cli/format.js
# src/cli/options/create-minimist-options.js
# src/cli/options/parse-cli-arguments.js
# src/cli/usage.js
# src/cli/utils.js
# src/common/create-ignorer.js
# src/common/load-plugins.js
# src/config/resolve-config.js
# src/index.js
# src/language-css/utils/css-units.evaluate.js
# src/language-html/ast.js
# src/language-html/print-preprocess.js
# src/language-html/utils/index.js
# src/main/multiparser.js
# tests/format/markdown/auto-link/jsfmt.spec.js
# tests/integration/__tests__/__snapshots__/config-resolution.js.snap
# tests/integration/__tests__/__snapshots__/with-config-precedence.js.snap
# tests/integration/__tests__/file-info.js
# yarn.lock
2022-04-25 14:28:27 +08:00
Sosuke Suzuki
a4cba80dc0
Allow formatting for Vue template expression written in TypeScript ( #12584 )
...
* Support TS expression in vue SFC
* Add changelog
* Add `__ts_expression`
* Add `__vue_ts_expression`
* Add tests
* Do not use `ast.walk`
* Address review
* Add `__vue_ts_event_binding`
* Fix
2022-04-17 13:12:19 +09:00
fisker Cheung
8118299c67
Merge branch 'main' into next
...
# Conflicts:
# .github/workflows/validate-vendor-versions.yml
# package.json
# src/language-css/printer-postcss.js
# src/language-js/print/assignment.js
2022-03-10 11:30:31 +08:00
02c17f131b
Allow lang attribute of <template> to be empty ( #12394 )
...
Co-authored-by: niklasvatn <niklas@vatn.se >
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2022-03-09 06:37:16 +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
27e7376229
Fix hangs on invalid v-for ( #12113 )
2022-01-19 20:53:17 +08:00
fisker Cheung and Sosuke 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
Jere Kankaanranta
0e42acb49b
feat: added singleAttributePerLine option ( #5501 ) ( #6644 )
2021-12-02 11:46:11 +03: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
fisker Cheung
894f841fbd
Style: Enforce extensions ( #11227 )
2021-07-21 09:10:34 +08:00
fisker Cheung
ece93681f1
Restructure test files ( #10415 )
2021-04-25 20:01:56 +08:00