@arrirpc/eslint-plugin 0.45.5 → 0.45.7
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/configs.cjs +1 -1
- package/dist/configs.mjs +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.mjs +1 -1
- package/dist/shared/{eslint-plugin.3757fb90.mjs → eslint-plugin.558090f3.mjs} +9 -2
- package/dist/shared/{eslint-plugin.034df0f0.cjs → eslint-plugin.acba1ce7.cjs} +9 -2
- package/package.json +1 -1
package/dist/configs.cjs
CHANGED
package/dist/configs.mjs
CHANGED
package/dist/plugin.cjs
CHANGED
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.
|
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
|
}
|