@saasmakers/eslint 1.0.2 → 1.0.5
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/eslint.config.cjs +10903 -19
- package/dist/eslint.config.d.cts +2 -3876
- package/dist/eslint.config.d.mts +2 -3876
- package/dist/eslint.config.d.ts +2 -3876
- package/dist/eslint.config.mjs +10882 -18
- package/dist/index.cjs +9 -8
- package/dist/index.d.cts +2864 -530
- package/dist/index.d.mts +2864 -530
- package/dist/index.d.ts +2864 -530
- package/dist/index.mjs +9 -8
- package/dist/shared/{eslint.C6EaTeQZ.mjs → eslint.CohBuu1-.mjs} +1 -34
- package/dist/shared/{eslint.Dxl4X46J.cjs → eslint.DhFjwkxh.cjs} +0 -37
- package/package.json +6 -8
- package/dist/chunks/formatters.cjs +0 -248
- package/dist/chunks/formatters.mjs +0 -246
- package/dist/chunks/import.cjs +0 -53
- package/dist/chunks/import.mjs +0 -51
- package/dist/chunks/index.cjs +0 -120
- package/dist/chunks/index.mjs +0 -101
- package/dist/chunks/index2.cjs +0 -880
- package/dist/chunks/index2.mjs +0 -868
- package/dist/chunks/index3.cjs +0 -982
- package/dist/chunks/index3.mjs +0 -979
- package/dist/chunks/index4.cjs +0 -12099
- package/dist/chunks/index4.mjs +0 -12077
- package/dist/chunks/jsdoc.cjs +0 -38398
- package/dist/chunks/jsdoc.mjs +0 -38391
- package/dist/chunks/regexp.cjs +0 -18518
- package/dist/chunks/regexp.mjs +0 -18511
- package/dist/chunks/stylistic.cjs +0 -23935
- package/dist/chunks/stylistic.mjs +0 -23932
- package/dist/chunks/typescript.cjs +0 -56168
- package/dist/chunks/typescript.mjs +0 -56154
- package/dist/chunks/unicorn.cjs +0 -82775
- package/dist/chunks/unicorn.mjs +0 -82764
- package/dist/chunks/vue.cjs +0 -96233
- package/dist/chunks/vue.mjs +0 -96220
- package/dist/shared/eslint.05nu4VbT.mjs +0 -9
- package/dist/shared/eslint.07qTxm9w.mjs +0 -3352
- package/dist/shared/eslint.6MAvpL4q.cjs +0 -2141
- package/dist/shared/eslint.7dipMixF.cjs +0 -14
- package/dist/shared/eslint.B6FFUbNC.mjs +0 -3814
- package/dist/shared/eslint.BGpVg2tt.cjs +0 -13
- package/dist/shared/eslint.BL4sYiVQ.cjs +0 -820
- package/dist/shared/eslint.BOOP2x9L.cjs +0 -67
- package/dist/shared/eslint.BXzpdiiq.mjs +0 -10
- package/dist/shared/eslint.Bl69eiyD.cjs +0 -7073
- package/dist/shared/eslint.BtkqW7nC.mjs +0 -818
- package/dist/shared/eslint.C12_M0Cw.cjs +0 -9
- package/dist/shared/eslint.COweQ1RR.mjs +0 -5
- package/dist/shared/eslint.CUi9znUC.mjs +0 -13
- package/dist/shared/eslint.Cg6Ty7p7.mjs +0 -2699
- package/dist/shared/eslint.CxAZpd0w.cjs +0 -3365
- package/dist/shared/eslint.DDD2xc4l.cjs +0 -25
- package/dist/shared/eslint.DI7QBrVD.mjs +0 -6
- package/dist/shared/eslint.DITpUYTO.mjs +0 -36955
- package/dist/shared/eslint.DP_6nQqR.cjs +0 -3822
- package/dist/shared/eslint.DUamuDzp.cjs +0 -7
- package/dist/shared/eslint.Difk5awg.mjs +0 -2139
- package/dist/shared/eslint.Dlgr3LGM.mjs +0 -7070
- package/dist/shared/eslint.DoYGbUIG.cjs +0 -2724
- package/dist/shared/eslint.Dprsk9zl.mjs +0 -65
- package/dist/shared/eslint.MfgVmFE7.cjs +0 -3054
- package/dist/shared/eslint.W7RM7aEw.mjs +0 -3052
- package/dist/shared/eslint.sHyLr4S9.cjs +0 -37003
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index$1 = require('./shared/eslint.
|
|
3
|
+
const index$1 = require('./shared/eslint.DhFjwkxh.cjs');
|
|
4
4
|
require('eslint');
|
|
5
5
|
require('eslint/use-at-your-own-risk');
|
|
6
6
|
|
|
@@ -157,9 +157,8 @@ function getFunctionName(testName) {
|
|
|
157
157
|
}
|
|
158
158
|
function getSpecificName(testName) {
|
|
159
159
|
const parts = testName.split(".");
|
|
160
|
-
const
|
|
161
|
-
|
|
162
|
-
);
|
|
160
|
+
const specialParts = /* @__PURE__ */ new Set(["errors", "exceptions", "metrics", "middlewares"]);
|
|
161
|
+
const specialIndex = parts.findIndex((part) => specialParts.has(part));
|
|
163
162
|
if (specialIndex === -1) {
|
|
164
163
|
return parts.slice(2).join(".");
|
|
165
164
|
}
|
|
@@ -173,10 +172,12 @@ function getTestName(node) {
|
|
|
173
172
|
}
|
|
174
173
|
function getTestPriority(testName) {
|
|
175
174
|
if (testName.includes(".middlewares.")) {
|
|
176
|
-
return
|
|
175
|
+
return 5;
|
|
177
176
|
} else if (testName.includes(".exceptions.")) {
|
|
178
|
-
return
|
|
177
|
+
return 4;
|
|
179
178
|
} else if (testName.includes(".errors.")) {
|
|
179
|
+
return 3;
|
|
180
|
+
} else if (testName.includes(".metrics.")) {
|
|
180
181
|
return 2;
|
|
181
182
|
} else {
|
|
182
183
|
return 1;
|
|
@@ -185,11 +186,11 @@ function getTestPriority(testName) {
|
|
|
185
186
|
const rule$9 = {
|
|
186
187
|
meta: {
|
|
187
188
|
docs: {
|
|
188
|
-
description: "Enforce sorted test functions grouped by method with sorted errors, exceptions and middlewares",
|
|
189
|
+
description: "Enforce sorted test functions grouped by method with sorted metrics, errors, exceptions and middlewares",
|
|
189
190
|
recommended: true
|
|
190
191
|
},
|
|
191
192
|
fixable: "code",
|
|
192
|
-
messages: { sortError: "Test functions should be grouped by method with sorted errors, exceptions and middlewares." },
|
|
193
|
+
messages: { sortError: "Test functions should be grouped by method with sorted metrics, errors, exceptions and middlewares." },
|
|
193
194
|
schema: [],
|
|
194
195
|
type: "suggestion"
|
|
195
196
|
},
|