eslint-plugin-mgw-eslint-rules 2.3.23 → 2.3.25
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 +31 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +31 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44059,6 +44059,7 @@ var rule3 = createRule3({
|
|
|
44059
44059
|
if (variableNode) {
|
|
44060
44060
|
const type = checker.getTypeAtLocation(variableNode);
|
|
44061
44061
|
const typeName = checker.typeToString(type);
|
|
44062
|
+
console.log(type, typeName, variableNode);
|
|
44062
44063
|
if (isSignal(typeName)) {
|
|
44063
44064
|
const parent = node.parent;
|
|
44064
44065
|
if (!parent || parent.type !== import_utils3.AST_NODE_TYPES.CallExpression) {
|
|
@@ -44341,20 +44342,39 @@ var rule8 = createRule8({
|
|
|
44341
44342
|
{
|
|
44342
44343
|
type: "object",
|
|
44343
44344
|
description: "Map of attribute names to their allowed naming conventions (single or array).",
|
|
44344
|
-
|
|
44345
|
-
|
|
44346
|
-
|
|
44347
|
-
enum: ATTRIBUTE_CONVENTION_POSSIBLE_VALUES
|
|
44348
|
-
},
|
|
44349
|
-
{
|
|
44350
|
-
type: "array",
|
|
44351
|
-
items: {
|
|
44345
|
+
additionalProperties: {
|
|
44346
|
+
anyOf: [
|
|
44347
|
+
{
|
|
44352
44348
|
type: "string",
|
|
44353
44349
|
enum: ATTRIBUTE_CONVENTION_POSSIBLE_VALUES
|
|
44354
44350
|
},
|
|
44355
|
-
|
|
44356
|
-
|
|
44357
|
-
|
|
44351
|
+
{
|
|
44352
|
+
type: "array",
|
|
44353
|
+
items: {
|
|
44354
|
+
type: "string",
|
|
44355
|
+
enum: ATTRIBUTE_CONVENTION_POSSIBLE_VALUES
|
|
44356
|
+
},
|
|
44357
|
+
minItems: 1,
|
|
44358
|
+
uniqueItems: true
|
|
44359
|
+
},
|
|
44360
|
+
{
|
|
44361
|
+
type: "object",
|
|
44362
|
+
properties: {
|
|
44363
|
+
pattern: {
|
|
44364
|
+
type: "array",
|
|
44365
|
+
items: {
|
|
44366
|
+
type: "string"
|
|
44367
|
+
},
|
|
44368
|
+
minItems: 1,
|
|
44369
|
+
//default: [],
|
|
44370
|
+
description: "Patterns regex to test"
|
|
44371
|
+
}
|
|
44372
|
+
},
|
|
44373
|
+
required: ["pattern"],
|
|
44374
|
+
additionalProperties: false
|
|
44375
|
+
}
|
|
44376
|
+
]
|
|
44377
|
+
}
|
|
44358
44378
|
}
|
|
44359
44379
|
],
|
|
44360
44380
|
hasSuggestions: true
|