@checkdigit/eslint-plugin 7.6.0-PR.75-5da1 → 7.6.0-PR.75-04b9
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-mjs/agent/fetch-then.mjs +30 -26
- package/dist-mjs/agent/fetch.mjs +7 -6
- package/dist-mjs/agent/no-fixture.mjs +44 -41
- package/dist-mjs/agent/no-supertest.mjs +346 -0
- package/dist-mjs/agent/response-reference.mjs +14 -14
- package/dist-mjs/index.mjs +7 -2
- package/dist-types/agent/fetch-then.d.ts +2 -2
- package/dist-types/agent/fetch.d.ts +3 -3
- package/dist-types/agent/no-fixture.d.ts +2 -2
- package/dist-types/agent/no-supertest.d.ts +4 -0
- package/dist-types/agent/response-reference.d.ts +10 -10
- package/package.json +1 -1
- package/src/agent/fetch-then.ts +49 -47
- package/src/agent/fetch.ts +13 -13
- package/src/agent/no-fixture.ts +87 -84
- package/src/agent/no-supertest.ts +500 -0
- package/src/agent/response-reference.ts +48 -41
- package/src/index.ts +5 -0
package/src/index.ts
CHANGED
|
@@ -22,6 +22,7 @@ import fixFunctionCallArguments, {
|
|
|
22
22
|
import invalidJsonStringify, { ruleId as invalidJsonStringifyRuleId } from './invalid-json-stringify';
|
|
23
23
|
import noDuplicatedImports, { ruleId as noDuplicatedImportsRuleId } from './no-duplicated-imports';
|
|
24
24
|
import noFixture, { ruleId as noFixtureRuleId } from './agent/no-fixture';
|
|
25
|
+
import noSupertest, { ruleId as noSupertestRuleId } from './agent/no-supertest';
|
|
25
26
|
import noLegacyServiceTyping, { ruleId as noLegacyServiceTypingRuleId } from './no-legacy-service-typing';
|
|
26
27
|
import noMappedResponse, { ruleId as noMappedResponseRuleId } from './agent/no-mapped-response';
|
|
27
28
|
import noPromiseInstanceMethod, { ruleId as noPromiseInstanceMethodRuleId } from './no-promise-instance-method';
|
|
@@ -72,6 +73,7 @@ const rules: Record<string, TSESLint.LooseRuleDefinition> = {
|
|
|
72
73
|
[invalidJsonStringifyRuleId]: invalidJsonStringify,
|
|
73
74
|
[noPromiseInstanceMethodRuleId]: noPromiseInstanceMethod,
|
|
74
75
|
[noFixtureRuleId]: noFixture,
|
|
76
|
+
[noSupertestRuleId]: noSupertest,
|
|
75
77
|
[fetchThenRuleId]: fetchThen,
|
|
76
78
|
[noServiceWrapperRuleId]: noServiceWrapper,
|
|
77
79
|
[noStatusCodeRuleId]: noStatusCode,
|
|
@@ -131,6 +133,7 @@ const configs: Record<string, TSESLint.FlatConfig.Config[]> = {
|
|
|
131
133
|
[`@checkdigit/${noMappedResponseRuleId}`]: 'off',
|
|
132
134
|
[`@checkdigit/${addUrlDomainRuleId}`]: 'off',
|
|
133
135
|
[`@checkdigit/${noFixtureRuleId}`]: 'off',
|
|
136
|
+
[`@checkdigit/${noSupertestRuleId}`]: 'off',
|
|
134
137
|
[`@checkdigit/${noServiceWrapperRuleId}`]: 'off',
|
|
135
138
|
[`@checkdigit/${noStatusCodeRuleId}`]: 'off',
|
|
136
139
|
[`@checkdigit/${fetchResponseBodyJsonRuleId}`]: 'off',
|
|
@@ -179,6 +182,7 @@ const configs: Record<string, TSESLint.FlatConfig.Config[]> = {
|
|
|
179
182
|
[`@checkdigit/${noMappedResponseRuleId}`]: 'off',
|
|
180
183
|
[`@checkdigit/${addUrlDomainRuleId}`]: 'off',
|
|
181
184
|
[`@checkdigit/${noFixtureRuleId}`]: 'off',
|
|
185
|
+
[`@checkdigit/${noSupertestRuleId}`]: 'off',
|
|
182
186
|
[`@checkdigit/${noServiceWrapperRuleId}`]: 'off',
|
|
183
187
|
[`@checkdigit/${noStatusCodeRuleId}`]: 'off',
|
|
184
188
|
[`@checkdigit/${fetchResponseBodyJsonRuleId}`]: 'off',
|
|
@@ -222,6 +226,7 @@ const configs: Record<string, TSESLint.FlatConfig.Config[]> = {
|
|
|
222
226
|
[`@checkdigit/${addBasePathImportRuleId}`]: 'error',
|
|
223
227
|
[`@checkdigit/${addAssertImportRuleId}`]: 'error',
|
|
224
228
|
[`@checkdigit/${noFixtureRuleId}`]: 'error',
|
|
229
|
+
[`@checkdigit/${noSupertestRuleId}`]: 'error',
|
|
225
230
|
},
|
|
226
231
|
},
|
|
227
232
|
{
|