Skip to content

Commit

Permalink
chore(prettier): format fixture input files (#4972)
Browse files Browse the repository at this point in the history
  • Loading branch information
wjhsf authored Nov 27, 2024
1 parent 15297aa commit 19d2b7f
Show file tree
Hide file tree
Showing 748 changed files with 1,779 additions and 1,839 deletions.
18 changes: 14 additions & 4 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ dist/
lib/
coverage/

fixtures/
public/
types/

.rollup.cache

__benchmarks_results__/
Expand All @@ -16,3 +12,17 @@ __benchmarks_results__/
# HTML files are used by tests and may include deliberately invalid/ugly HTML
# e.g. <input> 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
Original file line number Diff line number Diff line change
@@ -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;
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"namespace": "x",
"name": "camelCase"
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"apiVersion": 59
"apiVersion": 59
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"apiVersion": 59
"apiVersion": 59
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"apiVersion": 59
"apiVersion": 59
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"apiVersion": 59
"apiVersion": 59
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"loader": null,
"strictSpecifier": true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"loader": "@custom/loader",
"strictSpecifier": true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"loader": "@custom/loader",
"strictSpecifier": true
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"loader": null,
"strictSpecifier": true
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"isExplicitImport": false
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"isExplicitImport": false
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"isExplicitImport": false
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"isExplicitImport": false
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"isExplicitImport": false
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"isExplicitImport": false
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"isExplicitImport": false
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const tagName = 'x-comments-text';
export { default } from 'x/comments-text';
export * from 'x/comments-text';
export * from 'x/comments-text';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LightningElement } from 'lwc';

export default class extends LightningElement {
foo = ''
bar = undefined
baz= null
foo = '';
bar = undefined;
baz = null;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const tagName = 'x-comments-text';
export { default } from 'x/comments-text';
export * from 'x/comments-text';
export * from 'x/comments-text';
Original file line number Diff line number Diff line change
@@ -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;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const tagName = 'x-comments-text';
export { default } from 'x/comments-text';
export * from 'x/comments-text';
export * from 'x/comments-text';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LightningElement } from 'lwc';

export default class extends LightningElement {
foo = ''
bar = undefined
baz = null
foo = '';
bar = undefined;
baz = null;
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const tagName = 'x-comments-text';
export { default } from 'x/comments-text';
export * from 'x/comments-text';
export * from 'x/comments-text';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LightningElement } from 'lwc';

export default class extends LightningElement {
foo = ''
bar = ''
foo = '';
bar = '';
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const tagName = 'x-comments-text';
export { default } from 'x/comments-text';
export * from 'x/comments-text';
export * from 'x/comments-text';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LightningElement } from 'lwc';

export default class extends LightningElement {
foo = ''
bar = ''
foo = '';
bar = '';
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const tagName = 'x-comments-text';
export { default } from 'x/comments-text';
export * from 'x/comments-text';
export * from 'x/comments-text';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LightningElement } from 'lwc';

export default class extends LightningElement {
foo = ''
bar = ''
foo = '';
bar = '';
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const tagName = 'x-comments-text';
export { default } from 'x/comments-text';
export * from 'x/comments-text';
export * from 'x/comments-text';
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LightningElement } from 'lwc';

export default class extends LightningElement {
foo = ''
foo = '';
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const tagName = 'x-comments-text';
export { default } from 'x/comments-text';
export * from 'x/comments-text';
export * from 'x/comments-text';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LightningElement } from 'lwc';

export default class extends LightningElement {
foo = ''
bar = 'bar'
foo = '';
bar = 'bar';
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const tagName = 'x-comments-text';
export { default } from 'x/comments-text';
export * from 'x/comments-text';
export * from 'x/comments-text';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LightningElement } from 'lwc';

export default class extends LightningElement {
foo = ''
baz = 'baz'
foo = '';
baz = 'baz';
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const tagName = 'x-comments-text';
export { default } from 'x/comments-text';
export * from 'x/comments-text';
export * from 'x/comments-text';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LightningElement } from 'lwc';

export default class extends LightningElement {
foo = ''
bar = ''
foo = '';
bar = '';
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const tagName = 'x-comments-text';
export { default } from 'x/comments-text';
export * from 'x/comments-text';
export * from 'x/comments-text';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LightningElement } from 'lwc';

export default class extends LightningElement {
foo = ''
bar = ''
foo = '';
bar = '';
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export const tagName = 'x-comments-text';
export { default } from 'x/comments-text';
export * from 'x/comments-text';
export * from 'x/comments-text';
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { LightningElement } from 'lwc';

export default class extends LightningElement {
foo = 'foo'
bar = 'bar'
foo = 'foo';
bar = 'bar';
}
Original file line number Diff line number Diff line change
@@ -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');
}
}
Original file line number Diff line number Diff line change
@@ -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';
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LightningElement, api } from 'lwc';

export default class extends LightningElement {
@api dynamic
@api dynamic;
}
Loading

0 comments on commit 19d2b7f

Please sign in to comment.