eslint-plugin-mgw-eslint-rules 2.3.35 → 2.3.37

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/dist/index.js CHANGED
@@ -44204,7 +44204,7 @@ var rule6 = createRule6({
44204
44204
  type: "suggestion",
44205
44205
  fixable: "code",
44206
44206
  docs: {
44207
- description: "Naming convention for reactive variables and properties (name must end with $ and $$ for WritableSignals and Subjects)",
44207
+ description: "Naming convention for array like variables and properties (name must end with `s` and suffix `List` is not allowed)",
44208
44208
  recommended: true,
44209
44209
  requiresTypeChecking: true
44210
44210
  },
@@ -44257,6 +44257,14 @@ var rule6 = createRule6({
44257
44257
  const type = checker.getTypeAtLocation(tsNode);
44258
44258
  const typeName = checker.typeToString(type);
44259
44259
  const typeNameWithoutGeneric = getTypeWithoutGeneric(typeName);
44260
+ if (name === "testAntoine") {
44261
+ context.report({
44262
+ node,
44263
+ messageId: "noListSuffix",
44264
+ data: { name: typeNameWithoutGeneric }
44265
+ });
44266
+ return;
44267
+ }
44260
44268
  if (!typeNameWithoutGeneric || !listeArraysTypes.includes(typeNameWithoutGeneric)) {
44261
44269
  return;
44262
44270
  }