From 19d2b7f308657a0a8159e8e6227d003571c6dd25 Mon Sep 17 00:00:00 2001 From: Will Harney <62956339+wjhsf@users.noreply.github.com> Date: Wed, 27 Nov 2024 14:23:32 -0500 Subject: [PATCH] chore(prettier): format fixture input files (#4972) --- .prettierignore | 18 +- .../actual.js | 22 +- .../camel-to-kebab-component-name/config.json | 2 +- .../config.json | 2 +- .../config.json | 2 +- .../config.json | 2 +- .../config.json | 2 +- .../check-validation-for-strict/config.json | 2 +- .../config.json | 2 +- .../test-custom-loader/config.json | 2 +- .../config.json | 2 +- .../api-decorator/config.json | 2 +- .../implicit-explicit/mixin/config.json | 2 +- .../noop-implicit-export-const/config.json | 2 +- .../noop-implicit-export-function/config.json | 2 +- .../test-cmp-anonymous-class/config.json | 2 +- .../config.json | 2 +- .../implicit-explicit/wire/config.json | 2 +- .../adjacent-text-nodes/empty/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 6 +- .../nonempty-dynamic/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 6 +- .../adjacent-text-nodes/nonempty/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 6 +- .../with-comments/empty1/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 4 +- .../with-comments/empty2/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 4 +- .../with-comments/empty3/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 4 +- .../with-comments/nonempty1/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 2 +- .../with-comments/nonempty2/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 4 +- .../with-comments/nonempty3/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 4 +- .../with-comments/preserve-comments/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 4 +- .../with-comments/preserve-comments2/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 4 +- .../with-comments/preserve-comments3/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 4 +- .../modules/x/cmp/cmp.js | 24 +- .../modules/x/cmp/cmp.js | 14 +- .../dynamic/modules/x/child/child.js | 2 +- .../modules/x/grandchild/grandchild.js | 3 +- .../dynamic/modules/x/parent/parent.js | 8 +- .../fixtures/attribute-boolean/index.js | 2 +- .../x/attribute-boolean/attribute-boolean.js | 2 +- .../unstyled/array/modules/x/parent/parent.js | 10 +- .../unstyled/child/modules/x/child/child.js | 4 +- .../unstyled/child/modules/x/parent/parent.js | 8 +- .../component/modules/x/child/child.js | 4 +- .../component/modules/x/parent/parent.js | 10 +- .../unstyled/dynamic/modules/x/child/child.js | 2 +- .../modules/x/grandchild/grandchild.js | 3 +- .../dynamic/modules/x/parent/parent.js | 18 +- .../object/modules/x/parent/parent.js | 8 +- .../dynamic/modules/x/child/child.js | 2 +- .../modules/x/grandchild/grandchild.js | 3 +- .../dynamic/modules/x/parent/parent.js | 18 +- .../dynamic/modules/x/child/child.js | 2 +- .../modules/x/grandchild/grandchild.js | 3 +- .../dynamic/modules/x/parent/parent.js | 18 +- .../dynamic/modules/x/child/child.js | 2 +- .../modules/x/grandchild/grandchild.js | 3 +- .../dynamic/modules/x/parent/parent.js | 18 +- .../attribute-component-aria/index.js | 2 +- .../attribute-component-aria.js | 2 +- .../modules/x/child/child.js | 2 +- .../attribute-component-global-html/index.js | 2 +- .../attribute-component-global-html.js | 2 +- .../modules/x/child/child.js | 2 +- .../attribute-dynamic-escape/config.json | 2 +- .../attribute-dynamic-escape/index.js | 2 +- .../attribute-dynamic-escape.js | 2 +- .../index.js | 2 +- .../attribute-dynamic-with-scoped-css.js | 4 +- ...tribute-dynamic-with-scoped-css.scoped.css | 6 +- .../fixtures/attribute-dynamic/index.js | 2 +- .../x/attribute-dynamic/attribute-dynamic.js | 2 +- .../modules/x/test/test.js | 3 +- .../undeclared/modules/x/child/child.js | 3 +- .../modules/x/component/component.js | 2 +- .../with-@api/modules/x/child/child.js | 216 +++++++++--------- .../modules/x/component/component.js | 2 +- .../without-@api/modules/x/child/child.js | 216 +++++++++--------- .../modules/x/component/component.js | 2 +- .../attribute-global-html/basic/index.js | 2 +- .../attribute-global-html.js | 2 +- .../fixtures/attribute-live-bindings/index.js | 2 +- .../attribute-live-bindings.js | 2 +- .../modules/x/cmp/cmp.js | 16 +- .../attribute-null/modules/x/test/test.js | 18 +- .../fixtures/attribute-static/index.js | 2 +- .../x/attribute-static/attribute-static.js | 2 +- .../fixtures/attribute-style/basic/index.js | 2 +- .../x/attribute-style/attribute-style.js | 4 +- .../basic/modules/x/child/child.js | 2 +- .../dynamic/modules/x/child/child.js | 2 +- .../modules/x/grandchild/grandchild.js | 3 +- .../dynamic/modules/x/parent/parent.js | 36 +-- .../fixtures/attributes-aria/index.js | 2 +- .../x/attributes-aria/attributes-aria.js | 2 +- .../fixtures/comments-basic/index.js | 2 +- .../x/comments-basic/comments-basic.js | 2 +- .../fixtures/comments-foreach/index.js | 2 +- .../x/comments-foreach/comments-foreach.js | 2 +- .../__tests__/fixtures/comments-if/index.js | 2 +- .../modules/x/comments-if/comments-if.js | 2 +- .../__tests__/fixtures/comments-slot/index.js | 2 +- .../comments-slot/modules/x/child/child.js | 2 +- .../modules/x/comments-slot/comments-slot.js | 2 +- .../comments-text-preserve-off/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 2 +- .../fixtures/comments-text-preserve/index.js | 2 +- .../modules/x/comments-text/comments-text.js | 2 +- .../src/__tests__/fixtures/component/index.js | 2 +- .../component/modules/x/child/child.js | 2 +- .../modules/x/component/component.js | 2 +- .../__tests__/fixtures/computed/config.json | 2 +- .../src/__tests__/fixtures/computed/index.js | 2 +- .../computed/modules/x/computed/computed.js | 2 +- .../modules/x/consumer/consumer.js | 2 +- .../modules/x/provider/provider.js | 4 +- .../fixtures/context-deep/wire-adapter.js | 1 - .../modules/x/consumer/consumer.js | 2 +- .../modules/x/provider/provider.js | 4 +- .../wire-adapter.js | 1 - .../modules/x/consumer/consumer.js | 4 +- .../modules/x/provider/provider.js | 8 +- .../x/providerNested/providerNested.js | 4 +- .../fixtures/context-nested/wire-adapter.js | 2 - .../modules/x/consumer/consumer.js | 2 +- .../context-no-provider/wire-adapter.js | 1 - .../modules/x/consumer/consumer.js | 2 +- .../modules/x/middle/middle.js | 4 +- .../modules/x/provider/provider.js | 4 +- .../fixtures/context-shadowed/wire-adapter.js | 1 - .../modules/x/consumer/consumer.js | 10 +- .../modules/x/provider/provider.js | 4 +- .../context-simple-method/wire-adapter.js | 1 - .../modules/x/consumer/consumer.js | 16 +- .../modules/x/provider/provider.js | 4 +- .../context-simple-setter/wire-adapter.js | 1 - .../modules/x/consumer/consumer.js | 2 +- .../modules/x/provider/provider.js | 4 +- .../fixtures/context-simple/wire-adapter.js | 1 - .../modules/x/consumer/consumer.js | 2 +- .../modules/x/provider/provider.js | 4 +- .../fixtures/context-slotted/wire-adapter.js | 1 - .../custom-styles-with-newlines/index.js | 2 +- .../decorator-api/modules/x/child/child.js | 8 +- .../decorator-api/modules/x/parent/parent.js | 2 +- .../modules/x/component/component.js | 36 +-- .../fixtures/delegates-focus/index.js | 2 +- .../x/delegates-focus/delegates-focus.js | 4 +- .../light/modules/x/inner/inner.js | 4 +- .../light/modules/x/outer/outer.js | 4 +- .../shadow/modules/x/inner/inner.js | 5 +- .../shadow/modules/x/outer/outer.js | 2 +- .../dynamic-components/basic/index.js | 2 +- .../basic/modules/x/dynamic/dynamic.js | 2 +- .../basic/modules/x/test/test.js | 4 +- .../invalid-ctor-function/index.js | 2 +- .../dynamic-invalid-ctor.js | 2 +- .../dynamic-components/invalid-ctor/index.js | 2 +- .../dynamic-invalid-ctor.js | 2 +- .../dynamic-components/mixed/index.js | 2 +- .../mixed/modules/x/dynamic/dynamic.js | 2 +- .../mixed/modules/x/test/test.js | 4 +- .../dynamic-components/no-ctor/index.js | 2 +- .../x/dynamic-no-ctor/dynamic-no-ctor.js | 2 +- .../modules/x/scopedStyle/scopedStyle.js | 2 +- .../slots/light-fallback/index.js | 2 +- .../modules/x/dynamic/dynamic.js | 2 +- .../light-fallback/modules/x/test/test.js | 2 +- .../dynamic-components/slots/light/index.js | 2 +- .../slots/light/modules/x/dynamic/dynamic.js | 2 +- .../slots/light/modules/x/test/test.js | 2 +- .../slots/scoped-slots/config.json | 8 +- .../slots/scoped-slots/index.js | 2 +- .../scoped-slots/modules/x/dynamic/dynamic.js | 2 +- .../slots/scoped-slots/modules/x/test/test.js | 2 +- .../dynamic-components/slots/shadow/index.js | 2 +- .../slots/shadow/modules/x/dynamic/dynamic.js | 2 +- .../slots/shadow/modules/x/test/test.js | 4 +- .../fixtures/dynamic-imports/basic/index.js | 2 +- .../basic/modules/x/dynamic/dynamic.js | 10 +- .../basic/modules/x/fake/fake.js | 2 +- .../__tests__/fixtures/dynamic-slots/index.js | 2 +- .../modules/x/receiver/receiver.js | 2 +- .../index.js | 2 +- .../modules/x/comments-text/comments-text.js | 2 +- .../component-as-default/modules/x/cmp/cmp.js | 2 +- .../default-class-named/modules/x/cmp/cmp.js | 2 +- .../modules/x/cmp/cmp.js | 2 +- .../default-identifier/modules/x/cmp/cmp.js | 2 +- .../__tests__/fixtures/face-callback/index.js | 2 +- .../modules/face/container/container.js | 2 +- .../modules/face/control/control.js | 2 +- .../fixtures/for-each-block/config.json | 8 +- .../fixtures/for-each-block/index.js | 2 +- .../x/for-each-block/for-each-block.js | 2 +- .../for-each-child-nested/config.json | 2 +- .../fixtures/for-each-child-nested/index.js | 2 +- .../modules/x/child/child.js | 2 +- .../for-each-child-nested.js | 2 +- .../fixtures/for-each-nested/config.json | 2 +- .../fixtures/for-each-nested/index.js | 2 +- .../x/for-each-nested/for-each-nested.js | 2 +- .../modules/x/container/container.js | 29 ++- .../getter-class-list-noop.js | 6 +- .../fixtures/getter-class-list/index.js | 2 +- .../x/getter-class-list/getter-class-list.js | 4 +- .../fixtures/getter-is-connected/index.js | 2 +- .../modules/x/parent/parent.js | 26 +-- .../modules/x/test/test.js | 2 +- .../modules/x/test/test.js | 2 +- .../src/__tests__/fixtures/if-block/index.js | 2 +- .../if-block/modules/x/if-block/if-block.js | 2 +- .../if-conditional-slot-content/index.js | 2 +- .../modules/x/child/child.js | 4 +- .../modules/x/slotted/slotted.js | 4 +- .../fixtures/if-conditional-slot/index.js | 2 +- .../modules/x/child/child.js | 4 +- .../modules/x/slotted/slotted.js | 2 +- .../fixtures/if-custom-element-child/index.js | 2 +- .../fixtures/if-element-child/index.js | 2 +- .../modules/x/elementChild/elementChild.js | 3 +- .../import-lwc-from-helper/imports.js | 43 ++-- .../modules/x/cmp/cmp.js | 8 +- .../import-lwc-from-helper/wire-adapter.js | 2 +- .../fixtures/inner-outer-html/config.json | 8 +- .../iterator-block-missing-value/index.js | 2 +- .../x/iterator-block/iterator-block.js | 2 +- .../fixtures/iterator-block/config.json | 8 +- .../fixtures/iterator-block/index.js | 2 +- .../x/iterator-block/iterator-block.js | 2 +- .../iterator-blocks-multiple/config.json | 8 +- .../iterator-blocks-multiple/index.js | 2 +- .../x/iterator-block/iterator-block.js | 4 +- .../modules/x/component/component.js | 3 +- .../dynamic/modules/x/child/child.js | 2 +- .../dynamic/modules/x/component/component.js | 26 +-- .../modules/x/component/component.js | 3 +- .../modules/x/component/component.js | 3 +- .../modules/x/component/component.js | 3 +- .../modules/x/component/component.js | 3 +- .../dynamic/modules/x/child/child.js | 2 +- .../dynamic/modules/x/component/component.js | 24 +- .../modules/x/child/child.js | 3 +- .../modules/x/component/component.js | 3 +- .../static/modules/x/component/component.js | 3 +- .../dynamic/modules/x/child/child.js | 2 +- .../dynamic/modules/x/component/component.js | 26 +-- .../static/modules/x/component/component.js | 3 +- .../dynamic/modules/x/component/component.js | 26 +-- .../static/modules/x/component/component.js | 3 +- .../modules/x/component/component.js | 26 +-- .../fixtures/lifecycle-hooks/index.js | 2 +- .../light-dom-multiple/modules/x/one/one.js | 2 +- .../modules/x/parent/parent.css | 2 +- .../modules/x/parent/parent.js | 2 +- .../light-dom-multiple/modules/x/two/two.js | 2 +- .../modules/x/basic/basic.js | 8 +- .../modules/x/basic/basic.css | 4 +- .../modules/x/basic/basic.js | 2 +- .../modules/x/basic/basic.css | 4 +- .../modules/x/basic/basic.js | 2 +- .../src/__tests__/fixtures/light-dom/index.js | 2 +- .../light-dom/modules/x/basic/basic.css | 4 +- .../light-dom/modules/x/basic/basic.js | 4 +- .../fixtures/lwc-dom-manual/index.js | 2 +- .../x/lwc-dom-manual/lwc-dom-manual.js | 2 +- .../fixtures/lwc-dynamic/config.json | 10 +- .../__tests__/fixtures/lwc-dynamic/index.js | 2 +- .../modules/x/lwc-dynamic/lwc-dynamic.js | 2 +- .../lwc-dynamic/modules/x/test/test.js | 4 +- .../fixtures/lwc-if-else-if-else/index.js | 2 +- .../modules/x/component/component.js | 2 +- .../__tests__/fixtures/lwc-if-else/index.js | 2 +- .../modules/x/component/component.js | 2 +- .../src/__tests__/fixtures/lwc-if/index.js | 2 +- .../lwc-if/modules/x/component/component.js | 2 +- .../fixtures/lwc-inner-html/config.json | 2 +- .../fixtures/lwc-inner-html/index.js | 2 +- .../x/lwc-inner-html/lwc-inner-html.js | 2 +- .../fixtures/method-get-attribute/index.js | 2 +- .../modules/x/child/child.js | 2 +- .../method-get-attribute.js | 2 +- .../fixtures/method-remove-attribute/index.js | 2 +- .../method-remove-attribute.js | 2 +- .../fixtures/method-set-attribute/index.js | 2 +- .../method-set-attribute.js | 4 +- .../__tests__/fixtures/methods-noop/index.js | 2 +- .../modules/x/methods-noop/methods-noop.js | 2 +- .../fixtures/methods-unsupported/index.js | 2 +- .../methods-unsupported.js | 26 ++- .../modules/x/parent/parent.js | 12 +- .../modules/x/child/child.js | 14 +- .../modules/x/parent/parent.js | 6 +- .../modules/x/deepChild/deepChild.js | 14 +- .../modules/x/parent/parent.js | 6 +- .../modules/x/parent/parent.js | 6 +- .../modules/x/slotted/slotted.js | 14 +- .../overwrite-properties-template/index.js | 2 +- .../modules/x/child/child.js | 2 +- .../overwrite-properties-template.js | 2 +- .../fixtures/overwrite-properties/config.json | 4 +- .../fixtures/overwrite-properties/index.js | 2 +- .../overwrite-properties.js | 2 +- .../modules/x/child/child.js | 10 +- .../modules/x/parent/parent.js | 10 +- .../modules/x/slotted/slotted.js | 10 +- .../basic/modules/x/child/child.js | 66 +++--- .../basic/modules/x/parent/parent.js | 8 +- .../dynamic-child/modules/x/child/child.js | 66 +++--- .../dynamic-child/modules/x/parent/parent.js | 12 +- .../pseudo-attribute/modules/x/child/child.js | 68 +++--- .../modules/x/parent/parent.js | 8 +- .../fixtures/reflection/attr-to-prop/index.js | 2 +- .../attr-to-prop/modules/x/test/test.js | 2 +- .../fixtures/reflection/prop-to-attr/index.js | 2 +- .../prop-to-attr/modules/x/test/test.js | 2 +- .../__tests__/fixtures/rehydration/index.js | 2 +- .../modules/x/rehydration/rehydration.js | 2 +- .../modules/x/component/component.js | 34 +-- .../modules/x/test/test.js | 2 +- .../modules/x/test/test.js | 2 +- .../modules/x/test/test.js | 3 +- .../modules/x/test/test.js | 2 +- .../modules/x/test/test.js | 3 +- .../modules/x/test/test.js | 2 +- .../modules/x/component/component.js | 10 +- .../light/modules/x/inner/inner.js | 4 +- .../light/modules/x/outer/outer.js | 4 +- .../shadow/modules/x/inner/inner.js | 2 +- .../shadow/modules/x/outer/outer.js | 2 +- .../advanced/modules/x/child/child.js | 2 +- .../advanced/modules/x/parent/parent.js | 2 +- .../fixtures/scoped-slots/basic/index.js | 2 +- .../basic/modules/x/basicChild/basicChild.js | 2 +- .../modules/x/child/child.js | 2 +- .../modules/x/parent/parent.js | 6 +- .../modules/x/child/child.js | 2 +- .../modules/x/parent/parent.js | 6 +- .../deep/modules/x/child/child.js | 2 +- .../deep/modules/x/parent/parent.js | 6 +- .../expression/modules/x/child/child.js | 2 +- .../expression/modules/x/parent/parent.js | 2 +- .../fixtures/scoped-slots/for-each/index.js | 2 +- .../parentOfChildWithForEach.css | 2 +- .../modules/x/child/child.js | 2 +- .../modules/x/parent/parent.js | 2 +- .../modules/x/child/child.js | 2 +- .../modules/x/parent/parent.js | 2 +- .../fixtures/scoped-slots/named-slot/index.js | 2 +- .../named-slot/modules/x/child/child.js | 2 +- .../modules/x/child/child.js | 4 +- .../modules/x/parent/parent.js | 4 +- .../modules/x/child/child.js | 2 +- .../modules/x/parent/parent.js | 8 +- .../modules/x/child/child.js | 2 +- .../modules/x/parent/parent.js | 4 +- .../modules/x/component/component.js | 2 +- .../modules/x/basic/basic.css | 4 +- .../modules/x/basic/basic.js | 3 +- .../ifTrue/light/modules/x/another/another.js | 4 +- .../ifTrue/light/modules/x/inner/inner.js | 4 +- .../ifTrue/light/modules/x/outer/outer.js | 8 +- .../shadow/modules/x/another/another.js | 4 +- .../ifTrue/shadow/modules/x/inner/inner.js | 4 +- .../ifTrue/shadow/modules/x/outer/outer.js | 8 +- .../lwcIf/light/modules/x/another/another.js | 4 +- .../lwcIf/light/modules/x/inner/inner.js | 4 +- .../lwcIf/light/modules/x/outer/outer.js | 8 +- .../lwcIf/shadow/modules/x/another/another.js | 4 +- .../lwcIf/shadow/modules/x/inner/inner.js | 4 +- .../lwcIf/shadow/modules/x/outer/outer.js | 8 +- .../element/light/modules/x/inner/inner.js | 4 +- .../element/light/modules/x/outer/outer.js | 4 +- .../element/shadow/modules/x/inner/inner.js | 5 +- .../element/shadow/modules/x/outer/outer.js | 5 +- .../external/light/modules/x/inner/inner.js | 4 +- .../external/light/modules/x/outer/outer.js | 4 +- .../external/shadow/modules/x/inner/inner.js | 5 +- .../external/shadow/modules/x/outer/outer.js | 5 +- .../ifTrue/light/modules/x/inner/inner.js | 4 +- .../ifTrue/light/modules/x/outer/outer.js | 6 +- .../ifTrue/shadow/modules/x/inner/inner.js | 5 +- .../ifTrue/shadow/modules/x/outer/outer.js | 4 +- .../lwcIf/light/modules/x/inner/inner.js | 4 +- .../lwcIf/light/modules/x/outer/outer.js | 6 +- .../lwcIf/shadow/modules/x/inner/inner.js | 5 +- .../lwcIf/shadow/modules/x/outer/outer.js | 4 +- .../__tests__/fixtures/slotchange/index.js | 2 +- .../fallback/light/modules/x/inner/inner.js | 4 +- .../fallback/light/modules/x/outer/outer.js | 4 +- .../fallback/shadow/modules/x/inner/inner.js | 5 +- .../fallback/shadow/modules/x/outer/outer.js | 5 +- .../slotted/light/modules/x/inner/inner.js | 4 +- .../slotted/light/modules/x/outer/outer.js | 4 +- .../slotted/shadow/modules/x/inner/inner.js | 5 +- .../slotted/shadow/modules/x/outer/outer.js | 5 +- .../fixtures/slots-fallback/index.js | 2 +- .../modules/x/receiver/receiver.js | 2 +- .../x/slots-fallback/slots-fallback.js | 2 +- .../__tests__/fixtures/slots-nested/index.js | 2 +- .../__tests__/fixtures/slots-unknown/index.js | 2 +- .../src/__tests__/fixtures/slots/index.js | 2 +- .../slots/modules/x/receiver/receiver.js | 2 +- .../fixtures/slots/modules/x/slots/slots.js | 2 +- .../modules/x/stylish/stylish.js | 14 +- .../modules/x/stylish/stylish.js | 6 +- .../modules/x/stylish/stylish.js | 8 +- .../modules/x/stylish/stylish.js | 6 +- .../modules/x/stylish/stylish.js | 4 +- .../modules/x/stylish/stylish.js | 6 +- .../modules/x/stylish/stylish.js | 4 +- .../modules/x/stylish/stylish.js | 4 +- .../modules/x/stylish/stylish.js | 4 +- .../fixtures/style-class-whitespace/index.js | 2 +- .../modules/x/foo/foo.js | 2 +- .../index.js | 2 +- .../modules/x/styles/styles.css | 2 +- .../modules/x/styles/styles.js | 2 +- .../index.js | 2 +- .../modules/x/styles/styles.css | 2 +- .../modules/x/styles/styles.js | 2 +- .../index.js | 2 +- .../modules/x/styles/styles.css | 2 +- .../modules/x/styles/styles.js | 2 +- .../index.js | 2 +- .../modules/x/styles/styles.css | 2 +- .../modules/x/styles/styles.js | 2 +- .../fixtures/styles-escaping-safe/index.js | 2 +- .../modules/x/styles/styles.js | 2 +- .../fixtures/styles-escaping-unsafe/index.js | 2 +- .../modules/x/styles/styles.js | 2 +- .../fixtures/styles-keyframes/index.js | 2 +- .../modules/x/styles/styles.js | 2 +- .../styles-shared/modules/x/shared.css | 2 +- .../src/__tests__/fixtures/styles/index.js | 2 +- .../styles/modules/x/styles/styles.css | 2 +- .../styles/modules/x/styles/styles.js | 2 +- .../basic/modules/x/component/component.js | 2 +- .../modules/x/fancyElement/fancyElement.js | 2 +- .../fancy/modules/x/component/component.js | 8 +- .../modules/x/fancyElement/fancyElement.js | 6 +- .../fancy/modules/x/fancyMixin/fancyMixin.js | 13 +- .../mixin/modules/x/component/component.js | 4 +- .../mixin/modules/x/fancyMixin/fancyMixin.js | 11 +- .../modules/x/component/component.js | 4 +- .../modules/x/fancyElement/fancyElement.js | 2 +- .../modules/x/component/component.js | 12 +- .../x/mixinSuperclass/mixinSuperclass.js | 8 +- .../modules/x/notLwcClass/notLwcClass.js | 4 +- .../modules/x/superless/superless.js | 6 +- .../override/modules/x/component/component.js | 4 +- .../modules/x/fancyElement/fancyElement.js | 2 +- .../modules/x/component/component.js | 4 +- .../modules/x/fancyElement/fancyElement.js | 4 +- .../modules/x/component/component.js | 8 +- .../modules/x/fancyElement/fancyElement.js | 4 +- .../modules/x/component/component.js | 5 +- .../modules/x/fancyElement/fancyElement.js | 6 +- .../modules/x/component/component.js | 4 +- .../modules/x/fancyElement/fancyElement.js | 4 +- .../src/__tests__/fixtures/svgs/index.js | 2 +- .../fixtures/svgs/modules/x/svgs/svgs.js | 2 +- .../text-interpolation-escape/config.json | 2 +- .../text-interpolation-escape/index.js | 2 +- .../text-interpolation-escape.js | 2 +- .../fixtures/text-interpolation/config.json | 2 +- .../fixtures/text-interpolation/index.js | 2 +- .../text-interpolation/text-interpolation.js | 2 +- .../__tests__/fixtures/text-static/index.js | 2 +- .../modules/x/text-static/text-static.js | 2 +- .../modules/x/component/component.js | 20 +- .../__tests__/fixtures/wire/basic/index.js | 2 +- .../wire/basic/modules/x/wire/wire.js | 2 +- .../__tests__/fixtures/wire/config/index.js | 2 +- .../wire/config/modules/x/wire/adapter.js | 10 +- .../wire/config/modules/x/wire/wire.js | 6 +- .../fixtures/wire/deep-reference/index.js | 2 +- .../deep-reference/modules/x/wire/wire.js | 8 +- .../index.js | 2 +- .../modules/x/wire/wire.js | 12 +- .../index.js | 2 +- .../modules/x/wire/wire.js | 10 +- .../index.js | 2 +- .../modules/x/wire/wire.js | 8 +- .../index.js | 2 +- .../modules/x/wire/wire.js | 8 +- .../index.js | 2 +- .../modules/x/wire/wire.js | 10 +- .../index.js | 2 +- .../modules/x/wire/wire.js | 10 +- .../index.js | 2 +- .../modules/x/wire/wire.js | 10 +- .../index.js | 2 +- .../modules/x/wire/wire.js | 10 +- .../__tests__/fixtures/wire/field/index.js | 2 +- .../wire/field/modules/x/adapter/adapter.js | 10 +- .../wire/field/modules/x/wire/wire.js | 6 +- .../fixtures/wire/imported-member/index.js | 2 +- .../imported-member/modules/x/wire/adapter.js | 4 +- .../imported-member/modules/x/wire/wire.js | 4 +- .../__tests__/fixtures/wire/method/index.js | 2 +- .../wire/method/modules/x/adapter/adapter.js | 10 +- .../wire/method/modules/x/wire/wire.js | 6 +- .../custom-resolution/custom/module.js | 2 +- .../custom-resolution/lwc.config.json | 2 +- .../fixtures/custom-resolution/package.json | 2 +- .../errors/invalid-alias/lwc.config.json | 8 +- .../errors/invalid-lwc-config/lwc.config.json | 2 +- .../missing-aliased-file/lwc.config.json | 4 +- .../errors/missing-dir-entry/lwc.config.json | 4 +- .../errors/missing-dir/lwc.config.json | 4 +- .../missing-npm-expose-config/lwc.config.json | 6 +- .../missing-npm-expose-config/package.json | 2 +- .../lwc.config.json | 6 +- .../missing-npm-exposed-module/package.json | 2 +- .../missing-npm-module-config/lwc.config.json | 6 +- .../missing-npm-module-config/package.json | 2 +- .../lwc.config.json | 6 +- .../package.json | 2 +- .../missing-npm-package/lwc.config.json | 4 +- .../fixtures/from-npm/lwc.config.json | 7 +- .../__tests__/fixtures/from-npm/package.json | 2 +- .../fixtures/mapping/lwc.config.json | 36 +-- .../fixtures/module-entries/lwc.config.json | 6 +- .../modules/ns/jsEntry/jsEntry.js | 2 +- .../modules/ns/tsEntry/tsEntry.ts | 4 +- .../module-entries/modules/ns/tsEntry/util.ts | 2 +- .../fixtures/module-entries/package.json | 2 +- .../fixtures/multi-version/lwc.config.json | 6 +- .../multi-version/src/modules/root/foo/foo.js | 6 +- .../fixtures/no-config/custom/module.js | 2 +- .../__tests__/fixtures/no-config/package.json | 2 +- .../fixtures/symlink/app/package.json | 10 +- .../fixtures/symlink/linked/linked.js | 2 +- .../fixtures/symlink/linked/package.json | 2 +- .../dynamicComponent/dynamicComponent.js | 2 +- .../dynamicImportConfig.js | 2 +- .../experimentalDynamic.js | 2 +- .../lightningWebSecurityTransforms.js | 2 +- .../compilerConfig/fixtures/test/test.css | 2 +- .../compilerConfig/fixtures/test/test.js | 2 +- .../fixtures/javascript/javascript.js | 4 +- .../fixtures/typescript/typescript.ts | 4 +- .../fixtures/implicit-css/implicit-css.js | 2 +- .../fixtures/implicit-html/implicit-html.js | 2 +- .../inherited-templates/lwc.config.json | 6 +- .../inherited-templates/src/javascript.js | 2 +- .../src/modules/x/ext-js/ext-js.js | 4 +- .../src/modules/x/ext-ts/ext-ts.ts | 4 +- .../inherited-templates/src/typescript.ts | 2 +- .../fixtures/lwc-config-json/index.js | 2 +- .../fixtures/lwc-config-json/lwc.config.json | 8 +- .../fixtures/lwc-config-json/src/index.js | 4 +- .../src/modules/root/cmp/cmp.js | 6 +- .../fixtures/lwc-modules/lwc-modules.js | 6 +- .../fixtures/missing-css/missing-css.js | 2 +- .../resolver/fixtures/namespace/index.js | 2 +- .../fixtures/namespace/lwc.config.json | 4 +- .../resolver/fixtures/namespace/src/index.js | 2 +- .../fixtures/namespace/src/invalid.js | 2 +- .../namespace/src/modules/x/bar/bar.js | 5 +- .../namespace/src/modules/x/baz/baz.js | 5 +- .../namespace/src/modules/x/foo/foo.js | 5 +- .../namespace/src/modules/x/quux/quux.js | 5 +- .../namespace/src/modules/x/zoo/zoo.js | 5 +- .../fixtures/non-component-class/src/main.js | 6 +- .../non-component-class/src/x/app/app.js | 11 +- .../fixtures/scoped-styles/src/main.js | 6 +- .../fixtures/scoped-styles/src/x/app/app.js | 4 +- .../scoped-styles/src/x/app/app.scoped.css | 2 +- .../fixtures/third-party-import/src/main.js | 6 +- .../third-party-import/src/x/app/app.js | 8 +- .../fixtures/unknown-module/unknown-module.js | 2 +- .../__tests__/warnings/fixtures/test/test.js | 2 +- .../config.json | 4 +- .../config.json | 2 +- .../config.json | 2 +- .../config.json | 4 +- .../config.json | 2 +- .../config.json | 2 +- .../fixtures/import-in-scoped/config.json | 2 +- .../config.json | 6 +- .../fixtures/light-dom-scoped/config.json | 2 +- .../nester-vars-compounded/config.json | 5 +- .../var-function-multiple/config.json | 6 +- .../fixtures/var-function-nested/config.json | 6 +- .../fixtures/var-function/config.json | 6 +- .../fixtures/var-host-combined/config.json | 6 +- .../config.json | 6 +- .../var-nested-with-resolver/config.json | 6 +- .../no-preserve-comments/config.json | 2 +- .../preserve-comments/config.json | 2 +- .../attribute-href-expression/config.json | 2 +- .../attribute-href-no-hash/config.json | 2 +- .../config.json | 2 +- .../config.json | 2 +- .../attribute-href-with-id/config.json | 2 +- .../attribute-href/config.json | 2 +- .../attribute-href-expression/config.json | 2 +- .../attribute-href-no-hash/config.json | 2 +- .../config.json | 2 +- .../config.json | 2 +- .../attribute-href-with-id/config.json | 2 +- .../attribute-href/config.json | 2 +- .../non-static-optimized/config.json | 2 +- .../static-optimized/config.json | 2 +- .../not-optimized/config.json | 2 +- .../static-optimized/optimized/config.json | 2 +- .../fixtures/attributes/style/config.json | 4 +- .../preserve-html-comments-option/config.json | 4 +- .../dynamic-components/config.json | 2 +- .../dynamic-component/config.json | 2 +- .../dynamic-component/config.json | 2 +- .../directive-inner-html/invalid/config.json | 2 +- .../dynamic-components/inline/config.json | 2 +- .../preserve-comments-enabled/config.json | 2 +- .../dynamic-components/config.json | 2 +- .../dynamic-components/config.json | 2 +- .../invalid/invalid-config/config.json | 2 +- .../elements/config.json | 2 +- .../template-root/config.json | 2 +- .../invalid-is-directive-value/config.json | 2 +- .../config.json | 2 +- .../invalid/missing-is-directive/config.json | 2 +- .../valid/attributes/config.json | 2 +- .../valid/basic/config.json | 2 +- .../valid/children/config.json | 2 +- .../valid/nested/config.json | 2 +- .../valid/properties/config.json | 2 +- .../valid/siblings/config.json | 2 +- .../multiple/non-static-optimized/config.json | 2 +- .../multiple/static-optimized/config.json | 2 +- .../fixtures/events/non-static/config.json | 2 +- .../fixtures/events/static/config.json | 2 +- .../compatibility/README.md | 2 +- .../config.json | 2 +- .../config.json | 2 +- .../template-expression/config.json | 2 +- .../invalid/arrow-function-async/config.json | 2 +- .../arrow-function-block-body/config.json | 2 +- .../assignment-outside-arrow/config.json | 2 +- .../invalid/await/config.json | 2 +- .../invalid/bigint-literal/config.json | 2 +- .../invalid/class-expr/config.json | 2 +- .../invalid/comma-operator/config.json | 2 +- .../invalid/comments/config.json | 2 +- .../invalid/delete-operator/config.json | 2 +- .../invalid/function-expr/config.json | 2 +- .../invalid/import-meta/config.json | 2 +- .../invalid/import/config.json | 2 +- .../invalid/new-operator/config.json | 2 +- .../invalid/regexp-literal/config.json | 2 +- .../invalid/super/config.json | 2 +- .../invalid/this/config.json | 2 +- .../invalid/throw/config.json | 2 +- .../attribute/config.json | 2 +- .../text-content/config.json | 2 +- .../invalid/yield/config.json | 2 +- .../valid/array-expr/config.json | 2 +- .../valid/arrowfn-scoped-vars/config.json | 2 +- .../valid/assignment-inside-arrow/config.json | 2 +- .../valid/binary-expr-arithmetic/config.json | 2 +- .../valid/binary-expr-bit-shift/config.json | 2 +- .../valid/binary-expr-bitwise/config.json | 2 +- .../valid/binary-expr-logical/config.json | 2 +- .../valid/binary-expr-relational/config.json | 2 +- .../valid/boolean-literal/config.json | 2 +- .../valid/call-expr/config.json | 2 +- .../valid/computed-property/config.json | 2 +- .../valid/identifier/config.json | 2 +- .../valid/iterator/config.json | 2 +- .../valid/member-expr/config.json | 2 +- .../valid/null-literal/config.json | 2 +- .../valid/numeric-literal-binary/config.json | 2 +- .../valid/numeric-literal-float/config.json | 2 +- .../valid/numeric-literal-hex/config.json | 2 +- .../valid/numeric-literal-int/config.json | 2 +- .../valid/numeric-literal-octal/config.json | 2 +- .../valid/object-expr/config.json | 2 +- .../valid/optional-call-expr/config.json | 2 +- .../valid/string-literal/config.json | 2 +- .../valid/template-literal-tagged/config.json | 2 +- .../valid/template-literal/config.json | 2 +- .../valid/ternary/config.json | 2 +- .../valid/text-node-adjacency/config.json | 2 +- .../valid/typeof-operator/config.json | 2 +- .../valid/unary-expr-bitwise/config.json | 2 +- .../valid/unary-expr-logical/config.json | 2 +- .../valid/update-inside-arrow/config.json | 2 +- .../valid/void-operator/config.json | 2 +- .../attribute-quoted-legacy/config.json | 2 +- .../expression/attribute-quoted/config.json | 2 +- .../fixtures/expression/computed/config.json | 2 +- .../non-optimized/config.json | 2 +- .../optimized/config.json | 2 +- .../non-static-optimized/dynamic/config.json | 2 +- .../non-static-optimized/static/config.json | 2 +- .../error-dynamic-components/config.json | 2 +- .../config.json | 2 +- .../config.json | 2 +- .../config.json | 2 +- .../config/multiple-tagname/config.json | 6 +- .../config/tag-with-namespace/config.json | 12 +- .../config/tagname-no-attributes/config.json | 2 +- .../tagname-with-attributes/config.json | 6 +- .../href-with-expression-value/config.json | 10 +- .../svg/href-with-literal-value/config.json | 10 +- .../xlink-with-expression-value/config.json | 10 +- .../svg/xlink-with-literal-value/config.json | 10 +- .../static-optimized/light/config.json | 2 +- .../native-shadow/config.json | 4 +- .../synthetic-shadow/config.json | 4 +- .../static-unoptimized/light/config.json | 2 +- .../native-shadow/config.json | 4 +- .../synthetic-shadow/config.json | 4 +- .../config.json | 2 +- .../invalid-on-non-slot-content/config.json | 4 +- .../comment-direct-child/config.json | 2 +- .../invalid-on-non-slot-content/config.json | 4 +- .../invalid/if-block/config.json | 2 +- .../invalid/if-true/config.json | 2 +- .../dynamic-components/child/config.json | 2 +- .../dynamic-components/parent/config.json | 2 +- .../dynamic-components/content/config.json | 2 +- .../dynamic-components/definition/config.json | 2 +- .../light-dom/content/config.json | 2 +- .../light-dom/definition/config.json | 2 +- .../dynamic-components/usage/config.json | 2 +- .../non-optimized/config.json | 2 +- .../attr-name-escape/optimized/config.json | 2 +- .../boolean-true/config.json | 2 +- .../expression-value/config.json | 2 +- .../config.json | 2 +- .../literal-value/config.json | 2 +- .../static-optimized/boolean-true/config.json | 2 +- .../expression-value/config.json | 2 +- .../config.json | 2 +- .../literal-value/config.json | 2 +- packages/@lwc/types/README.md | 6 +- 748 files changed, 1779 insertions(+), 1839 deletions(-) diff --git a/.prettierignore b/.prettierignore index b291cdba59..fdc4079a5d 100644 --- a/.prettierignore +++ b/.prettierignore @@ -2,10 +2,6 @@ dist/ lib/ coverage/ -fixtures/ -public/ -types/ - .rollup.cache __benchmarks_results__/ @@ -16,3 +12,17 @@ __benchmarks_results__/ # HTML files are used by tests and may include deliberately invalid/ugly HTML # e.g. without self-closing tag, extra leading/trailing whitespace, etc. *.html + +# Auto-generated fixture outputs +**/fixtures/**/expected.* +**/fixtures/**/error.* +packages/@lwc/template-compiler/src/__tests__/fixtures/**/ast.json +packages/@lwc/template-compiler/src/__tests__/fixtures/**/metadata.json + +# Fixture inputs potentially containing deliberate errors +packages/@lwc/style-compiler/src/__tests__/fixtures/**/actual.css +packages/@lwc/babel-plugin-component/src/__tests__/fixtures/**/actual.js + +# TODO: Why do these have JS in them? +packages/@lwc/module-resolver/src/__tests__/fixtures/no-config/modules/foo/bar/bar.css +packages/@lwc/module-resolver/src/__tests__/fixtures/module-entries/modules/ns/cssEntry/cssEntry.css diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/@api-setter-on-one-class-member-should-not-conflict-with-@api-getter-on-another/actual.js b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/@api-setter-on-one-class-member-should-not-conflict-with-@api-getter-on-another/actual.js index 6c72082af9..32a50414c3 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/@api-setter-on-one-class-member-should-not-conflict-with-@api-getter-on-another/actual.js +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/api-decorator/@api-setter-on-one-class-member-should-not-conflict-with-@api-getter-on-another/actual.js @@ -1,14 +1,14 @@ -import { api, LightningElement } from "lwc"; +import { api, LightningElement } from 'lwc'; export default class Test extends LightningElement { - @api - set first(value) {} - get first() {} + @api + set first(value) {} + get first() {} - @api - get second() { - return this.s; - } - set second(value) { - this.s = value; - } + @api + get second() { + return this.s; + } + set second(value) { + this.s = value; + } } diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/camel-to-kebab-component-name/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/camel-to-kebab-component-name/config.json index a85044f6e4..720d114ab1 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/camel-to-kebab-component-name/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/component/camel-to-kebab-component-name/config.json @@ -1,4 +1,4 @@ { "namespace": "x", "name": "camelCase" -} \ No newline at end of file +} diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-for-anonymous-class-that-extends-non-lightning-element/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-for-anonymous-class-that-extends-non-lightning-element/config.json index cdaf70a6d3..31e515d8c1 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-for-anonymous-class-that-extends-non-lightning-element/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-for-anonymous-class-that-extends-non-lightning-element/config.json @@ -1,3 +1,3 @@ { - "apiVersion": 59 + "apiVersion": 59 } diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-for-named-class-that-extends-non-lightning-element/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-for-named-class-that-extends-non-lightning-element/config.json index cdaf70a6d3..31e515d8c1 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-for-named-class-that-extends-non-lightning-element/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-for-named-class-that-extends-non-lightning-element/config.json @@ -1,3 +1,3 @@ { - "apiVersion": 59 + "apiVersion": 59 } diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-if-anonymous-class-has-no-superclass/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-if-anonymous-class-has-no-superclass/config.json index cdaf70a6d3..31e515d8c1 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-if-anonymous-class-has-no-superclass/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-if-anonymous-class-has-no-superclass/config.json @@ -1,3 +1,3 @@ { - "apiVersion": 59 + "apiVersion": 59 } diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-if-named-class-has-no-superclass/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-if-named-class-has-no-superclass/config.json index cdaf70a6d3..31e515d8c1 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-if-named-class-has-no-superclass/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/decorators/unnecessary-register-decorators/v59/should-register-decorators-if-named-class-has-no-superclass/config.json @@ -1,3 +1,3 @@ { - "apiVersion": 59 + "apiVersion": 59 } diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/check-validation-for-strict/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/check-validation-for-strict/config.json index 8a8bc94d38..42ff847391 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/check-validation-for-strict/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/check-validation-for-strict/config.json @@ -3,4 +3,4 @@ "loader": null, "strictSpecifier": true } -} \ No newline at end of file +} diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/test-custom-loader-multiple-imports/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/test-custom-loader-multiple-imports/config.json index 56cb1497d5..248807c976 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/test-custom-loader-multiple-imports/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/test-custom-loader-multiple-imports/config.json @@ -3,4 +3,4 @@ "loader": "@custom/loader", "strictSpecifier": true } -} \ No newline at end of file +} diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/test-custom-loader/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/test-custom-loader/config.json index 56cb1497d5..248807c976 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/test-custom-loader/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/test-custom-loader/config.json @@ -3,4 +3,4 @@ "loader": "@custom/loader", "strictSpecifier": true } -} \ No newline at end of file +} diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/unchanged-dynamic-import-in-strict-mode/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/unchanged-dynamic-import-in-strict-mode/config.json index 8a8bc94d38..42ff847391 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/unchanged-dynamic-import-in-strict-mode/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/dynamic-imports/unchanged-dynamic-import-in-strict-mode/config.json @@ -3,4 +3,4 @@ "loader": null, "strictSpecifier": true } -} \ No newline at end of file +} diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/api-decorator/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/api-decorator/config.json index 8e08c9349e..88d3395318 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/api-decorator/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/api-decorator/config.json @@ -1,3 +1,3 @@ { "isExplicitImport": false -} \ No newline at end of file +} diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/mixin/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/mixin/config.json index 8e08c9349e..88d3395318 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/mixin/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/mixin/config.json @@ -1,3 +1,3 @@ { "isExplicitImport": false -} \ No newline at end of file +} diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-const/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-const/config.json index 8e08c9349e..88d3395318 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-const/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-const/config.json @@ -1,3 +1,3 @@ { "isExplicitImport": false -} \ No newline at end of file +} diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-function/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-function/config.json index 8e08c9349e..88d3395318 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-function/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/noop-implicit-export-function/config.json @@ -1,3 +1,3 @@ { "isExplicitImport": false -} \ No newline at end of file +} diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/test-cmp-anonymous-class/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/test-cmp-anonymous-class/config.json index 8e08c9349e..88d3395318 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/test-cmp-anonymous-class/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/test-cmp-anonymous-class/config.json @@ -1,3 +1,3 @@ { "isExplicitImport": false -} \ No newline at end of file +} diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/test-cmp-named-class-with-decorators/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/test-cmp-named-class-with-decorators/config.json index 8e08c9349e..88d3395318 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/test-cmp-named-class-with-decorators/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/test-cmp-named-class-with-decorators/config.json @@ -1,3 +1,3 @@ { "isExplicitImport": false -} \ No newline at end of file +} diff --git a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/wire/config.json b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/wire/config.json index 8e08c9349e..88d3395318 100644 --- a/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/wire/config.json +++ b/packages/@lwc/babel-plugin-component/src/__tests__/fixtures/implicit-explicit/wire/config.json @@ -1,3 +1,3 @@ { "isExplicitImport": false -} \ No newline at end of file +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/empty/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/empty/index.js index f16d1a8775..4bd94488e9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/empty/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/empty/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-comments-text'; export { default } from 'x/comments-text'; -export * from 'x/comments-text'; \ No newline at end of file +export * from 'x/comments-text'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/empty/modules/x/comments-text/comments-text.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/empty/modules/x/comments-text/comments-text.js index 6f77353733..44bf0aff54 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/empty/modules/x/comments-text/comments-text.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/empty/modules/x/comments-text/comments-text.js @@ -1,7 +1,7 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - foo = '' - bar = undefined - baz= null + foo = ''; + bar = undefined; + baz = null; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty-dynamic/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty-dynamic/index.js index f16d1a8775..4bd94488e9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty-dynamic/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty-dynamic/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-comments-text'; export { default } from 'x/comments-text'; -export * from 'x/comments-text'; \ No newline at end of file +export * from 'x/comments-text'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty-dynamic/modules/x/comments-text/comments-text.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty-dynamic/modules/x/comments-text/comments-text.js index 89aa590ca7..869d2ebfa5 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty-dynamic/modules/x/comments-text/comments-text.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty-dynamic/modules/x/comments-text/comments-text.js @@ -1,7 +1,7 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - foo = 'haha' - bar = 0 - baz = true + foo = 'haha'; + bar = 0; + baz = true; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty/index.js index f16d1a8775..4bd94488e9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-comments-text'; export { default } from 'x/comments-text'; -export * from 'x/comments-text'; \ No newline at end of file +export * from 'x/comments-text'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty/modules/x/comments-text/comments-text.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty/modules/x/comments-text/comments-text.js index 0277f1c990..44bf0aff54 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty/modules/x/comments-text/comments-text.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/nonempty/modules/x/comments-text/comments-text.js @@ -1,7 +1,7 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - foo = '' - bar = undefined - baz = null + foo = ''; + bar = undefined; + baz = null; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty1/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty1/index.js index f16d1a8775..4bd94488e9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty1/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty1/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-comments-text'; export { default } from 'x/comments-text'; -export * from 'x/comments-text'; \ No newline at end of file +export * from 'x/comments-text'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty1/modules/x/comments-text/comments-text.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty1/modules/x/comments-text/comments-text.js index 7035de4b3e..f4cfc750df 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty1/modules/x/comments-text/comments-text.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty1/modules/x/comments-text/comments-text.js @@ -1,6 +1,6 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - foo = '' - bar = '' + foo = ''; + bar = ''; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty2/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty2/index.js index f16d1a8775..4bd94488e9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty2/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty2/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-comments-text'; export { default } from 'x/comments-text'; -export * from 'x/comments-text'; \ No newline at end of file +export * from 'x/comments-text'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty2/modules/x/comments-text/comments-text.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty2/modules/x/comments-text/comments-text.js index 7035de4b3e..f4cfc750df 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty2/modules/x/comments-text/comments-text.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty2/modules/x/comments-text/comments-text.js @@ -1,6 +1,6 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - foo = '' - bar = '' + foo = ''; + bar = ''; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty3/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty3/index.js index f16d1a8775..4bd94488e9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty3/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty3/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-comments-text'; export { default } from 'x/comments-text'; -export * from 'x/comments-text'; \ No newline at end of file +export * from 'x/comments-text'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty3/modules/x/comments-text/comments-text.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty3/modules/x/comments-text/comments-text.js index 7035de4b3e..f4cfc750df 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty3/modules/x/comments-text/comments-text.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/empty3/modules/x/comments-text/comments-text.js @@ -1,6 +1,6 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - foo = '' - bar = '' + foo = ''; + bar = ''; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty1/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty1/index.js index f16d1a8775..4bd94488e9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty1/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty1/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-comments-text'; export { default } from 'x/comments-text'; -export * from 'x/comments-text'; \ No newline at end of file +export * from 'x/comments-text'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty1/modules/x/comments-text/comments-text.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty1/modules/x/comments-text/comments-text.js index 6bd4656817..314cb982eb 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty1/modules/x/comments-text/comments-text.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty1/modules/x/comments-text/comments-text.js @@ -1,5 +1,5 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - foo = '' + foo = ''; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty2/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty2/index.js index f16d1a8775..4bd94488e9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty2/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty2/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-comments-text'; export { default } from 'x/comments-text'; -export * from 'x/comments-text'; \ No newline at end of file +export * from 'x/comments-text'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty2/modules/x/comments-text/comments-text.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty2/modules/x/comments-text/comments-text.js index 1cdd2ce6eb..cc5c678a82 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty2/modules/x/comments-text/comments-text.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty2/modules/x/comments-text/comments-text.js @@ -1,6 +1,6 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - foo = '' - bar = 'bar' + foo = ''; + bar = 'bar'; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty3/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty3/index.js index f16d1a8775..4bd94488e9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty3/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty3/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-comments-text'; export { default } from 'x/comments-text'; -export * from 'x/comments-text'; \ No newline at end of file +export * from 'x/comments-text'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty3/modules/x/comments-text/comments-text.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty3/modules/x/comments-text/comments-text.js index 5c9ae5f1d4..8bbbb5745c 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty3/modules/x/comments-text/comments-text.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/nonempty3/modules/x/comments-text/comments-text.js @@ -1,6 +1,6 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - foo = '' - baz = 'baz' + foo = ''; + baz = 'baz'; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments/index.js index f16d1a8775..4bd94488e9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-comments-text'; export { default } from 'x/comments-text'; -export * from 'x/comments-text'; \ No newline at end of file +export * from 'x/comments-text'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments/modules/x/comments-text/comments-text.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments/modules/x/comments-text/comments-text.js index 7035de4b3e..f4cfc750df 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments/modules/x/comments-text/comments-text.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments/modules/x/comments-text/comments-text.js @@ -1,6 +1,6 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - foo = '' - bar = '' + foo = ''; + bar = ''; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments2/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments2/index.js index f16d1a8775..4bd94488e9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments2/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments2/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-comments-text'; export { default } from 'x/comments-text'; -export * from 'x/comments-text'; \ No newline at end of file +export * from 'x/comments-text'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments2/modules/x/comments-text/comments-text.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments2/modules/x/comments-text/comments-text.js index 7035de4b3e..f4cfc750df 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments2/modules/x/comments-text/comments-text.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments2/modules/x/comments-text/comments-text.js @@ -1,6 +1,6 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - foo = '' - bar = '' + foo = ''; + bar = ''; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments3/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments3/index.js index f16d1a8775..4bd94488e9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments3/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments3/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-comments-text'; export { default } from 'x/comments-text'; -export * from 'x/comments-text'; \ No newline at end of file +export * from 'x/comments-text'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments3/modules/x/comments-text/comments-text.js b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments3/modules/x/comments-text/comments-text.js index 46acfb5f2e..ebebc7b878 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments3/modules/x/comments-text/comments-text.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/adjacent-text-nodes/with-comments/preserve-comments3/modules/x/comments-text/comments-text.js @@ -1,6 +1,6 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - foo = 'foo' - bar = 'bar' + foo = 'foo'; + bar = 'bar'; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-and-class-modify/modules/x/cmp/cmp.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-and-class-modify/modules/x/cmp/cmp.js index 48a2c5cd79..16ba349941 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-and-class-modify/modules/x/cmp/cmp.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-and-class-modify/modules/x/cmp/cmp.js @@ -1,18 +1,18 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - connectedCallback() { - // Modify this component's class and attributes at runtime - // We expect a data-lwc-host-mutated attr to be added with the mutated attribute names in unique sorted order - this.setAttribute('data-foo', 'bar') - this.classList.add('yolo') - this.classList.add('woot') - this.setAttribute('aria-label', 'haha') + connectedCallback() { + // Modify this component's class and attributes at runtime + // We expect a data-lwc-host-mutated attr to be added with the mutated attribute names in unique sorted order + this.setAttribute('data-foo', 'bar'); + this.classList.add('yolo'); + this.classList.add('woot'); + this.setAttribute('aria-label', 'haha'); - this.setAttribute('FOO', ''); - this.removeAttribute('foo'); + this.setAttribute('FOO', ''); + this.removeAttribute('foo'); - this.setAttribute('bar', ''); - this.removeAttribute('BAR'); - } + this.setAttribute('bar', ''); + this.removeAttribute('BAR'); + } } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria-modify/modules/x/cmp/cmp.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria-modify/modules/x/cmp/cmp.js index 6a7622bf5d..c2ffd564c9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria-modify/modules/x/cmp/cmp.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria-modify/modules/x/cmp/cmp.js @@ -1,13 +1,13 @@ import { LightningElement } from 'lwc'; export default class extends LightningElement { - connectedCallback() { - // Modify this component's aria properties at runtime, which should be reflected to attributes + connectedCallback() { + // Modify this component's aria properties at runtime, which should be reflected to attributes - // Standard ARIA property - this.ariaBusy = 'true' + // Standard ARIA property + this.ariaBusy = 'true'; - // Non-standard LWC-specific legacy ARIA property - this.ariaActiveDescendant = 'foo' - } + // Non-standard LWC-specific legacy ARIA property + this.ariaActiveDescendant = 'foo'; + } } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria/dynamic/modules/x/child/child.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria/dynamic/modules/x/child/child.js index d80979c828..a7d8d2917b 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria/dynamic/modules/x/child/child.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria/dynamic/modules/x/child/child.js @@ -1,5 +1,5 @@ import { LightningElement, api } from 'lwc'; export default class extends LightningElement { - @api dynamic + @api dynamic; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria/dynamic/modules/x/grandchild/grandchild.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria/dynamic/modules/x/grandchild/grandchild.js index bbd55130f4..ca8dce94e0 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria/dynamic/modules/x/grandchild/grandchild.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria/dynamic/modules/x/grandchild/grandchild.js @@ -1,4 +1,3 @@ import { LightningElement } from 'lwc'; -export default class extends LightningElement { -} +export default class extends LightningElement {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria/dynamic/modules/x/parent/parent.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria/dynamic/modules/x/parent/parent.js index 2078bd6bfd..bd5df5d27d 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria/dynamic/modules/x/parent/parent.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-aria/dynamic/modules/x/parent/parent.js @@ -10,10 +10,10 @@ export default class extends LightningElement { isNaN = NaN; isInfinity = Infinity; isNegInfinity = -Infinity; - isEmptyString = ""; - isArray = ["foo", "bar"]; + isEmptyString = ''; + isArray = ['foo', 'bar']; isObject = { - foo: "bar", - baz: "quux" + foo: 'bar', + baz: 'quux', }; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-boolean/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-boolean/index.js index e1bbf136a8..b932b80e30 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-boolean/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-boolean/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-attribute-boolean'; export { default } from 'x/attribute-boolean'; -export * from 'x/attribute-boolean'; \ No newline at end of file +export * from 'x/attribute-boolean'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-boolean/modules/x/attribute-boolean/attribute-boolean.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-boolean/modules/x/attribute-boolean/attribute-boolean.js index f3236c1b2d..9d3ae8082c 100755 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-boolean/modules/x/attribute-boolean/attribute-boolean.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-boolean/modules/x/attribute-boolean/attribute-boolean.js @@ -1,3 +1,3 @@ import { LightningElement } from 'lwc'; -export default class AttributeBoolean extends LightningElement {} \ No newline at end of file +export default class AttributeBoolean extends LightningElement {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/array/modules/x/parent/parent.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/array/modules/x/parent/parent.js index 72c0e075d0..501016048a 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/array/modules/x/parent/parent.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/array/modules/x/parent/parent.js @@ -2,8 +2,10 @@ import { LightningElement } from 'lwc'; export default class CustomButton extends LightningElement { get computedClassNames() { - return [{ - button__icon: true - }] + return [ + { + button__icon: true, + }, + ]; } - } \ No newline at end of file +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/child/modules/x/child/child.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/child/modules/x/child/child.js index 686f791240..ca8dce94e0 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/child/modules/x/child/child.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/child/modules/x/child/child.js @@ -1,5 +1,3 @@ import { LightningElement } from 'lwc'; -export default class extends LightningElement { - -} \ No newline at end of file +export default class extends LightningElement {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/child/modules/x/parent/parent.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/child/modules/x/parent/parent.js index be898faba8..a00ff7e3b9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/child/modules/x/parent/parent.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/child/modules/x/parent/parent.js @@ -2,8 +2,8 @@ import { LightningElement } from 'lwc'; export default class CustomButton extends LightningElement { get computedClassNames() { - return { - button__icon: true - } + return { + button__icon: true, + }; } - } \ No newline at end of file +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/component/modules/x/child/child.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/component/modules/x/child/child.js index 686f791240..ca8dce94e0 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/component/modules/x/child/child.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/component/modules/x/child/child.js @@ -1,5 +1,3 @@ import { LightningElement } from 'lwc'; -export default class extends LightningElement { - -} \ No newline at end of file +export default class extends LightningElement {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/component/modules/x/parent/parent.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/component/modules/x/parent/parent.js index de6bae6ade..fd36bf27e2 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/component/modules/x/parent/parent.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/component/modules/x/parent/parent.js @@ -2,10 +2,10 @@ import { LightningElement } from 'lwc'; import xChild from 'x/child'; export default class CustomButton extends LightningElement { - ctor = xChild; + ctor = xChild; get computedClassNames() { - return { - button__icon: true - } + return { + button__icon: true, + }; } - } \ No newline at end of file +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/dynamic/modules/x/child/child.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/dynamic/modules/x/child/child.js index d80979c828..a7d8d2917b 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/dynamic/modules/x/child/child.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/dynamic/modules/x/child/child.js @@ -1,5 +1,5 @@ import { LightningElement, api } from 'lwc'; export default class extends LightningElement { - @api dynamic + @api dynamic; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/dynamic/modules/x/grandchild/grandchild.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/dynamic/modules/x/grandchild/grandchild.js index bbd55130f4..ca8dce94e0 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/dynamic/modules/x/grandchild/grandchild.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/dynamic/modules/x/grandchild/grandchild.js @@ -1,4 +1,3 @@ import { LightningElement } from 'lwc'; -export default class extends LightningElement { -} +export default class extends LightningElement {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/dynamic/modules/x/parent/parent.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/dynamic/modules/x/parent/parent.js index 226e5c0f21..879d633a22 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/dynamic/modules/x/parent/parent.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/dynamic/modules/x/parent/parent.js @@ -10,15 +10,15 @@ export default class extends LightningElement { isNaN = NaN; isInfinity = Infinity; isNegInfinity = -Infinity; - isEmptyString = ""; - isArray = ["foo", "bar"]; + isEmptyString = ''; + isArray = ['foo', 'bar']; isObject = { - foo: "bar", - baz: "quux" + foo: 'bar', + baz: 'quux', }; - isTwoClasses = 'foo bar' - isTwoClassesWithSpaces = ' foo bar ' - isUppercase = 'FOO BaR' - isTabs = '\tfoo\t' - isNewlines = '\nfoo\n' + isTwoClasses = 'foo bar'; + isTwoClassesWithSpaces = ' foo bar '; + isUppercase = 'FOO BaR'; + isTabs = '\tfoo\t'; + isNewlines = '\nfoo\n'; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/object/modules/x/parent/parent.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/object/modules/x/parent/parent.js index be898faba8..a00ff7e3b9 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/object/modules/x/parent/parent.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/unstyled/object/modules/x/parent/parent.js @@ -2,8 +2,8 @@ import { LightningElement } from 'lwc'; export default class CustomButton extends LightningElement { get computedClassNames() { - return { - button__icon: true - } + return { + button__icon: true, + }; } - } \ No newline at end of file +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/modules/x/child/child.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/modules/x/child/child.js index d80979c828..a7d8d2917b 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/modules/x/child/child.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/modules/x/child/child.js @@ -1,5 +1,5 @@ import { LightningElement, api } from 'lwc'; export default class extends LightningElement { - @api dynamic + @api dynamic; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/modules/x/grandchild/grandchild.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/modules/x/grandchild/grandchild.js index bbd55130f4..ca8dce94e0 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/modules/x/grandchild/grandchild.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/modules/x/grandchild/grandchild.js @@ -1,4 +1,3 @@ import { LightningElement } from 'lwc'; -export default class extends LightningElement { -} +export default class extends LightningElement {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/modules/x/parent/parent.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/modules/x/parent/parent.js index 226e5c0f21..879d633a22 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/modules/x/parent/parent.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-child/dynamic/modules/x/parent/parent.js @@ -10,15 +10,15 @@ export default class extends LightningElement { isNaN = NaN; isInfinity = Infinity; isNegInfinity = -Infinity; - isEmptyString = ""; - isArray = ["foo", "bar"]; + isEmptyString = ''; + isArray = ['foo', 'bar']; isObject = { - foo: "bar", - baz: "quux" + foo: 'bar', + baz: 'quux', }; - isTwoClasses = 'foo bar' - isTwoClassesWithSpaces = ' foo bar ' - isUppercase = 'FOO BaR' - isTabs = '\tfoo\t' - isNewlines = '\nfoo\n' + isTwoClasses = 'foo bar'; + isTwoClassesWithSpaces = ' foo bar '; + isUppercase = 'FOO BaR'; + isTabs = '\tfoo\t'; + isNewlines = '\nfoo\n'; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-parent/dynamic/modules/x/child/child.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-parent/dynamic/modules/x/child/child.js index d80979c828..a7d8d2917b 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-parent/dynamic/modules/x/child/child.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-parent/dynamic/modules/x/child/child.js @@ -1,5 +1,5 @@ import { LightningElement, api } from 'lwc'; export default class extends LightningElement { - @api dynamic + @api dynamic; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-parent/dynamic/modules/x/grandchild/grandchild.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-parent/dynamic/modules/x/grandchild/grandchild.js index bbd55130f4..ca8dce94e0 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-parent/dynamic/modules/x/grandchild/grandchild.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-parent/dynamic/modules/x/grandchild/grandchild.js @@ -1,4 +1,3 @@ import { LightningElement } from 'lwc'; -export default class extends LightningElement { -} +export default class extends LightningElement {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-parent/dynamic/modules/x/parent/parent.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-parent/dynamic/modules/x/parent/parent.js index 226e5c0f21..879d633a22 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-parent/dynamic/modules/x/parent/parent.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles-only-in-parent/dynamic/modules/x/parent/parent.js @@ -10,15 +10,15 @@ export default class extends LightningElement { isNaN = NaN; isInfinity = Infinity; isNegInfinity = -Infinity; - isEmptyString = ""; - isArray = ["foo", "bar"]; + isEmptyString = ''; + isArray = ['foo', 'bar']; isObject = { - foo: "bar", - baz: "quux" + foo: 'bar', + baz: 'quux', }; - isTwoClasses = 'foo bar' - isTwoClassesWithSpaces = ' foo bar ' - isUppercase = 'FOO BaR' - isTabs = '\tfoo\t' - isNewlines = '\nfoo\n' + isTwoClasses = 'foo bar'; + isTwoClassesWithSpaces = ' foo bar '; + isUppercase = 'FOO BaR'; + isTabs = '\tfoo\t'; + isNewlines = '\nfoo\n'; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles/dynamic/modules/x/child/child.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles/dynamic/modules/x/child/child.js index d80979c828..a7d8d2917b 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles/dynamic/modules/x/child/child.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles/dynamic/modules/x/child/child.js @@ -1,5 +1,5 @@ import { LightningElement, api } from 'lwc'; export default class extends LightningElement { - @api dynamic + @api dynamic; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles/dynamic/modules/x/grandchild/grandchild.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles/dynamic/modules/x/grandchild/grandchild.js index bbd55130f4..ca8dce94e0 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles/dynamic/modules/x/grandchild/grandchild.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles/dynamic/modules/x/grandchild/grandchild.js @@ -1,4 +1,3 @@ import { LightningElement } from 'lwc'; -export default class extends LightningElement { -} +export default class extends LightningElement {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles/dynamic/modules/x/parent/parent.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles/dynamic/modules/x/parent/parent.js index 226e5c0f21..879d633a22 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles/dynamic/modules/x/parent/parent.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-class/with-scoped-styles/dynamic/modules/x/parent/parent.js @@ -10,15 +10,15 @@ export default class extends LightningElement { isNaN = NaN; isInfinity = Infinity; isNegInfinity = -Infinity; - isEmptyString = ""; - isArray = ["foo", "bar"]; + isEmptyString = ''; + isArray = ['foo', 'bar']; isObject = { - foo: "bar", - baz: "quux" + foo: 'bar', + baz: 'quux', }; - isTwoClasses = 'foo bar' - isTwoClassesWithSpaces = ' foo bar ' - isUppercase = 'FOO BaR' - isTabs = '\tfoo\t' - isNewlines = '\nfoo\n' + isTwoClasses = 'foo bar'; + isTwoClassesWithSpaces = ' foo bar '; + isUppercase = 'FOO BaR'; + isTabs = '\tfoo\t'; + isNewlines = '\nfoo\n'; } diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-aria/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-aria/index.js index 30f0f1dad1..4e20b5a665 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-aria/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-aria/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-attribute-component-aria'; export { default } from 'x/attribute-component-aria'; -export * from 'x/attribute-component-aria'; \ No newline at end of file +export * from 'x/attribute-component-aria'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-aria/modules/x/attribute-component-aria/attribute-component-aria.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-aria/modules/x/attribute-component-aria/attribute-component-aria.js index 5570bd2470..a1913b6261 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-aria/modules/x/attribute-component-aria/attribute-component-aria.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-aria/modules/x/attribute-component-aria/attribute-component-aria.js @@ -1,3 +1,3 @@ import { LightningElement } from 'lwc'; -export default class AttributeComponentAria extends LightningElement {} \ No newline at end of file +export default class AttributeComponentAria extends LightningElement {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-aria/modules/x/child/child.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-aria/modules/x/child/child.js index 5aa1a6d052..3f0d7e7e52 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-aria/modules/x/child/child.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-aria/modules/x/child/child.js @@ -1,3 +1,3 @@ import { LightningElement } from 'lwc'; -export default class Child extends LightningElement {} \ No newline at end of file +export default class Child extends LightningElement {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-global-html/index.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-global-html/index.js index 35f32298fe..8f6d4757bd 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-global-html/index.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-global-html/index.js @@ -1,3 +1,3 @@ export const tagName = 'x-attribute-component-global-html'; export { default } from 'x/attribute-component-global-html'; -export * from 'x/attribute-component-global-html'; \ No newline at end of file +export * from 'x/attribute-component-global-html'; diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-global-html/modules/x/attribute-component-global-html/attribute-component-global-html.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-global-html/modules/x/attribute-component-global-html/attribute-component-global-html.js index 1f415b7e37..a2478a519b 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-global-html/modules/x/attribute-component-global-html/attribute-component-global-html.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-global-html/modules/x/attribute-component-global-html/attribute-component-global-html.js @@ -1,3 +1,3 @@ import { LightningElement } from 'lwc'; -export default class AttributeComponentGlobalHtml extends LightningElement {} \ No newline at end of file +export default class AttributeComponentGlobalHtml extends LightningElement {} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-global-html/modules/x/child/child.js b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-global-html/modules/x/child/child.js index 5ed72dfd8b..7a9dd78518 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-global-html/modules/x/child/child.js +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-component-global-html/modules/x/child/child.js @@ -3,4 +3,4 @@ import { LightningElement, api } from 'lwc'; export default class Child extends LightningElement { @api title; @api lang; -} \ No newline at end of file +} diff --git a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-dynamic-escape/config.json b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-dynamic-escape/config.json index a891ba7049..6f986e9877 100644 --- a/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-dynamic-escape/config.json +++ b/packages/@lwc/engine-server/src/__tests__/fixtures/attribute-dynamic-escape/config.json @@ -2,4 +2,4 @@ "props": { "attr": "\">This 'should' be escaped