XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

chore: update eslint (#1373)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1373 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

895b9381
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

14 个文件 +128 -193
Modified .eslintrc +3 -3
@@ -15,17 +15,17 @@
15 15 "@typescript-eslint/restrict-template-expressions": "warn",
16 16 "@typescript-eslint/restrict-plus-operands": "warn",
17 17 "@typescript-eslint/no-unsafe-member-access": "warn",
18 "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
18 "@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "caughtErrors": "none" }],
19 19 "@typescript-eslint/no-misused-promises": "warn",
20 20 "@typescript-eslint/no-unsafe-argument": "error",
21 21 "@typescript-eslint/no-unsafe-call": "warn",
22 22 "@typescript-eslint/no-unsafe-assignment": "warn",
23 23 "@typescript-eslint/no-explicit-any": "warn",
24 "@typescript-eslint/no-loss-of-precision": "warn",
24 "no-loss-of-precision": "warn",
25 25 "@typescript-eslint/no-unnecessary-condition": "warn",
26 "@typescript-eslint/no-base-to-string": "off",
26 27 "no-case-declarations": "error",
27 28 "prettier/prettier": "error",
28 "@typescript-eslint/semi": "error",
29 29 "no-mixed-spaces-and-tabs": "error",
30 30 "require-await": "off",
31 31 "@typescript-eslint/require-await": "error"
Modified package-lock.json +104 -168
@@ -24,11 +24,11 @@
24 24 "winston-daily-rotate-file": "^5.0.0"
25 25 },
26 26 "devDependencies": {
27 "@typescript-eslint/eslint-plugin": "^7.18",
28 "@typescript-eslint/parser": "^7.18",
29 "eslint": "^8.56.0",
30 "eslint-plugin-prettier": "^5.2.3",
31 "prettier": "^3.4.2",
27 "@typescript-eslint/eslint-plugin": "^8.28.0",
28 "@typescript-eslint/parser": "^8.28.0",
29 "eslint": "^8",
30 "eslint-plugin-prettier": "^5.2.5",
31 "prettier": "^3.5.3",
32 32 "ts-node-dev": "^2.0.0",
33 33 "tsconfig-paths": "^4.2.0"
34 34 },
@@ -295,9 +295,9 @@
295 295 }
296 296 },
297 297 "node_modules/@pkgr/core": {
298 "version": "0.1.1",
299 "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz",
300 "integrity": "sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==",
298 "version": "0.2.0",
299 "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.0.tgz",
300 "integrity": "sha512-vsJDAkYR6qCPu+ioGScGiMYR7LvZYIXh/dlQeviqoTWNCVfKTLYD/LkNWH4Mxsv2a5vpIRc77FN5DnmK1eBggQ==",
301 301 "dev": true,
302 302 "license": "MIT",
303 303 "engines": {
@@ -477,80 +477,72 @@
477 477 }
478 478 },
479 479 "node_modules/@typescript-eslint/eslint-plugin": {
480 "version": "7.18.0",
481 "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz",
482 "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==",
480 "version": "8.28.0",
481 "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.28.0.tgz",
482 "integrity": "sha512-lvFK3TCGAHsItNdWZ/1FkvpzCxTHUVuFrdnOGLMa0GGCFIbCgQWVk3CzCGdA7kM3qGVc+dfW9tr0Z/sHnGDFyg==",
483 483 "dev": true,
484 484 "license": "MIT",
485 485 "dependencies": {
486 486 "@eslint-community/regexpp": "^4.10.0",
487 "@typescript-eslint/scope-manager": "7.18.0",
488 "@typescript-eslint/type-utils": "7.18.0",
489 "@typescript-eslint/utils": "7.18.0",
490 "@typescript-eslint/visitor-keys": "7.18.0",
487 "@typescript-eslint/scope-manager": "8.28.0",
488 "@typescript-eslint/type-utils": "8.28.0",
489 "@typescript-eslint/utils": "8.28.0",
490 "@typescript-eslint/visitor-keys": "8.28.0",
491 491 "graphemer": "^1.4.0",
492 492 "ignore": "^5.3.1",
493 493 "natural-compare": "^1.4.0",
494 "ts-api-utils": "^1.3.0"
494 "ts-api-utils": "^2.0.1"
495 495 },
496 496 "engines": {
497 "node": "^18.18.0 || >=20.0.0"
497 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
498 498 },
499 499 "funding": {
500 500 "type": "opencollective",
501 501 "url": "https://opencollective.com/typescript-eslint"
502 502 },
503 503 "peerDependencies": {
504 "@typescript-eslint/parser": "^7.0.0",
505 "eslint": "^8.56.0"
506 },
507 "peerDependenciesMeta": {
508 "typescript": {
509 "optional": true
510 }
504 "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0",
505 "eslint": "^8.57.0 || ^9.0.0",
506 "typescript": ">=4.8.4 <5.9.0"
511 507 }
512 508 },
513 509 "node_modules/@typescript-eslint/parser": {
514 "version": "7.18.0",
515 "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.18.0.tgz",
516 "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==",
510 "version": "8.28.0",
511 "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.28.0.tgz",
512 "integrity": "sha512-LPcw1yHD3ToaDEoljFEfQ9j2xShY367h7FZ1sq5NJT9I3yj4LHer1Xd1yRSOdYy9BpsrxU7R+eoDokChYM53lQ==",
517 513 "dev": true,
518 "license": "BSD-2-Clause",
514 "license": "MIT",
519 515 "dependencies": {
520 "@typescript-eslint/scope-manager": "7.18.0",
521 "@typescript-eslint/types": "7.18.0",
522 "@typescript-eslint/typescript-estree": "7.18.0",
523 "@typescript-eslint/visitor-keys": "7.18.0",
516 "@typescript-eslint/scope-manager": "8.28.0",
517 "@typescript-eslint/types": "8.28.0",
518 "@typescript-eslint/typescript-estree": "8.28.0",
519 "@typescript-eslint/visitor-keys": "8.28.0",
524 520 "debug": "^4.3.4"
525 521 },
526 522 "engines": {
527 "node": "^18.18.0 || >=20.0.0"
523 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
528 524 },
529 525 "funding": {
530 526 "type": "opencollective",
531 527 "url": "https://opencollective.com/typescript-eslint"
532 528 },
533 529 "peerDependencies": {
534 "eslint": "^8.56.0"
535 },
536 "peerDependenciesMeta": {
537 "typescript": {
538 "optional": true
539 }
530 "eslint": "^8.57.0 || ^9.0.0",
531 "typescript": ">=4.8.4 <5.9.0"
540 532 }
541 533 },
542 534 "node_modules/@typescript-eslint/scope-manager": {
543 "version": "7.18.0",
544 "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz",
545 "integrity": "sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==",
535 "version": "8.28.0",
536 "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.28.0.tgz",
537 "integrity": "sha512-u2oITX3BJwzWCapoZ/pXw6BCOl8rJP4Ij/3wPoGvY8XwvXflOzd1kLrDUUUAIEdJSFh+ASwdTHqtan9xSg8buw==",
546 538 "dev": true,
547 539 "license": "MIT",
548 540 "dependencies": {
549 "@typescript-eslint/types": "7.18.0",
550 "@typescript-eslint/visitor-keys": "7.18.0"
541 "@typescript-eslint/types": "8.28.0",
542 "@typescript-eslint/visitor-keys": "8.28.0"
551 543 },
552 544 "engines": {
553 "node": "^18.18.0 || >=20.0.0"
545 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
554 546 },
555 547 "funding": {
556 548 "type": "opencollective",
@@ -558,41 +550,37 @@
558 550 }
559 551 },
560 552 "node_modules/@typescript-eslint/type-utils": {
561 "version": "7.18.0",
562 "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz",
563 "integrity": "sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==",
553 "version": "8.28.0",
554 "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.28.0.tgz",
555 "integrity": "sha512-oRoXu2v0Rsy/VoOGhtWrOKDiIehvI+YNrDk5Oqj40Mwm0Yt01FC/Q7nFqg088d3yAsR1ZcZFVfPCTTFCe/KPwg==",
564 556 "dev": true,
565 557 "license": "MIT",
566 558 "dependencies": {
567 "@typescript-eslint/typescript-estree": "7.18.0",
568 "@typescript-eslint/utils": "7.18.0",
559 "@typescript-eslint/typescript-estree": "8.28.0",
560 "@typescript-eslint/utils": "8.28.0",
569 561 "debug": "^4.3.4",
570 "ts-api-utils": "^1.3.0"
562 "ts-api-utils": "^2.0.1"
571 563 },
572 564 "engines": {
573 "node": "^18.18.0 || >=20.0.0"
565 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
574 566 },
575 567 "funding": {
576 568 "type": "opencollective",
577 569 "url": "https://opencollective.com/typescript-eslint"
578 570 },
579 571 "peerDependencies": {
580 "eslint": "^8.56.0"
581 },
582 "peerDependenciesMeta": {
583 "typescript": {
584 "optional": true
585 }
572 "eslint": "^8.57.0 || ^9.0.0",
573 "typescript": ">=4.8.4 <5.9.0"
586 574 }
587 575 },
588 576 "node_modules/@typescript-eslint/types": {
589 "version": "7.18.0",
590 "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.18.0.tgz",
591 "integrity": "sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==",
577 "version": "8.28.0",
578 "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.28.0.tgz",
579 "integrity": "sha512-bn4WS1bkKEjx7HqiwG2JNB3YJdC1q6Ue7GyGlwPHyt0TnVq6TtD/hiOdTZt71sq0s7UzqBFXD8t8o2e63tXgwA==",
592 580 "dev": true,
593 581 "license": "MIT",
594 582 "engines": {
595 "node": "^18.18.0 || >=20.0.0"
583 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
596 584 },
597 585 "funding": {
598 586 "type": "opencollective",
@@ -600,75 +588,87 @@
600 588 }
601 589 },
602 590 "node_modules/@typescript-eslint/typescript-estree": {
603 "version": "7.18.0",
604 "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz",
605 "integrity": "sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==",
591 "version": "8.28.0",
592 "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.28.0.tgz",
593 "integrity": "sha512-H74nHEeBGeklctAVUvmDkxB1mk+PAZ9FiOMPFncdqeRBXxk1lWSYraHw8V12b7aa6Sg9HOBNbGdSHobBPuQSuA==",
606 594 "dev": true,
607 "license": "BSD-2-Clause",
595 "license": "MIT",
608 596 "dependencies": {
609 "@typescript-eslint/types": "7.18.0",
610 "@typescript-eslint/visitor-keys": "7.18.0",
597 "@typescript-eslint/types": "8.28.0",
598 "@typescript-eslint/visitor-keys": "8.28.0",
611 599 "debug": "^4.3.4",
612 "globby": "^11.1.0",
600 "fast-glob": "^3.3.2",
613 601 "is-glob": "^4.0.3",
614 602 "minimatch": "^9.0.4",
615 603 "semver": "^7.6.0",
616 "ts-api-utils": "^1.3.0"
604 "ts-api-utils": "^2.0.1"
617 605 },
618 606 "engines": {
619 "node": "^18.18.0 || >=20.0.0"
607 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
620 608 },
621 609 "funding": {
622 610 "type": "opencollective",
623 611 "url": "https://opencollective.com/typescript-eslint"
624 612 },
625 "peerDependenciesMeta": {
626 "typescript": {
627 "optional": true
628 }
613 "peerDependencies": {
614 "typescript": ">=4.8.4 <5.9.0"
629 615 }
630 616 },
631 617 "node_modules/@typescript-eslint/utils": {
632 "version": "7.18.0",
633 "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.18.0.tgz",
634 "integrity": "sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==",
618 "version": "8.28.0",
619 "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.28.0.tgz",
620 "integrity": "sha512-OELa9hbTYciYITqgurT1u/SzpQVtDLmQMFzy/N8pQE+tefOyCWT79jHsav294aTqV1q1u+VzqDGbuujvRYaeSQ==",
635 621 "dev": true,
636 622 "license": "MIT",
637 623 "dependencies": {
638 624 "@eslint-community/eslint-utils": "^4.4.0",
639 "@typescript-eslint/scope-manager": "7.18.0",
640 "@typescript-eslint/types": "7.18.0",
641 "@typescript-eslint/typescript-estree": "7.18.0"
625 "@typescript-eslint/scope-manager": "8.28.0",
626 "@typescript-eslint/types": "8.28.0",
627 "@typescript-eslint/typescript-estree": "8.28.0"
642 628 },
643 629 "engines": {
644 "node": "^18.18.0 || >=20.0.0"
630 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
645 631 },
646 632 "funding": {
647 633 "type": "opencollective",
648 634 "url": "https://opencollective.com/typescript-eslint"
649 635 },
650 636 "peerDependencies": {
651 "eslint": "^8.56.0"
637 "eslint": "^8.57.0 || ^9.0.0",
638 "typescript": ">=4.8.4 <5.9.0"
652 639 }
653 640 },
654 641 "node_modules/@typescript-eslint/visitor-keys": {
655 "version": "7.18.0",
656 "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz",
657 "integrity": "sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==",
642 "version": "8.28.0",
643 "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.28.0.tgz",
644 "integrity": "sha512-hbn8SZ8w4u2pRwgQ1GlUrPKE+t2XvcCW5tTRF7j6SMYIuYG37XuzIW44JCZPa36evi0Oy2SnM664BlIaAuQcvg==",
658 645 "dev": true,
659 646 "license": "MIT",
660 647 "dependencies": {
661 "@typescript-eslint/types": "7.18.0",
662 "eslint-visitor-keys": "^3.4.3"
648 "@typescript-eslint/types": "8.28.0",
649 "eslint-visitor-keys": "^4.2.0"
663 650 },
664 651 "engines": {
665 "node": "^18.18.0 || >=20.0.0"
652 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
666 653 },
667 654 "funding": {
668 655 "type": "opencollective",
669 656 "url": "https://opencollective.com/typescript-eslint"
670 657 }
671 658 },
659 "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": {
660 "version": "4.2.0",
661 "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-4.2.0.tgz",
662 "integrity": "sha512-UyLnSehNt62FFhSwjZlHmeokpRK59rcz29j+F1/aDgbkbRTk7wIc9XzdoasMUbRNKDM0qQt/+BJ4BrpFeABemw==",
663 "dev": true,
664 "license": "Apache-2.0",
665 "engines": {
666 "node": "^18.18.0 || ^20.9.0 || >=21.1.0"
667 },
668 "funding": {
669 "url": "https://opencollective.com/eslint"
670 }
671 },
672 672 "node_modules/@ungap/structured-clone": {
673 673 "version": "1.3.0",
674 674 "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",
@@ -794,16 +794,6 @@
794 794 "dev": true,
795 795 "license": "Python-2.0"
796 796 },
797 "node_modules/array-union": {
798 "version": "2.1.0",
799 "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",
800 "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",
801 "dev": true,
802 "license": "MIT",
803 "engines": {
804 "node": ">=8"
805 }
806 },
807 797 "node_modules/async": {
808 798 "version": "3.2.6",
809 799 "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz",
@@ -1277,19 +1267,6 @@
1277 1267 "node": ">=0.3.1"
1278 1268 }
1279 1269 },
1280 "node_modules/dir-glob": {
1281 "version": "3.0.1",
1282 "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
1283 "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
1284 "dev": true,
1285 "license": "MIT",
1286 "dependencies": {
1287 "path-type": "^4.0.0"
1288 },
1289 "engines": {
1290 "node": ">=8"
1291 }
1292 },
1293 1270 "node_modules/doctrine": {
1294 1271 "version": "3.0.0",
1295 1272 "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",
@@ -1470,14 +1447,14 @@
1470 1447 }
1471 1448 },
1472 1449 "node_modules/eslint-plugin-prettier": {
1473 "version": "5.2.3",
1474 "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.3.tgz",
1475 "integrity": "sha512-qJ+y0FfCp/mQYQ/vWQ3s7eUlFEL4PyKfAJxsnYTJ4YT73nsJBWqmEpFryxV9OeUiqmsTsYJ5Y+KDNaeP31wrRw==",
1450 "version": "5.2.5",
1451 "resolved": "https://registry.npmjs.org/eslint-plugin-prettier/-/eslint-plugin-prettier-5.2.5.tgz",
1452 "integrity": "sha512-IKKP8R87pJyMl7WWamLgPkloB16dagPIdd2FjBDbyRYPKo93wS/NbCOPh6gH+ieNLC+XZrhJt/kWj0PS/DFdmg==",
1476 1453 "dev": true,
1477 1454 "license": "MIT",
1478 1455 "dependencies": {
1479 1456 "prettier-linter-helpers": "^1.0.0",
1480 "synckit": "^0.9.1"
1457 "synckit": "^0.10.2"
1481 1458 },
1482 1459 "engines": {
1483 1460 "node": "^14.18.0 || >=16.0.0"
@@ -1488,7 +1465,7 @@
1488 1465 "peerDependencies": {
1489 1466 "@types/eslint": ">=8.0.0",
1490 1467 "eslint": ">=8.0.0",
1491 "eslint-config-prettier": "*",
1468 "eslint-config-prettier": ">= 7.0.0 <10.0.0 || >=10.1.0",
1492 1469 "prettier": ">=3.0.0"
1493 1470 },
1494 1471 "peerDependenciesMeta": {
@@ -2030,27 +2007,6 @@
2030 2007 "url": "https://github.com/sponsors/sindresorhus"
2031 2008 }
2032 2009 },
2033 "node_modules/globby": {
2034 "version": "11.1.0",
2035 "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",
2036 "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",
2037 "dev": true,
2038 "license": "MIT",
2039 "dependencies": {
2040 "array-union": "^2.1.0",
2041 "dir-glob": "^3.0.1",
2042 "fast-glob": "^3.2.9",
2043 "ignore": "^5.2.0",
2044 "merge2": "^1.4.1",
2045 "slash": "^3.0.0"
2046 },
2047 "engines": {
2048 "node": ">=10"
2049 },
2050 "funding": {
2051 "url": "https://github.com/sponsors/sindresorhus"
2052 }
2053 },
2054 2010 "node_modules/gopd": {
2055 2011 "version": "1.2.0",
2056 2012 "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz",
@@ -2950,16 +2906,6 @@
2950 2906 "node": ">=16"
2951 2907 }
2952 2908 },
2953 "node_modules/path-type": {
2954 "version": "4.0.0",
2955 "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
2956 "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
2957 "dev": true,
2958 "license": "MIT",
2959 "engines": {
2960 "node": ">=8"
2961 }
2962 },
2963 2909 "node_modules/picomatch": {
2964 2910 "version": "2.3.1",
2965 2911 "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
@@ -3475,16 +3421,6 @@
3475 3421 "is-arrayish": "^0.3.1"
3476 3422 }
3477 3423 },
3478 "node_modules/slash": {
3479 "version": "3.0.0",
3480 "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
3481 "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
3482 "dev": true,
3483 "license": "MIT",
3484 "engines": {
3485 "node": ">=8"
3486 }
3487 },
3488 3424 "node_modules/source-map": {
3489 3425 "version": "0.6.1",
3490 3426 "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",
@@ -3615,14 +3551,14 @@
3615 3551 }
3616 3552 },
3617 3553 "node_modules/synckit": {
3618 "version": "0.9.2",
3619 "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.9.2.tgz",
3620 "integrity": "sha512-vrozgXDQwYO72vHjUb/HnFbQx1exDjoKzqx23aXEg2a9VIg2TSFZ8FmeZpTjUCFMYw7mpX4BE2SFu8wI7asYsw==",
3554 "version": "0.10.3",
3555 "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.10.3.tgz",
3556 "integrity": "sha512-R1urvuyiTaWfeCggqEvpDJwAlDVdsT9NM+IP//Tk2x7qHCkSvBk/fwFgw/TLAHzZlrAnnazMcRw0ZD8HlYFTEQ==",
3621 3557 "dev": true,
3622 3558 "license": "MIT",
3623 3559 "dependencies": {
3624 "@pkgr/core": "^0.1.0",
3625 "tslib": "^2.6.2"
3560 "@pkgr/core": "^0.2.0",
3561 "tslib": "^2.8.1"
3626 3562 },
3627 3563 "engines": {
3628 3564 "node": "^14.18.0 || >=16.0.0"
@@ -3744,16 +3680,16 @@
3744 3680 }
3745 3681 },
3746 3682 "node_modules/ts-api-utils": {
3747 "version": "1.4.3",
3748 "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.4.3.tgz",
3749 "integrity": "sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==",
3683 "version": "2.1.0",
3684 "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.1.0.tgz",
3685 "integrity": "sha512-CUgTZL1irw8u29bzrOD/nH85jqyc74D6SshFgujOIA7osm2Rz7dYH77agkx7H4FBNxDq7Cjf+IjaX/8zwFW+ZQ==",
3750 3686 "dev": true,
3751 3687 "license": "MIT",
3752 3688 "engines": {
3753 "node": ">=16"
3689 "node": ">=18.12"
3754 3690 },
3755 3691 "peerDependencies": {
3756 "typescript": ">=4.2.0"
3692 "typescript": ">=4.8.4"
3757 3693 }
3758 3694 },
3759 3695 "node_modules/ts-node": {
Modified package.json +5 -5
@@ -29,11 +29,11 @@
29 29 "winston-daily-rotate-file": "^5.0.0"
30 30 },
31 31 "devDependencies": {
32 "@typescript-eslint/eslint-plugin": "^7.18",
33 "@typescript-eslint/parser": "^7.18",
34 "eslint": "^8.56.0",
35 "eslint-plugin-prettier": "^5.2.3",
36 "prettier": "^3.4.2",
32 "@typescript-eslint/eslint-plugin": "^8.28.0",
33 "@typescript-eslint/parser": "^8.28.0",
34 "eslint": "^8",
35 "eslint-plugin-prettier": "^5.2.5",
36 "prettier": "^3.5.3",
37 37 "ts-node-dev": "^2.0.0",
38 38 "tsconfig-paths": "^4.2.0"
39 39 },
Modified src/controllers/stats/viewController.ts +1 -1
@@ -17,7 +17,7 @@ const viewController: RequestHandler = async (req, res) => {
17 17 for (const item of inventory.XPInfo) {
18 18 const weaponIndex = responseJson.Weapons.findIndex(element => element.type == item.ItemType);
19 19 if (weaponIndex !== -1) {
20 responseJson.Weapons[weaponIndex].xp == item.XP;
20 responseJson.Weapons[weaponIndex].xp = item.XP;
21 21 } else {
22 22 responseJson.Weapons.push({ type: item.ItemType, xp: item.XP });
23 23 }
Modified src/models/guildModel.ts +2 -2
@@ -194,12 +194,12 @@ type GuildDocumentProps = {
194 194 DojoComponents: Types.DocumentArray<IDojoComponentDatabase>;
195 195 };
196 196
197 // eslint-disable-next-line @typescript-eslint/ban-types
197 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
198 198 type GuildModel = Model<IGuildDatabase, {}, GuildDocumentProps>;
199 199
200 200 export const Guild = model<IGuildDatabase, GuildModel>("Guild", guildSchema);
201 201
202 // eslint-disable-next-line @typescript-eslint/ban-types
202 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
203 203 export type TGuildDatabaseDocument = Document<unknown, {}, IGuildDatabase> &
204 204 Omit<
205 205 IGuildDatabase & {
Modified src/models/inventoryModels/inventoryModel.ts +2 -2
@@ -1525,12 +1525,12 @@ export type InventoryDocumentProps = {
1525 1525 CrewShipSalvagedWeaponsSkins: Types.DocumentArray<IUpgradeDatabase>;
1526 1526 } & { [K in TEquipmentKey]: Types.DocumentArray<IEquipmentDatabase> };
1527 1527
1528 // eslint-disable-next-line @typescript-eslint/ban-types
1528 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1529 1529 type InventoryModelType = Model<IInventoryDatabase, {}, InventoryDocumentProps>;
1530 1530
1531 1531 export const Inventory = model<IInventoryDatabase, InventoryModelType>("Inventory", inventorySchema);
1532 1532
1533 // eslint-disable-next-line @typescript-eslint/ban-types
1533 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
1534 1534 export type TInventoryDatabaseDocument = Document<unknown, {}, IInventoryDatabase> &
1535 1535 Omit<
1536 1536 IInventoryDatabase & {
Modified src/models/inventoryModels/loadoutModel.ts +2 -2
@@ -95,12 +95,12 @@ type loadoutDocumentProps = {
95 95 DRIFTER: Types.DocumentArray<ILoadoutConfigDatabase>;
96 96 };
97 97
98 // eslint-disable-next-line @typescript-eslint/ban-types
98 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
99 99 type loadoutModelType = Model<ILoadoutDatabase, {}, loadoutDocumentProps>;
100 100
101 101 export const Loadout = model<ILoadoutDatabase, loadoutModelType>("Loadout", loadoutSchema);
102 102
103 // eslint-disable-next-line @typescript-eslint/ban-types
103 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
104 104 export type TLoadoutDatabaseDocument = Document<unknown, {}, ILoadoutDatabase> &
105 105 Omit<
106 106 ILoadoutDatabase & {
Modified src/models/leaderboardModel.ts +1 -1
@@ -20,7 +20,7 @@ leaderboardEntrySchema.index({ expiry: 1 }, { expireAfterSeconds: 0 }); // With
20 20
21 21 export const Leaderboard = model<ILeaderboardEntryDatabase>("Leaderboard", leaderboardEntrySchema);
22 22
23 // eslint-disable-next-line @typescript-eslint/ban-types
23 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
24 24 export type TLeaderboardEntryDocument = Document<unknown, {}, ILeaderboardEntryDatabase> & {
25 25 _id: Types.ObjectId;
26 26 __v: number;
Modified src/models/shipModel.ts +1 -1
@@ -48,7 +48,7 @@ shipSchema.set("toObject", {
48 48
49 49 export const Ship = model("Ships", shipSchema);
50 50
51 // eslint-disable-next-line @typescript-eslint/ban-types
51 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
52 52 export type TShipDatabaseDocument = Document<unknown, {}, IShipDatabase> &
53 53 IShipDatabase & {
54 54 _id: Types.ObjectId;
Modified src/models/statsModel.ts +1 -1
@@ -112,7 +112,7 @@ statsSchema.index({ accountOwnerId: 1 }, { unique: true });
112 112
113 113 export const Stats = model<IStatsDatabase>("Stats", statsSchema);
114 114
115 // eslint-disable-next-line @typescript-eslint/ban-types
115 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
116 116 export type TStatsDatabaseDocument = Document<unknown, {}, IStatsDatabase> & {
117 117 _id: Types.ObjectId;
118 118 __v: number;
Modified src/services/loginService.ts +1 -1
@@ -61,7 +61,7 @@ export const createPersonalRooms = async (accountId: Types.ObjectId, shipId: Typ
61 61 await personalRooms.save();
62 62 };
63 63
64 // eslint-disable-next-line @typescript-eslint/ban-types
64 // eslint-disable-next-line @typescript-eslint/no-empty-object-type
65 65 export type TAccountDocument = Document<unknown, {}, IDatabaseAccountJson> &
66 66 IDatabaseAccountJson & { _id: Types.ObjectId; __v: number };
67 67
Modified src/services/saveLoadoutService.ts +1 -2
@@ -28,8 +28,7 @@ export const handleInventoryItemConfigChange = async (
28 28 ): Promise<string | void> => {
29 29 const inventory = await getInventory(accountId);
30 30
31 for (const [_equipmentName, _equipment] of Object.entries(equipmentChanges)) {
32 const equipment = _equipment as ISaveLoadoutRequestNoUpgradeVer[keyof ISaveLoadoutRequestNoUpgradeVer];
31 for (const [_equipmentName, equipment] of Object.entries(equipmentChanges)) {
33 32 const equipmentName = _equipmentName as keyof ISaveLoadoutRequestNoUpgradeVer;
34 33
35 34 if (isEmptyObject(equipment)) {
Modified src/types/personalRoomsTypes.ts +2 -2
Modified src/types/saveLoadoutTypes.ts +2 -2