You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .README/rules/no-unsafe-query.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,5 +14,6 @@ The first option is an object with the following configuration.
14
14
|configuration|format|default|description|
15
15
|---|---|---|---|
16
16
|`allowLiteral`|boolean|`false`|Controls whether `sql` tag is required for template literals containing literal queries, i.e. template literals without expressions.|
17
+
|`sqlTag`|string|`sql`|Template tag name for SQL.|
Copy file name to clipboardExpand all lines: README.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,8 +109,9 @@ The first option is an object with the following configuration.
109
109
|`ignoreBaseIndent`|boolean|`false`|Does not leave base indent before linting.|
110
110
|`ignoreExpressions`|boolean|`false`|Does not format template literals that contain expressions.|
111
111
|`ignoreInline`|boolean|`true`|Does not format queries that are written on a single line.|
112
-
|`ignoreTagless`|boolean|`true`|Does not format queries that are written without using `sql` tag.|
113
112
|`ignoreStartWithNewLine`|boolean|`true`|Does not remove `\n` at the beginning of queries.|
113
+
|`ignoreTagless`|boolean|`true`|Does not format queries that are written without using `sql` tag.|
114
+
|`sqlTag`|string|`sql`|Template tag name for SQL.|
114
115
115
116
The second option is an object with the [`pg-formatter` configuration](https://github.com/gajus/pg-formatter#configuration).
116
117
@@ -136,6 +137,7 @@ The first option is an object with the following configuration.
136
137
|configuration|format|default|description|
137
138
|---|---|---|---|
138
139
|`allowLiteral`|boolean|`false`|Controls whether `sql` tag is required for template literals containing literal queries, i.e. template literals without expressions.|
140
+
|`sqlTag`|string|`sql`|Template tag name for SQL.|
0 commit comments