@checkdigit/eslint-plugin 6.6.0-PR.75-7c7f → 6.6.0-PR.75-4a28
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-cjs/index.cjs +129 -97
- package/dist-cjs/metafile.json +6 -6
- package/dist-mjs/agent/fix-function-call-arguments.mjs +68 -43
- package/dist-mjs/index.mjs +39 -32
- package/dist-types/agent/fix-function-call-arguments.d.ts +6 -1
- package/dist-types/index.d.ts +35 -30
- package/package.json +1 -1
- package/src/agent/fix-function-call-arguments.ts +76 -50
- package/src/index.ts +36 -29
package/src/index.ts
CHANGED
|
@@ -97,6 +97,7 @@ export default {
|
|
|
97
97
|
[`@checkdigit/${noDuplicatedImportsRuleId}`]: 'error',
|
|
98
98
|
[`@checkdigit/${requireFixedServicesImportRuleId}`]: 'error',
|
|
99
99
|
[`@checkdigit/${requireTypeOutOfTypeOnlyImportsRuleId}`]: 'error',
|
|
100
|
+
// --- agent rules BEGIN ---
|
|
100
101
|
[`@checkdigit/${noMappedResponseRuleId}`]: 'off',
|
|
101
102
|
[`@checkdigit/${addUrlDomainRuleId}`]: 'off',
|
|
102
103
|
[`@checkdigit/${noFixtureRuleId}`]: 'off',
|
|
@@ -109,6 +110,7 @@ export default {
|
|
|
109
110
|
[`@checkdigit/${noUnusedServiceVariablesRuleId}`]: 'off',
|
|
110
111
|
[`@checkdigit/${noUnusedImportsRuleId}`]: 'off',
|
|
111
112
|
[`@checkdigit/${fixFunctionCallArgumentsRuleId}`]: 'off',
|
|
113
|
+
// --- agent rules END ---
|
|
112
114
|
},
|
|
113
115
|
},
|
|
114
116
|
recommended: {
|
|
@@ -130,39 +132,44 @@ export default {
|
|
|
130
132
|
overrides: [
|
|
131
133
|
{
|
|
132
134
|
files: ['*.spec.ts', '*.test.ts', 'src/api/v*/index.ts'],
|
|
135
|
+
rules: {
|
|
136
|
+
[`@checkdigit/${noMappedResponseRuleId}`]: 'error',
|
|
137
|
+
[`@checkdigit/${addUrlDomainRuleId}`]: 'error',
|
|
138
|
+
[`@checkdigit/${noFixtureRuleId}`]: 'error',
|
|
139
|
+
[`@checkdigit/${noServiceWrapperRuleId}`]: 'error',
|
|
140
|
+
[`@checkdigit/${noStatusCodeRuleId}`]: 'error',
|
|
141
|
+
[`@checkdigit/${fetchResponseBodyJsonRuleId}`]: 'error',
|
|
142
|
+
[`@checkdigit/${fetchResponseHeaderGetterRuleId}`]: 'error',
|
|
143
|
+
[`@checkdigit/${fetchThenRuleId}`]: 'error',
|
|
144
|
+
[`@checkdigit/${noUnusedFunctionArgumentsRuleId}`]: 'error',
|
|
145
|
+
[`@checkdigit/${noUnusedServiceVariablesRuleId}`]: 'error',
|
|
146
|
+
[`@checkdigit/${noUnusedImportsRuleId}`]: 'error',
|
|
147
|
+
[`@checkdigit/${fixFunctionCallArgumentsRuleId}`]: 'error',
|
|
148
|
+
},
|
|
133
149
|
},
|
|
134
150
|
],
|
|
135
|
-
rules: {
|
|
136
|
-
[`@checkdigit/${noMappedResponseRuleId}`]: 'error',
|
|
137
|
-
[`@checkdigit/${addUrlDomainRuleId}`]: 'error',
|
|
138
|
-
[`@checkdigit/${noFixtureRuleId}`]: 'error',
|
|
139
|
-
[`@checkdigit/${noServiceWrapperRuleId}`]: 'error',
|
|
140
|
-
[`@checkdigit/${noStatusCodeRuleId}`]: 'error',
|
|
141
|
-
[`@checkdigit/${fetchResponseBodyJsonRuleId}`]: 'error',
|
|
142
|
-
[`@checkdigit/${fetchResponseHeaderGetterRuleId}`]: 'error',
|
|
143
|
-
[`@checkdigit/${fetchThenRuleId}`]: 'error',
|
|
144
|
-
[`@checkdigit/${noUnusedFunctionArgumentsRuleId}`]: 'error',
|
|
145
|
-
[`@checkdigit/${noUnusedServiceVariablesRuleId}`]: 'error',
|
|
146
|
-
[`@checkdigit/${noUnusedImportsRuleId}`]: 'error',
|
|
147
|
-
[`@checkdigit/${fixFunctionCallArgumentsRuleId}`]: 'error',
|
|
148
|
-
},
|
|
149
151
|
},
|
|
150
152
|
'agent-phase-2-production': {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
153
|
+
overrides: [
|
|
154
|
+
{
|
|
155
|
+
files: ['*.ts'],
|
|
156
|
+
excludedFiles: ['*.spec.ts', '*.test.ts'],
|
|
157
|
+
rules: {
|
|
158
|
+
[`@checkdigit/${noMappedResponseRuleId}`]: 'error',
|
|
159
|
+
[`@checkdigit/${addUrlDomainRuleId}`]: 'error',
|
|
160
|
+
[`@checkdigit/${noFixtureRuleId}`]: 'off',
|
|
161
|
+
[`@checkdigit/${noServiceWrapperRuleId}`]: 'error',
|
|
162
|
+
[`@checkdigit/${noStatusCodeRuleId}`]: 'error',
|
|
163
|
+
[`@checkdigit/${fetchResponseBodyJsonRuleId}`]: 'error',
|
|
164
|
+
[`@checkdigit/${fetchResponseHeaderGetterRuleId}`]: 'error',
|
|
165
|
+
[`@checkdigit/${fetchThenRuleId}`]: 'error',
|
|
166
|
+
[`@checkdigit/${noUnusedFunctionArgumentsRuleId}`]: 'error',
|
|
167
|
+
[`@checkdigit/${noUnusedServiceVariablesRuleId}`]: 'error',
|
|
168
|
+
[`@checkdigit/${noUnusedImportsRuleId}`]: 'error',
|
|
169
|
+
[`@checkdigit/${fixFunctionCallArgumentsRuleId}`]: 'error',
|
|
170
|
+
},
|
|
171
|
+
},
|
|
172
|
+
],
|
|
166
173
|
},
|
|
167
174
|
},
|
|
168
175
|
};
|