eslint-plugin-mgw-eslint-rules 2.3.5 → 2.3.7

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
@@ -44165,9 +44165,9 @@ var rule5 = createRule5({
44165
44165
  const parserServices = (0, import_utils5.getTemplateParserServices)(context);
44166
44166
  return {
44167
44167
  // Détecte les attributs ngClass dans les templates
44168
- Element(node) {
44169
- const attributes = node.attributes;
44170
- for (const attr of attributes) {
44168
+ "Element[attributes], Element[inputs]"(node) {
44169
+ const attributesAndInputs = [...node.attributes, ...node.inputs];
44170
+ for (const attr of attributesAndInputs) {
44171
44171
  if (attr.name === "ngClass" || attr.name === "ngStyle") {
44172
44172
  const loc = parserServices.convertNodeSourceSpanToLoc(node.sourceSpan);
44173
44173
  context.report({