eslint-plugin-mgw-eslint-rules 2.3.36 → 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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44257,9 +44257,6 @@ 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 (!typeNameWithoutGeneric || !listeArraysTypes.includes(typeNameWithoutGeneric)) {
|
|
44261
|
-
return;
|
|
44262
|
-
}
|
|
44263
44260
|
if (name === "testAntoine") {
|
|
44264
44261
|
context.report({
|
|
44265
44262
|
node,
|
|
@@ -44268,6 +44265,9 @@ var rule6 = createRule6({
|
|
|
44268
44265
|
});
|
|
44269
44266
|
return;
|
|
44270
44267
|
}
|
|
44268
|
+
if (!typeNameWithoutGeneric || !listeArraysTypes.includes(typeNameWithoutGeneric)) {
|
|
44269
|
+
return;
|
|
44270
|
+
}
|
|
44271
44271
|
const listSuffixRegexp = /liste?$/i;
|
|
44272
44272
|
if (listSuffixRegexp.test(name)) {
|
|
44273
44273
|
context.report({
|