Skip to content

Commit ffd44d7

Browse files
committed
Add dangling commas to functions (new prettier default)
1 parent 6afacbc commit ffd44d7

File tree

23 files changed

+46
-47
lines changed

23 files changed

+46
-47
lines changed

.prettierrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"printWidth": 250,
3-
"tabWidth": 4,
4-
"trailingComma": "es5"
3+
"tabWidth": 4
54
}

resources/main.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class MainBenchmarkClient {
3939
message,
4040
params.suites,
4141
"\nValid values:",
42-
Suites.map((each) => each.name)
42+
Suites.map((each) => each.name),
4343
);
4444

4545
return false;

resources/metric-ui.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function renderMetricView(viewParams) {
3232
<td>±</td>
3333
<td>${metric.deltaString}</td>
3434
<td>${metric.unit}</td>
35-
</tr>`
35+
</tr>`,
3636
)
3737
.join("");
3838
return `

resources/scripts/sanitize-language/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function getFiles(dir) {
2020
dirents.map((dirent) => {
2121
const res = resolve(dir, dirent.name);
2222
return dirent.isDirectory() ? getFiles(res) : res;
23-
})
23+
}),
2424
);
2525
return Array.prototype.concat(...files);
2626
}

resources/todomvc/architecture-examples/angular/src/app/todo-footer/todo-footer.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { TodosService } from "../todos.service";
1010
export class TodoFooterComponent {
1111
constructor(
1212
private todosService: TodosService,
13-
private location: Location
13+
private location: Location,
1414
) {}
1515

1616
get todos(): Todo[] {

resources/todomvc/architecture-examples/angular/src/app/todo-list/todo-list.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { TodosService } from "../todos.service";
1010
export class TodoListComponent {
1111
constructor(
1212
private todosService: TodosService,
13-
private location: Location
13+
private location: Location,
1414
) {}
1515

1616
get todos(): Todo[] {

resources/todomvc/architecture-examples/backbone/src/views/app-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ var app = app || {};
6464
this.statsTemplate({
6565
completed: completed,
6666
remaining: remaining,
67-
})
67+
}),
6868
);
6969

7070
this.$(".filters li a")

resources/todomvc/architecture-examples/lit/src/lib/todo-list.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export class TodoList extends LitElement {
102102
${repeat(
103103
this.todoList?.filtered() ?? [],
104104
(todo) => todo.id,
105-
(todo, index) => html`<todo-item data-priority=${4 - (index % 5)} .todoId=${todo.id} .text=${todo.text} .completed=${todo.completed}></todo-item>`
105+
(todo, index) => html`<todo-item data-priority=${4 - (index % 5)} .todoId=${todo.id} .text=${todo.text} .completed=${todo.completed}></todo-item>`,
106106
)}
107107
</ul>
108108
`;

resources/todomvc/architecture-examples/react-redux/src/components/footer.test.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const setup = (propOverrides) => {
1010
filter: SHOW_ALL,
1111
onClearCompleted: jest.fn(),
1212
},
13-
propOverrides
13+
propOverrides,
1414
);
1515

1616
const { rerender } = render(<Footer {...props} />);

resources/todomvc/architecture-examples/react-redux/src/components/main.test.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ const setup = (propOverrides) => {
3636
activeCount,
3737
visibleTodos,
3838
},
39-
propOverrides
39+
propOverrides,
4040
);
4141

4242
const { rerender } = render(
4343
<HashRouter>
4444
<WrappedComponent {...props} />
45-
</HashRouter>
45+
</HashRouter>,
4646
);
4747

4848
return {

0 commit comments

Comments
 (0)