@longzai-intelligence-oxlint/utils 0.2.11 → 0.2.13

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +0 -16
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import * as z from "zod/mini";
2
2
  import { Context } from "@oxlint/plugins";
3
- //#region src/types/rule.types.d.ts
4
3
  /**
5
4
  * Oxlint 规则上下文类型
6
5
  */
@@ -32,8 +31,6 @@ type RuleState = {
32
31
  */
33
32
  forbiddenImportName: string;
34
33
  };
35
- //#endregion
36
- //#region src/schemas/ast.schemas.d.ts
37
34
  /**
38
35
  * 带有标识符的节点 schema
39
36
  */
@@ -148,8 +145,6 @@ type CallExpressionNode = z.infer<typeof CallExpressionSchema>;
148
145
  * ObjectExpression 节点类型
149
146
  */
150
147
  type ObjectExpressionNode = z.infer<typeof ObjectExpressionSchema>;
151
- //#endregion
152
- //#region src/schemas/plugin.schemas.d.ts
153
148
  /**
154
149
  * 插件元信息 schema
155
150
  */
@@ -172,8 +167,6 @@ type PluginMeta = z.infer<typeof PluginMetaSchema>;
172
167
  * 插件配置类型
173
168
  */
174
169
  type Plugin = z.infer<typeof PluginSchema>;
175
- //#endregion
176
- //#region src/utils/import.utils.d.ts
177
170
  /**
178
171
  * 检查节点是否为 ImportDeclaration
179
172
  *
@@ -217,8 +210,6 @@ declare function getImportedNames(node: ImportDeclarationNode): string[];
217
210
  * @returns 是否导入了指定名称
218
211
  */
219
212
  declare function hasImportedName(node: ImportDeclarationNode, name: string): boolean;
220
- //#endregion
221
- //#region src/utils/file.utils.d.ts
222
213
  /**
223
214
  * 检查文件是否为测试文件
224
215
  *
@@ -257,8 +248,6 @@ declare function getFileName(filePath: string): string;
257
248
  * @returns 是否在排除路径中
258
249
  */
259
250
  declare function isInExcludedPath(filePath: string, excludedPaths: string[]): boolean;
260
- //#endregion
261
- //#region src/utils/naming.utils.d.ts
262
251
  /**
263
252
  * 命名工具函数
264
253
  *
@@ -306,8 +295,6 @@ declare function toDtoCamelCase(name: string): string;
306
295
  * @returns 转换后的名称
307
296
  */
308
297
  declare function toDtoUpperCase(name: string): string;
309
- //#endregion
310
- //#region src/guards/ast.guards.d.ts
311
298
  /**
312
299
  * 检查节点是否有 id 属性且 id 有 name 属性
313
300
  *
@@ -336,8 +323,6 @@ declare function isCallExpressionNode(obj: unknown): obj is CallExpressionNode;
336
323
  * @returns 是否为 ObjectExpression
337
324
  */
338
325
  declare function isObjectExpressionNode(obj: unknown): obj is ObjectExpressionNode;
339
- //#endregion
340
- //#region src/guards/plugin.guards.d.ts
341
326
  /**
342
327
  * 检查对象是否为有效的 Oxlint 插件
343
328
  *
@@ -355,5 +340,4 @@ declare function isPlugin(obj: unknown): obj is Plugin;
355
340
  * @throws {@link Error} 如果插件无效或插件名称未定义
356
341
  */
357
342
  declare function getPluginName(plugin: unknown): string;
358
- //#endregion
359
343
  export { CallExpressionNode, CallExpressionSchema, ExportDefaultDeclarationNode, ExportDefaultDeclarationSchema, ImportDeclarationNode, ImportDeclarationSchema, ImportSpecifierNode, ImportSpecifierSchema, NodeWithIdentifier, NodeWithIdentifierAndRange, NodeWithIdentifierAndRangeSchema, NodeWithIdentifierSchema, ObjectExpressionNode, ObjectExpressionSchema, type OxlintContext, Plugin, PluginMeta, PluginMetaSchema, PluginSchema, type RuleState, getFileName, getImportedNames, getPluginName, hasAnyFileSuffix, hasFileSuffix, hasIPrefix, hasIdWithName, hasIdWithNameAndRange, hasImportedName, isCallExpressionNode, isDefaultImport, isImportDeclaration, isImportSpecifier, isInExcludedPath, isNamespaceImport, isObjectExpressionNode, isPlugin, isTestFile, isValidDtoNameCamelCase, isValidDtoNameUpperCase, removeIPrefix, toDtoCamelCase, toDtoUpperCase };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longzai-intelligence-oxlint/utils",
3
- "version": "0.2.11",
3
+ "version": "0.2.13",
4
4
  "description": "Longzai Intelligence oxlint 工具函数库",
5
5
  "keywords": [
6
6
  "guards",