@arrirpc/eslint-plugin 0.45.5 → 0.45.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/configs.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const plugin = require('./shared/eslint-plugin.034df0f0.cjs');
5
+ const plugin = require('./shared/eslint-plugin.acba1ce7.cjs');
6
6
 
7
7
  const flatConfigs = {
8
8
  recommended: {
package/dist/configs.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { p as plugin, a as prefixedRuleMap } from './shared/eslint-plugin.3757fb90.mjs';
1
+ import { p as plugin, a as prefixedRuleMap } from './shared/eslint-plugin.558090f3.mjs';
2
2
 
3
3
  const flatConfigs = {
4
4
  recommended: {
package/dist/plugin.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const plugin = require('./shared/eslint-plugin.034df0f0.cjs');
5
+ const plugin = require('./shared/eslint-plugin.acba1ce7.cjs');
6
6
 
7
7
 
8
8
 
package/dist/plugin.mjs CHANGED
@@ -1 +1 @@
1
- export { c as configs, p as default, m as meta, r as rules } from './shared/eslint-plugin.3757fb90.mjs';
1
+ export { c as configs, p as default, m as meta, r as rules } from './shared/eslint-plugin.558090f3.mjs';
@@ -94,9 +94,16 @@ const noAnonymousEnumerator = {
94
94
  if (propName !== "enumerator" && propName !== "stringEnum") {
95
95
  return;
96
96
  }
97
+ if (isNestedInSchema(
98
+ node,
99
+ ["object", "discriminator", "recursive"],
100
+ context
101
+ )) {
102
+ return;
103
+ }
97
104
  if (node.arguments.length < 2) {
98
105
  context.report({
99
- message: "enum schemas must specify an id",
106
+ message: "root enum schemas must specify an id",
100
107
  node
101
108
  });
102
109
  return;
@@ -110,7 +117,7 @@ const noAnonymousEnumerator = {
110
117
  return;
111
118
  }
112
119
  context.report({
113
- message: "enum schemas must specify an id",
120
+ message: "root enum schemas must specify an id",
114
121
  node
115
122
  });
116
123
  }
@@ -96,9 +96,16 @@ const noAnonymousEnumerator = {
96
96
  if (propName !== "enumerator" && propName !== "stringEnum") {
97
97
  return;
98
98
  }
99
+ if (isNestedInSchema(
100
+ node,
101
+ ["object", "discriminator", "recursive"],
102
+ context
103
+ )) {
104
+ return;
105
+ }
99
106
  if (node.arguments.length < 2) {
100
107
  context.report({
101
- message: "enum schemas must specify an id",
108
+ message: "root enum schemas must specify an id",
102
109
  node
103
110
  });
104
111
  return;
@@ -112,7 +119,7 @@ const noAnonymousEnumerator = {
112
119
  return;
113
120
  }
114
121
  context.report({
115
- message: "enum schemas must specify an id",
122
+ message: "root enum schemas must specify an id",
116
123
  node
117
124
  });
118
125
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arrirpc/eslint-plugin",
3
- "version": "0.45.5",
3
+ "version": "0.45.7",
4
4
  "license": "MIT",
5
5
  "author": {
6
6
  "name": "joshmossas",