eslint-plugin-mgw-eslint-rules 2.3.2 → 2.3.3
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 +23 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +22 -8
- 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
|
+
plugin: () => plugin
|
|
43929
43929
|
});
|
|
43930
43930
|
module.exports = __toCommonJS(index_exports);
|
|
43931
43931
|
|
|
@@ -44234,17 +44234,31 @@ var rule6 = createRule6({
|
|
|
44234
44234
|
});
|
|
44235
44235
|
|
|
44236
44236
|
// src/index.ts
|
|
44237
|
-
var
|
|
44238
|
-
|
|
44239
|
-
|
|
44240
|
-
|
|
44241
|
-
|
|
44242
|
-
|
|
44243
|
-
|
|
44237
|
+
var PLUGIN_NAME = "mgw-eslint-rules";
|
|
44238
|
+
var plugin = {
|
|
44239
|
+
rules: {
|
|
44240
|
+
[RULE_NAME6]: rule6,
|
|
44241
|
+
[RULE_NAME4]: rule4,
|
|
44242
|
+
[RULE_NAME2]: rule2,
|
|
44243
|
+
[RULE_NAME3]: rule3,
|
|
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
|
+
}
|
|
44244
44258
|
};
|
|
44245
44259
|
// Annotate the CommonJS export names for ESM import in node:
|
|
44246
44260
|
0 && (module.exports = {
|
|
44247
|
-
|
|
44261
|
+
plugin
|
|
44248
44262
|
});
|
|
44249
44263
|
/*! Bundled license information:
|
|
44250
44264
|
|