Files
test-repo/tests/format/jsx/last-line/__snapshots__/jsfmt.spec.js.snap
T
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

128 lines
3.9 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`last_line.js - {"bracketSameLine":false} format 1`] = `
====================================options=====================================
bracketSameLine: false
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
<SomeHighlyConfiguredComponent
onEnter={this.onEnter}
onLeave={this.onLeave}
onChange={this.onChange}
initialValue={this.state.initialValue}
ignoreStuff={true}
>
<div>and the children go here</div>
<div>and here too</div>
</SomeHighlyConfiguredComponent>
=====================================output=====================================
<SomeHighlyConfiguredComponent
onEnter={this.onEnter}
onLeave={this.onLeave}
onChange={this.onChange}
initialValue={this.state.initialValue}
ignoreStuff={true}
>
<div>and the children go here</div>
<div>and here too</div>
</SomeHighlyConfiguredComponent>;
================================================================================
`;
exports[`last_line.js - {"bracketSameLine":true} format 1`] = `
====================================options=====================================
bracketSameLine: true
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
<SomeHighlyConfiguredComponent
onEnter={this.onEnter}
onLeave={this.onLeave}
onChange={this.onChange}
initialValue={this.state.initialValue}
ignoreStuff={true}
>
<div>and the children go here</div>
<div>and here too</div>
</SomeHighlyConfiguredComponent>
=====================================output=====================================
<SomeHighlyConfiguredComponent
onEnter={this.onEnter}
onLeave={this.onLeave}
onChange={this.onChange}
initialValue={this.state.initialValue}
ignoreStuff={true}>
<div>and the children go here</div>
<div>and here too</div>
</SomeHighlyConfiguredComponent>;
================================================================================
`;
exports[`single_prop_multiline_string.js - {"bracketSameLine":false} format 1`] = `
====================================options=====================================
bracketSameLine: false
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
<path d="M4.765 16.829l3.069-2.946 5.813 5.748
11.33-11.232 3.006 3.18-14.36 14.080z" />;
<Component text="Text
with
newlines">Content</Component>;
=====================================output=====================================
<path
d="M4.765 16.829l3.069-2.946 5.813 5.748
11.33-11.232 3.006 3.18-14.36 14.080z"
/>;
<Component
text="Text
with
newlines"
>
Content
</Component>;
================================================================================
`;
exports[`single_prop_multiline_string.js - {"bracketSameLine":true} format 1`] = `
====================================options=====================================
bracketSameLine: true
parsers: ["flow", "typescript"]
printWidth: 80
| printWidth
=====================================input======================================
<path d="M4.765 16.829l3.069-2.946 5.813 5.748
11.33-11.232 3.006 3.18-14.36 14.080z" />;
<Component text="Text
with
newlines">Content</Component>;
=====================================output=====================================
<path
d="M4.765 16.829l3.069-2.946 5.813 5.748
11.33-11.232 3.006 3.18-14.36 14.080z"
/>;
<Component
text="Text
with
newlines">
Content
</Component>;
================================================================================
`;