@webority/biome-config 0.164.0 → 0.167.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  Copyright (c) Webority Technologies. All rights reserved.
2
2
 
3
- This software and its NuGet packages are the proprietary and confidential property
3
+ This software and its Webority packages are the proprietary and confidential property
4
4
  of Webority Technologies. They are published publicly only for the convenience of
5
5
  Webority's own projects and internal consumption.
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/biome-config",
3
- "version": "0.164.0",
3
+ "version": "0.167.0",
4
4
  "description": "Shared Webority code standards: the Biome lint and format policy and the TypeScript compiler presets for web apps, phone apps, Razor page scripts and Node packages.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "publishConfig": {
@@ -21,20 +21,15 @@ or {
21
21
  `$endpoint.useInfiniteQuery($args)` as $call
22
22
  } where {
23
23
  $args <: not r"(?s).*\bselectFromResult\b.*",
24
+ // The data hooks are matched by callee, so a call that names its row types (useDataState<Row>(...)) counts too.
24
25
  $call <: not within or {
25
- `useDataState($_)`,
26
- `useDataState($_, $_)`,
27
- `useInfiniteDataState($_)`,
28
- `useInfiniteDataState($_, $_)`,
26
+ JsCallExpression(callee=r"^use(?:Infinite)?DataState$"),
29
27
  JsExpressionStatement(expression=$call)
30
28
  },
31
29
  $call <: not within `const $name = $call` where {
32
30
  $name <: r"^[A-Za-z_$][A-Za-z0-9_$]*$",
33
- $program <: contains or {
34
- `useDataState($name)`,
35
- `useDataState($name, $_)`,
36
- `useInfiniteDataState($name)`,
37
- `useInfiniteDataState($name, $_)`
31
+ $program <: contains JsCallExpression(callee=r"^use(?:Infinite)?DataState$", arguments=$wrapped) where {
32
+ $wrapped <: contains $name
38
33
  }
39
34
  },
40
35
  $call <: not within `const $fields = $call` where {