@yasainet/eslint 0.0.64 → 0.0.65

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yasainet/eslint",
3
- "version": "0.0.64",
3
+ "version": "0.0.65",
4
4
  "description": "ESLint",
5
5
  "type": "module",
6
6
  "exports": {
@@ -94,7 +94,7 @@ export function createLayersConfigs(featureRoot, { typeAware = true } = {}) {
94
94
  // into their public API. Uses type-aware inspection of the inferred
95
95
  // return type so unannotated functions are still checked.
96
96
  ...(typeAware ? [noAnyReturnConfig] : []),
97
- // Services: try-catch + logger + dead error fallbacks
97
+ // Services: try-catch + logger + throw + dead error fallbacks
98
98
  {
99
99
  name: "layers/services",
100
100
  files: [`${featureRoot}/**/services/*.ts`],
@@ -106,6 +106,11 @@ export function createLayersConfigs(featureRoot, { typeAware = true } = {}) {
106
106
  message:
107
107
  "try-catch is not allowed in services. Error handling belongs in entries.",
108
108
  },
109
+ {
110
+ selector: "ThrowStatement",
111
+ message:
112
+ "throw is not allowed in services. Communicate failures via T | null / { data, error } / empty default. Native exceptions from libs auto-propagate to entry's catch.",
113
+ },
109
114
  { selector: loggerSelector, message: loggerMessage },
110
115
  {
111
116
  selector: