@alextheman/eslint-plugin 1.13.8 → 1.14.0
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/index.cjs +6 -1
- package/dist/index.d.cts +4 -3
- package/dist/index.d.ts +4 -3
- package/dist/index.js +5 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -3700,13 +3700,14 @@ var require_globals2 = __commonJS({
|
|
|
3700
3700
|
var index_exports = {};
|
|
3701
3701
|
__export(index_exports, {
|
|
3702
3702
|
default: () => index_default,
|
|
3703
|
+
parseTestFunction: () => parseTestFunction,
|
|
3703
3704
|
prettierRules: () => prettierRules_default
|
|
3704
3705
|
});
|
|
3705
3706
|
module.exports = __toCommonJS(index_exports);
|
|
3706
3707
|
|
|
3707
3708
|
// package.json
|
|
3708
3709
|
var name = "@alextheman/eslint-plugin";
|
|
3709
|
-
var version = "1.
|
|
3710
|
+
var version = "1.14.0";
|
|
3710
3711
|
|
|
3711
3712
|
// src/configs/alexPluginBase.ts
|
|
3712
3713
|
function createAlexPluginBaseConfig(plugin) {
|
|
@@ -3966,6 +3967,9 @@ var getImportSpecifiersAfterRemoving_default = getImportSpecifiersAfterRemoving;
|
|
|
3966
3967
|
|
|
3967
3968
|
// src/rules/consistent-test-function.ts
|
|
3968
3969
|
var validTestFunctionsSchema = import_zod.default.enum(["test", "it"]);
|
|
3970
|
+
function parseTestFunction(data) {
|
|
3971
|
+
return validTestFunctionsSchema.parse(data);
|
|
3972
|
+
}
|
|
3969
3973
|
var consistentTestFunction = createRule_default({
|
|
3970
3974
|
name: "consistent-test-function",
|
|
3971
3975
|
meta: {
|
|
@@ -4438,5 +4442,6 @@ var alexPlugin_default = alexPlugin;
|
|
|
4438
4442
|
var index_default = alexPlugin_default;
|
|
4439
4443
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4440
4444
|
0 && (module.exports = {
|
|
4445
|
+
parseTestFunction,
|
|
4441
4446
|
prettierRules
|
|
4442
4447
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ import z from 'zod';
|
|
|
3
3
|
import { Config } from 'prettier';
|
|
4
4
|
|
|
5
5
|
var name = "@alextheman/eslint-plugin";
|
|
6
|
-
var version = "1.
|
|
6
|
+
var version = "1.14.0";
|
|
7
7
|
|
|
8
8
|
interface AlexPlugin {
|
|
9
9
|
meta: {
|
|
@@ -28,6 +28,7 @@ declare const validTestFunctionsSchema: z.ZodEnum<{
|
|
|
28
28
|
test: "test";
|
|
29
29
|
it: "it";
|
|
30
30
|
}>;
|
|
31
|
-
type
|
|
31
|
+
type TestFunction = z.infer<typeof validTestFunctionsSchema>;
|
|
32
|
+
declare function parseTestFunction(data: unknown): TestFunction;
|
|
32
33
|
|
|
33
|
-
export { type AlexPlugin, type
|
|
34
|
+
export { type AlexPlugin, type TestFunction, alexPlugin as default, parseTestFunction, prettierRules };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import z from 'zod';
|
|
|
3
3
|
import { Config } from 'prettier';
|
|
4
4
|
|
|
5
5
|
var name = "@alextheman/eslint-plugin";
|
|
6
|
-
var version = "1.
|
|
6
|
+
var version = "1.14.0";
|
|
7
7
|
|
|
8
8
|
interface AlexPlugin {
|
|
9
9
|
meta: {
|
|
@@ -28,6 +28,7 @@ declare const validTestFunctionsSchema: z.ZodEnum<{
|
|
|
28
28
|
test: "test";
|
|
29
29
|
it: "it";
|
|
30
30
|
}>;
|
|
31
|
-
type
|
|
31
|
+
type TestFunction = z.infer<typeof validTestFunctionsSchema>;
|
|
32
|
+
declare function parseTestFunction(data: unknown): TestFunction;
|
|
32
33
|
|
|
33
|
-
export { type AlexPlugin, type
|
|
34
|
+
export { type AlexPlugin, type TestFunction, alexPlugin as default, parseTestFunction, prettierRules };
|
package/dist/index.js
CHANGED
|
@@ -3692,7 +3692,7 @@ var require_globals2 = __commonJS({
|
|
|
3692
3692
|
|
|
3693
3693
|
// package.json
|
|
3694
3694
|
var name = "@alextheman/eslint-plugin";
|
|
3695
|
-
var version = "1.
|
|
3695
|
+
var version = "1.14.0";
|
|
3696
3696
|
|
|
3697
3697
|
// src/configs/alexPluginBase.ts
|
|
3698
3698
|
function createAlexPluginBaseConfig(plugin) {
|
|
@@ -3952,6 +3952,9 @@ var getImportSpecifiersAfterRemoving_default = getImportSpecifiersAfterRemoving;
|
|
|
3952
3952
|
|
|
3953
3953
|
// src/rules/consistent-test-function.ts
|
|
3954
3954
|
var validTestFunctionsSchema = z.enum(["test", "it"]);
|
|
3955
|
+
function parseTestFunction(data) {
|
|
3956
|
+
return validTestFunctionsSchema.parse(data);
|
|
3957
|
+
}
|
|
3955
3958
|
var consistentTestFunction = createRule_default({
|
|
3956
3959
|
name: "consistent-test-function",
|
|
3957
3960
|
meta: {
|
|
@@ -4424,5 +4427,6 @@ var alexPlugin_default = alexPlugin;
|
|
|
4424
4427
|
var index_default = alexPlugin_default;
|
|
4425
4428
|
export {
|
|
4426
4429
|
index_default as default,
|
|
4430
|
+
parseTestFunction,
|
|
4427
4431
|
prettierRules_default as prettierRules
|
|
4428
4432
|
};
|