Skip to content

Commit

Permalink
docs: trailingComma to trailingCommas
Browse files Browse the repository at this point in the history
  • Loading branch information
siosio34 committed Jun 5, 2024
1 parent 0a6e770 commit 6b54873
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion crates/biome_cli/src/execute/migrate/prettier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ mod tests {
"semi": true,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "es5",
"trailingCommas": "es5",
"useTabs": true,
"jsxSingleQuote": true
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ biome.json migrate ━━━━━━━━━━━━━━━━━━━━
13 │ + → → "formatter":·{
14 │ + → → → "jsxQuoteStyle":·"double",
15 │ + → → → "quoteProperties":·"asNeeded",
16 │ + → → → "trailingComma":·"all",
16 │ + → → → "trailingCommas":·"all",
17 │ + → → → "semicolons":·"always",
18 │ + → → → "arrowParentheses":·"always",
19 │ + → → → "bracketSpacing":·true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ biome.json migrate ━━━━━━━━━━━━━━━━━━━━
12 │ + → → "formatter":·{
13 │ + → → → "jsxQuoteStyle":·"double",
14 │ + → → → "quoteProperties":·"asNeeded",
15 │ + → → → "trailingComma":·"all",
15 │ + → → → "trailingCommas":·"all",
16 │ + → → → "semicolons":·"asNeeded",
17 │ + → → → "arrowParentheses":·"always",
18 │ + → → → "bracketSpacing":·true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ biome.jsonc migrate ━━━━━━━━━━━━━━━━━━━━
13 │ + → → "formatter":·{
14 │ + → → → "jsxQuoteStyle":·"double",
15 │ + → → → "quoteProperties":·"asNeeded",
16 │ + → → → "trailingComma":·"all",
16 │ + → → → "trailingCommas":·"all",
17 │ + → → → "semicolons":·"always",
18 │ + → → → "arrowParentheses":·"always",
19 │ + → → → "bracketSpacing":·true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ biome.json migrate ━━━━━━━━━━━━━━━━━━━━
14 │ + → → "formatter":·{
15 │ + → → → "jsxQuoteStyle":·"double",
16 │ + → → → "quoteProperties":·"asNeeded",
17 │ + → → → "trailingComma":·"all",
17 │ + → → → "trailingCommas":·"all",
18 │ + → → → "semicolons":·"always",
19 │ + → → → "arrowParentheses":·"always",
20 │ + → → → "bracketSpacing":·true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ expression: content
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingComma": "all",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ expression: content
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingComma": "all",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ expression: content
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingComma": "all",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": true,
Expand Down
2 changes: 1 addition & 1 deletion crates/biome_formatter_test/src/prettier/prepare_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (process.argv.length < 3) {
}

const defaultConfig = {
trailingComma: 'all',
trailingCommas: 'all',
tabWidth: 2,
printWidth: 80,
singleQuote: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ group(
options.tabWidth,
concat([line, join(concat([",", line]), printed)])
),
options.trailingComma ? "," : "",
options.trailingCommas ? "," : "",
line,
")"
]),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ group(
options.tabWidth,
concat([line, join(concat([",", line]), printed)]),
),
options.trailingComma ? "," : "",
options.trailingCommas ? "," : "",
line,
")",
]),
Expand Down
4 changes: 2 additions & 2 deletions crates/biome_migrate/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ mod test {
"$schema": "https://biomejs.dev/schemas/1.0.0/schema.json",
"javascript": {
"formatter": {
"trailingComma": "all",
"trailingCommas": "all",
"indentSize": 2
}
},
Expand All @@ -159,7 +159,7 @@ mod test {
"include": ["scripts/**"],
"javascript": {
"formatter": {
"trailingComma": "es5",
"trailingCommas": "es5",
"indentSize": 4
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"javascript": {
"formatter": {
"trailingComma": "all"
"trailingCommas": "all"
}
},
"overrides": [
{
"include": ["scripts/**"],
"javascript": {
"formatter": {
"trailingComma": "es5"
"trailingCommas": "es5"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"formatter": {
"enabled": true,
"indentSize": 2,
"trailingComma": "all"
"trailingCommas": "all"
}
}
}

0 comments on commit 6b54873

Please sign in to comment.