You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period
187
211
"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used. {{customMessage}}",
188
212
189
213
everything:
190
-
"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted.",
214
+
"* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted.",
191
215
everythingWithCustomMessage:
192
216
// eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period
193
-
"* import is invalid because '{{importNames}}' from '{{importSource}}' is restricted. {{customMessage}}",
217
+
"* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted. {{customMessage}}",
194
218
195
219
importName:
196
220
"'{{importName}}' import from '{{importSource}}' is restricted.",
@@ -199,16 +223,16 @@ module.exports = {
199
223
"'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}",
200
224
201
225
allowedImportName:
202
-
"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed.",
226
+
"'{{importName}}' import from '{{importSource}}' is restricted because only {{allowedImportNames}} {{isOrAre}} allowed.",
203
227
allowedImportNameWithCustomMessage:
204
228
// eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period
205
-
"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed. {{customMessage}}",
229
+
"'{{importName}}' import from '{{importSource}}' is restricted because only {{allowedImportNames}} {{isOrAre}} allowed. {{customMessage}}",
206
230
207
231
everythingWithAllowImportNames:
208
-
"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed.",
232
+
"* import is invalid because only {{allowedImportNames}} from '{{importSource}}' {{isOrAre}} allowed.",
209
233
everythingWithAllowImportNamesAndCustomMessage:
210
234
// eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period
211
-
"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed. {{customMessage}}",
235
+
"* import is invalid because only {{allowedImportNames}} from '{{importSource}}' {{isOrAre}} allowed. {{customMessage}}",
212
236
213
237
allowedImportNamePattern:
214
238
"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'.",
0 commit comments