Skip to content

Commit defca35

Browse files
authored
Merge PR #253: SQL Formatter 8.0
2 parents 64fb98b + 663e19e commit defca35

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+1295
-1316
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@typescript-eslint/indent": "off",
3737
"@typescript-eslint/lines-between-class-members": "off",
3838
"@typescript-eslint/naming-convention": "error",
39-
"@typescript-eslint/no-unused-vars": "error",
39+
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
4040
"@typescript-eslint/quotes": [
4141
"error",
4242
"single",

README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,10 @@ All fields are optional and all fields that are not specified will be filled wit
149149
- [**`useTabs`**](docs/useTabs.md) to use tabs for indentation.
150150
- [**`keywordCase`**](docs/keywordCase.md) uppercases or lowercases keywords.
151151
- [**`indentStyle`**](docs/indentStyle.md) defines overall indentation style.
152-
- [**`multilineLists`**](docs/multilineLists.md) **(DEPRECATED)** determines when to break lists of items to multiple lines.
153152
- [**`logicalOperatorNewline`**](docs/logicalOperatorNewline.md) newline before or after boolean operator (AND, OR, XOR).
154153
- [**`aliasAs`**](docs/aliasAs.md) enforces or forbids use of AS keyword for aliases.
155154
- [**`tabulateAlias`**](docs/tabulateAlias.md) aligns column aliases vertically.
156155
- [**`commaPosition`**](docs/commaPosition.md) where to place the comma in column lists.
157-
- [**`newlineBeforeOpenParen`**](docs/newlineBeforeOpenParen.md) **(DEPRECATED)** placement of opening parenthesis.
158-
- [**`newlineBeforeCloseParen`**](docs/newlineBeforeCloseParen.md) **(DEPRECATED)** placement of closing parenthesis.
159156
- [**`expressionWidth`**](docs/expressionWidth.md) maximum number of characters in parenthesized expressions to be kept on single line.
160157
- [**`linesBetweenQueries`**](docs/linesBetweenQueries.md) how many newlines to insert between queries.
161158
- [**`denseOperators`**](docs/denseOperators.md) packs operators densely without spaces.

docs/expressionWidth.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Determines maximum length of parenthesized expressions.
77
A number (default `50`) specifying the maximum length of parenthesized expression
88
that's does not get split up to multiple lines.
99

10-
Note: `expressionWidth` also effects formatting of comma-separated lists when `multilineLists: "expressionWidth"` used.
11-
1210
### expressionWidth: 50 (default)
1311

1412
Keeps the parenthesized expression (with length of 42) on single line:

docs/indentStyle.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ Switches between different indentation styles.
1111
Caveats of using `"tabularLeft"` and `"tabularRight"`:
1212

1313
- `tabWidth` option is ignored. Indentation will always be 10 spaces, regardless of what is specified by `tabWidth`.
14-
- `newlineBeforeOpenParen` option is ignored.
15-
- `newlineBeforeCloseParen` option is ignored.
1614

1715
### standard
1816

docs/multilineLists.md

Lines changed: 0 additions & 152 deletions
This file was deleted.

docs/newlineBeforeCloseParen.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

docs/newlineBeforeOpenParen.md

Lines changed: 0 additions & 41 deletions
This file was deleted.

docs/tabulateAlias.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ Does not effect table name aliases.
88
- `false` (default) does nothing.
99
- `true` aligns column aliases into single column.
1010

11-
Caveats:
12-
13-
Does not work when option `multilineLists: "avoid"` is used.
14-
1511
### tabulateAlias: false
1612

1713
```

0 commit comments

Comments
 (0)