@nest-boot/eslint-plugin 7.0.4 → 7.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.
Files changed (44) hide show
  1. package/.turbo/turbo-build.log +1 -1
  2. package/CHANGELOG.md +6 -0
  3. package/dist/rules/graphql/graphql-field-config-from-types.d.ts +3 -1
  4. package/dist/rules/graphql/graphql-field-config-from-types.js +36 -36
  5. package/dist/rules/graphql/graphql-field-config-from-types.js.map +1 -1
  6. package/dist/rules/graphql/graphql-field-definite-assignment.d.ts +3 -1
  7. package/dist/rules/graphql/graphql-field-definite-assignment.js +13 -13
  8. package/dist/rules/graphql/graphql-field-definite-assignment.js.map +1 -1
  9. package/dist/rules/import/import-bullmq.d.ts +3 -1
  10. package/dist/rules/import/import-bullmq.js +4 -4
  11. package/dist/rules/import/import-bullmq.js.map +1 -1
  12. package/dist/rules/import/import-graphql.d.ts +3 -1
  13. package/dist/rules/import/import-graphql.js +4 -4
  14. package/dist/rules/import/import-graphql.js.map +1 -1
  15. package/dist/rules/import/import-mikro-orm.d.ts +3 -1
  16. package/dist/rules/import/import-mikro-orm.js +4 -4
  17. package/dist/rules/import/import-mikro-orm.js.map +1 -1
  18. package/dist/rules/index.d.ts +21 -7
  19. package/dist/rules/mikro-orm/entity-field-definite-assignment.d.ts +3 -1
  20. package/dist/rules/mikro-orm/entity-field-definite-assignment.js +10 -10
  21. package/dist/rules/mikro-orm/entity-field-definite-assignment.js.map +1 -1
  22. package/dist/rules/mikro-orm/entity-property-config-from-types.d.ts +3 -1
  23. package/dist/rules/mikro-orm/entity-property-config-from-types.js +105 -105
  24. package/dist/rules/mikro-orm/entity-property-config-from-types.js.map +1 -1
  25. package/dist/tsconfig.build.tsbuildinfo +1 -1
  26. package/dist/utils/createRule.d.ts +3 -1
  27. package/dist/utils/decorators.d.ts +16 -16
  28. package/dist/utils/decorators.js +16 -16
  29. package/package.json +12 -7
  30. package/src/rules/graphql/graphql-field-config-from-types.spec.ts +18 -18
  31. package/src/rules/graphql/graphql-field-config-from-types.ts +37 -37
  32. package/src/rules/graphql/graphql-field-definite-assignment.spec.ts +11 -11
  33. package/src/rules/graphql/graphql-field-definite-assignment.ts +13 -13
  34. package/src/rules/import/import-bullmq.spec.ts +9 -9
  35. package/src/rules/import/import-bullmq.ts +5 -4
  36. package/src/rules/import/import-graphql.spec.ts +8 -8
  37. package/src/rules/import/import-graphql.ts +4 -4
  38. package/src/rules/import/import-mikro-orm.spec.ts +8 -8
  39. package/src/rules/import/import-mikro-orm.ts +4 -4
  40. package/src/rules/mikro-orm/entity-field-definite-assignment.spec.ts +18 -18
  41. package/src/rules/mikro-orm/entity-field-definite-assignment.ts +10 -10
  42. package/src/rules/mikro-orm/entity-property-config-from-types.spec.ts +22 -22
  43. package/src/rules/mikro-orm/entity-property-config-from-types.ts +110 -109
  44. package/src/utils/decorators.ts +16 -16
@@ -1,10 +1,10 @@
1
1
  import { AST_NODE_TYPES, TSESTree } from "@typescript-eslint/utils";
2
2
 
3
3
  /**
4
- * 检查类是否有指定的装饰器
5
- * @param classDeclaration 类声明节点
6
- * @param decoratorNames 装饰器名称(可以是字符串或字符串数组)
7
- * @returns 是否有指定的装饰器
4
+ * Checks whether a class has the specified decorator(s).
5
+ * @param classDeclaration - The class declaration node.
6
+ * @param decoratorNames - Decorator name(s) (can be a string or an array of strings).
7
+ * @returns Whether the class has the specified decorator(s).
8
8
  */
9
9
  export function hasClassDecorator(
10
10
  classDeclaration: TSESTree.ClassDeclaration,
@@ -26,10 +26,10 @@ export function hasClassDecorator(
26
26
  }
27
27
 
28
28
  /**
29
- * 检查属性是否有指定的装饰器
30
- * @param propertyDefinition 属性定义节点
31
- * @param decoratorNames 装饰器名称(可以是字符串或字符串数组)
32
- * @returns 是否有指定的装饰器
29
+ * Checks whether a property has the specified decorator(s).
30
+ * @param propertyDefinition - The property definition node.
31
+ * @param decoratorNames - Decorator name(s) (can be a string or an array of strings).
32
+ * @returns Whether the property has the specified decorator(s).
33
33
  */
34
34
  export function hasPropertyDecorator(
35
35
  propertyDefinition: TSESTree.PropertyDefinition,
@@ -51,10 +51,10 @@ export function hasPropertyDecorator(
51
51
  }
52
52
 
53
53
  /**
54
- * 获取类的装饰器
55
- * @param classDeclaration 类声明节点
56
- * @param decoratorName 装饰器名称
57
- * @returns 装饰器节点,如果不存在则返回 null
54
+ * Gets a decorator from a class declaration.
55
+ * @param classDeclaration - The class declaration node.
56
+ * @param decoratorName - The decorator name.
57
+ * @returns The decorator node, or null if not found.
58
58
  */
59
59
  export function getClassDecorator(
60
60
  classDeclaration: TSESTree.ClassDeclaration,
@@ -72,10 +72,10 @@ export function getClassDecorator(
72
72
  }
73
73
 
74
74
  /**
75
- * 获取属性的装饰器
76
- * @param propertyDefinition 属性定义节点
77
- * @param decoratorName 装饰器名称
78
- * @returns 装饰器节点,如果不存在则返回 null
75
+ * Gets a decorator from a property definition.
76
+ * @param propertyDefinition - The property definition node.
77
+ * @param decoratorName - The decorator name.
78
+ * @returns The decorator node, or null if not found.
79
79
  */
80
80
  export function getPropertyDecorator(
81
81
  propertyDefinition: TSESTree.PropertyDefinition,