@nest-boot/eslint-plugin 7.0.5 → 7.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nest-boot/eslint-plugin",
3
- "version": "7.0.5",
3
+ "version": "7.0.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/nest-boot/nest-boot.git",
@@ -10,7 +10,7 @@
10
10
  "main": "./dist/index.js",
11
11
  "exports": "./dist/index.js",
12
12
  "dependencies": {
13
- "@typescript-eslint/utils": "^8.51.0"
13
+ "@typescript-eslint/utils": "^8.56.1"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "@typescript-eslint/parser": "^8.0.0",
@@ -22,16 +22,16 @@
22
22
  "@eslint/js": "^9.39.2",
23
23
  "@jest/globals": "^30.2.0",
24
24
  "@types/node": "^22.18.6",
25
- "@typescript-eslint/parser": "^8.51.0",
26
- "@typescript-eslint/rule-tester": "^8.51.0",
27
- "eslint": "^9.39.2",
25
+ "@typescript-eslint/parser": "^8.56.1",
26
+ "@typescript-eslint/rule-tester": "^8.56.1",
27
+ "eslint": "^9.39.3",
28
28
  "eslint-config-prettier": "^10.1.8",
29
29
  "eslint-plugin-simple-import-sort": "^12.1.1",
30
30
  "jest": "^29.7.0",
31
31
  "ts-jest": "^29.4.4",
32
32
  "typescript": "^5.9.3",
33
- "typescript-eslint": "^8.46.2",
34
- "@nest-boot/tsconfig": "^7.0.1"
33
+ "typescript-eslint": "^8.56.1",
34
+ "@nest-boot/tsconfig": "^7.0.2"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"
@@ -161,7 +161,7 @@ export default createRule<
161
161
  baseTypeNode.typeName.name === "Opt")
162
162
  ) {
163
163
  let inner = baseTypeNode.typeArguments?.params[0] ?? null;
164
- if (inner && inner.type === AST_NODE_TYPES.TSUnionType) {
164
+ if (inner?.type === AST_NODE_TYPES.TSUnionType) {
165
165
  const hasNullish = inner.types.some((t: TSESTree.TypeNode) => {
166
166
  return (
167
167
  t.type === AST_NODE_TYPES.TSNullKeyword ||
@@ -324,16 +324,12 @@ export default createRule<
324
324
  callExpr.arguments.length > 0
325
325
  ) {
326
326
  // If the first argument is an object expression (no type function)
327
- if (
328
- callExpr.arguments[0] &&
329
- callExpr.arguments[0].type === AST_NODE_TYPES.ObjectExpression
330
- ) {
327
+ if (callExpr.arguments[0]?.type === AST_NODE_TYPES.ObjectExpression) {
331
328
  optionsArg = callExpr.arguments[0];
332
329
  }
333
330
  // If the second argument is an object expression (has type function)
334
331
  else if (
335
- callExpr.arguments[1] &&
336
- callExpr.arguments[1].type === AST_NODE_TYPES.ObjectExpression
332
+ callExpr.arguments[1]?.type === AST_NODE_TYPES.ObjectExpression
337
333
  ) {
338
334
  optionsArg = callExpr.arguments[1];
339
335
  }
@@ -396,7 +396,7 @@ export default createRule<
396
396
  baseTypeNode.typeName.name === "Opt")
397
397
  ) {
398
398
  let inner = baseTypeNode.typeArguments?.params[0] ?? null;
399
- if (inner && inner.type === AST_NODE_TYPES.TSUnionType) {
399
+ if (inner?.type === AST_NODE_TYPES.TSUnionType) {
400
400
  const hasNullish = inner.types.some((t: TSESTree.TypeNode) => {
401
401
  return (
402
402
  t.type === AST_NODE_TYPES.TSNullKeyword ||
package/tsconfig.json CHANGED
@@ -3,7 +3,6 @@
3
3
  "compilerOptions": {
4
4
  "module": "NodeNext",
5
5
  "moduleResolution": "NodeNext",
6
- "baseUrl": ".",
7
6
  "paths": {
8
7
  "@/*": ["./src/*"]
9
8
  },