eslint-plugin-mgw-eslint-rules 2.3.3 → 2.3.5
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 +10 -24
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -43925,7 +43925,7 @@ var require_dist6 = __commonJS({
|
|
|
43925
43925
|
// src/index.ts
|
|
43926
43926
|
var index_exports = {};
|
|
43927
43927
|
__export(index_exports, {
|
|
43928
|
-
|
|
43928
|
+
rules: () => rules
|
|
43929
43929
|
});
|
|
43930
43930
|
module.exports = __toCommonJS(index_exports);
|
|
43931
43931
|
|
|
@@ -44165,7 +44165,7 @@ 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
|
-
|
|
44168
|
+
Element(node) {
|
|
44169
44169
|
const attributes = node.attributes;
|
|
44170
44170
|
for (const attr of attributes) {
|
|
44171
44171
|
if (attr.name === "ngClass" || attr.name === "ngStyle") {
|
|
@@ -44234,31 +44234,17 @@ var rule6 = createRule6({
|
|
|
44234
44234
|
});
|
|
44235
44235
|
|
|
44236
44236
|
// src/index.ts
|
|
44237
|
-
var
|
|
44238
|
-
|
|
44239
|
-
|
|
44240
|
-
|
|
44241
|
-
|
|
44242
|
-
|
|
44243
|
-
|
|
44244
|
-
[RULE_NAME]: rule,
|
|
44245
|
-
[RULE_NAME5]: rule5
|
|
44246
|
-
},
|
|
44247
|
-
// Configs are optional - only include if you want to provide preset configurations
|
|
44248
|
-
configs: {
|
|
44249
|
-
recommended: {
|
|
44250
|
-
plugins: [PLUGIN_NAME],
|
|
44251
|
-
rules: {
|
|
44252
|
-
[`${PLUGIN_NAME}/${RULE_NAME6}`]: "warn",
|
|
44253
|
-
[`${PLUGIN_NAME}/${RULE_NAME4}`]: "warn",
|
|
44254
|
-
[`${PLUGIN_NAME}/${RULE_NAME}`]: "error"
|
|
44255
|
-
}
|
|
44256
|
-
}
|
|
44257
|
-
}
|
|
44237
|
+
var rules = {
|
|
44238
|
+
[RULE_NAME6]: rule6,
|
|
44239
|
+
[RULE_NAME4]: rule4,
|
|
44240
|
+
[RULE_NAME2]: rule2,
|
|
44241
|
+
[RULE_NAME3]: rule3,
|
|
44242
|
+
[RULE_NAME]: rule,
|
|
44243
|
+
[RULE_NAME5]: rule5
|
|
44258
44244
|
};
|
|
44259
44245
|
// Annotate the CommonJS export names for ESM import in node:
|
|
44260
44246
|
0 && (module.exports = {
|
|
44261
|
-
|
|
44247
|
+
rules
|
|
44262
44248
|
});
|
|
44263
44249
|
/*! Bundled license information:
|
|
44264
44250
|
|