@alextheman/eslint-plugin 5.5.2 → 5.6.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 +195 -243
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +189 -237
- package/dist/utility/index.cjs +10 -17
- package/dist/utility/index.js +3 -11
- package/package.json +15 -14
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Linter } from "eslint";
|
|
2
2
|
import { TypeDocOptions } from "typedoc";
|
|
3
3
|
import { PluginOptions } from "typedoc-plugin-markdown";
|
|
4
|
-
import * as
|
|
4
|
+
import * as vite from "vite";
|
|
5
5
|
import { VitestEnvironment } from "vitest/node";
|
|
6
6
|
import { TSESTree } from "@typescript-eslint/utils";
|
|
7
7
|
import { JSONSchema4 } from "@typescript-eslint/utils/json-schema";
|
|
@@ -27,12 +27,12 @@ type GetFlattenedConfigNames<ConfigObject extends { [K in keyof ConfigObject]: R
|
|
|
27
27
|
//#region src/configs/AlexPluginConfigGroup.d.ts
|
|
28
28
|
type GeneralConfig = "javascript" | "typescript" | "react" | "packageJson";
|
|
29
29
|
type PluginConfig = "base" | "tests";
|
|
30
|
-
type
|
|
30
|
+
type InternalConfig = "javascript" | "typescript" | "react" | "tests" | "eslintPlugin" | "neurosongsBackEnd" | "neurosongsFrontEnd" | "utility" | "alexCLine" | "jsdoc" | "components";
|
|
31
31
|
type CombinedConfig = "javascript" | "typescript" | "react" | "tests" | "typescriptReact" | "javascriptReact" | "typescriptPackage";
|
|
32
32
|
interface AlexPluginConfigObject {
|
|
33
33
|
general: Record<GeneralConfig, Linter.Config[]>;
|
|
34
34
|
plugin: Record<PluginConfig, Linter.Config[]>;
|
|
35
|
-
|
|
35
|
+
internal: Record<InternalConfig, Linter.Config[]>;
|
|
36
36
|
combined: Record<CombinedConfig, Linter.Config[]>;
|
|
37
37
|
}
|
|
38
38
|
type AlexConfigGroupName = keyof AlexPluginConfigObject;
|
|
@@ -651,7 +651,7 @@ declare const prettierConfig: Config;
|
|
|
651
651
|
declare function typeDocConfig(entryPoints?: string[]): TypeDocOptions & PluginOptions;
|
|
652
652
|
//#endregion
|
|
653
653
|
//#region src/configs/external/vitestConfig.d.ts
|
|
654
|
-
declare function vitestConfig(environment?: VitestEnvironment):
|
|
654
|
+
declare function vitestConfig(environment?: VitestEnvironment): vite.UserConfig;
|
|
655
655
|
//#endregion
|
|
656
656
|
//#region src/utility/public/checkCallExpression.d.ts
|
|
657
657
|
/**
|
|
@@ -835,4 +835,4 @@ declare function flattenConfigs<ConfigObject extends { [K in keyof ConfigObject]
|
|
|
835
835
|
*/
|
|
836
836
|
declare function getImportSpecifiersAfterRemoving<RuleOptions>(context: Readonly<RuleContext<"message", [RuleOptions]>>, specifiers: TSESTree.ImportClause[], importToRemove: string): string;
|
|
837
837
|
//#endregion
|
|
838
|
-
export { AlexConfigGroupName, AlexFlattenedConfigName, type AlexPlugin, AlexPluginConfigFlattened, AlexPluginConfigObject, CombinedConfig, GeneralConfig, type GetFlattenedConfigNames, type NoRestrictedImportsOptions,
|
|
838
|
+
export { AlexConfigGroupName, AlexFlattenedConfigName, type AlexPlugin, AlexPluginConfigFlattened, AlexPluginConfigObject, CombinedConfig, GeneralConfig, type GetFlattenedConfigNames, InternalConfig, type NoRestrictedImportsOptions, PluginConfig, checkCallExpression, combineRestrictedImports, createRuleSchemaFromZodSchema, alexPlugin as default, fixOnCondition, flattenConfigs, getImportSpecifiersAfterRemoving, prettierConfig, typeDocConfig, vitestConfig };
|
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import z from "zod";
|
|
|
3
3
|
import { Linter } from "eslint";
|
|
4
4
|
import { TypeDocOptions } from "typedoc";
|
|
5
5
|
import { PluginOptions } from "typedoc-plugin-markdown";
|
|
6
|
-
import * as
|
|
6
|
+
import * as vite from "vite";
|
|
7
7
|
import { VitestEnvironment } from "vitest/node";
|
|
8
8
|
import { JSONSchema4 } from "@typescript-eslint/utils/json-schema";
|
|
9
9
|
import { RuleContext, RuleFix, RuleFixer } from "@typescript-eslint/utils/ts-eslint";
|
|
@@ -27,12 +27,12 @@ type GetFlattenedConfigNames<ConfigObject extends { [K in keyof ConfigObject]: R
|
|
|
27
27
|
//#region src/configs/AlexPluginConfigGroup.d.ts
|
|
28
28
|
type GeneralConfig = "javascript" | "typescript" | "react" | "packageJson";
|
|
29
29
|
type PluginConfig = "base" | "tests";
|
|
30
|
-
type
|
|
30
|
+
type InternalConfig = "javascript" | "typescript" | "react" | "tests" | "eslintPlugin" | "neurosongsBackEnd" | "neurosongsFrontEnd" | "utility" | "alexCLine" | "jsdoc" | "components";
|
|
31
31
|
type CombinedConfig = "javascript" | "typescript" | "react" | "tests" | "typescriptReact" | "javascriptReact" | "typescriptPackage";
|
|
32
32
|
interface AlexPluginConfigObject {
|
|
33
33
|
general: Record<GeneralConfig, Linter.Config[]>;
|
|
34
34
|
plugin: Record<PluginConfig, Linter.Config[]>;
|
|
35
|
-
|
|
35
|
+
internal: Record<InternalConfig, Linter.Config[]>;
|
|
36
36
|
combined: Record<CombinedConfig, Linter.Config[]>;
|
|
37
37
|
}
|
|
38
38
|
type AlexConfigGroupName = keyof AlexPluginConfigObject;
|
|
@@ -651,7 +651,7 @@ declare const prettierConfig: Config;
|
|
|
651
651
|
declare function typeDocConfig(entryPoints?: string[]): TypeDocOptions & PluginOptions;
|
|
652
652
|
//#endregion
|
|
653
653
|
//#region src/configs/external/vitestConfig.d.ts
|
|
654
|
-
declare function vitestConfig(environment?: VitestEnvironment):
|
|
654
|
+
declare function vitestConfig(environment?: VitestEnvironment): vite.UserConfig;
|
|
655
655
|
//#endregion
|
|
656
656
|
//#region src/utility/public/checkCallExpression.d.ts
|
|
657
657
|
/**
|
|
@@ -835,4 +835,4 @@ declare function flattenConfigs<ConfigObject extends { [K in keyof ConfigObject]
|
|
|
835
835
|
*/
|
|
836
836
|
declare function getImportSpecifiersAfterRemoving<RuleOptions>(context: Readonly<RuleContext<"message", [RuleOptions]>>, specifiers: TSESTree.ImportClause[], importToRemove: string): string;
|
|
837
837
|
//#endregion
|
|
838
|
-
export { AlexConfigGroupName, AlexFlattenedConfigName, type AlexPlugin, AlexPluginConfigFlattened, AlexPluginConfigObject, CombinedConfig, GeneralConfig, type GetFlattenedConfigNames, type NoRestrictedImportsOptions,
|
|
838
|
+
export { AlexConfigGroupName, AlexFlattenedConfigName, type AlexPlugin, AlexPluginConfigFlattened, AlexPluginConfigObject, CombinedConfig, GeneralConfig, type GetFlattenedConfigNames, InternalConfig, type NoRestrictedImportsOptions, PluginConfig, checkCallExpression, combineRestrictedImports, createRuleSchemaFromZodSchema, alexPlugin as default, fixOnCondition, flattenConfigs, getImportSpecifiersAfterRemoving, prettierConfig, typeDocConfig, vitestConfig };
|