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>
This commit is contained in:
authored and GitHub committed 2021-08-31 11:47:50 +09:00
1 parent af19dd18d6
commit 4992d97203
37 files changed
+1207 -70

No files matched your search

+1 -1
View File
@@ -32,12 +32,12 @@ const ENABLED_OPTIONS = [
"singleQuote",
"bracketSpacing",
"jsxSingleQuote",
"jsxBracketSameLine",
"quoteProps",
"arrowParens",
"trailingComma",
"proseWrap",
"htmlWhitespaceSensitivity",
"bracketSameLine",
"insertPragma",
"requirePragma",
"vueIndentScriptAndStyle",