Skip to content

Commit

Permalink
fix: correct default for keywordCase
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed Sep 27, 2023
1 parent 40d887f commit 8ab2ab4
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion src/rules/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export = {
type: 'string',
},
keywordCase: {
default: 'lowercase',
default: 'uppercase',
type: 'string',
},
noRcFile: {
Expand Down
36 changes: 18 additions & 18 deletions test/rules/assertions/format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,24 +15,24 @@ export default {
],
output: '`\nSELECT\n 1\n`',
},
// {
// code: '`SELECT 2`',
// errors: [
// {
// message: 'Format the query',
// },
// ],
// options: [
// {
// ignoreInline: false,
// ignoreTagless: false,
// },
// {
// spaces: 2,
// },
// ],
// output: '`\nSELECT\n 2\n`',
// },
{
code: '`SELECT 2`',
errors: [
{
message: 'Format the query',
},
],
options: [
{
ignoreInline: false,
ignoreTagless: false,
},
{
spaces: 2,
},
],
output: '`\nSELECT\n 2\n`',
},
{
code: 'sql.unsafe`SELECT 3`',
errors: [
Expand Down

0 comments on commit 8ab2ab4

Please sign in to comment.