eslint-plugin-slonik 1.3.0 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -33,7 +33,7 @@ npm install libpg-query --save-dev
33
33
  ### ESLint Flat Config (eslint.config.js)
34
34
 
35
35
  ```js
36
- import slonik from "eslint-plugin-slonik/config";
36
+ import { slonik } from "eslint-plugin-slonik";
37
37
 
38
38
  export default [
39
39
  // ... other configs
@@ -71,10 +71,10 @@ export default [
71
71
  | SQL Tag | Support | Behavior |
72
72
  |---------|---------|----------|
73
73
  | `sql.array([1,2], 'int4')` | ✅ Full | Extracts type → `$1::int4[]` |
74
- | `sql.array([1,2], sql.fragment\`int[]\`)` | ✅ Graceful | Falls back to `$1` |
74
+ | `` sql.array([1,2], sql.fragment`int[]`) `` | ✅ Graceful | Falls back to `$1` |
75
75
  | `sql.unnest([[...]], ['int4','text'])` | ✅ Full | Extracts types → `unnest($1::int4[], $2::text[])` |
76
76
  | `sql.identifier(['schema','table'])` | ✅ Full | Embeds → `"schema"."table"` |
77
- | `sql.fragment\`...\`` | ✅ Full | Embeds SQL content directly |
77
+ | `` sql.fragment`...` `` | ✅ Full | Embeds SQL content directly |
78
78
  | `sql.join([...], glue)` | ✅ Skip | Skipped (runtime content) |
79
79
  | `sql.binary(buffer)` | ✅ Skip | Skipped |
80
80
  | `sql.date(date)` | ✅ Skip | Skipped |
@@ -200,7 +200,7 @@ export const sql = createSqlTag({
200
200
 
201
201
  ```js
202
202
  // eslint.config.js
203
- import slonik from "eslint-plugin-slonik/config";
203
+ import { slonik } from "eslint-plugin-slonik";
204
204
  import tseslint from "typescript-eslint";
205
205
 
206
206
  export default tseslint.config(