From d8ed6648b40740c8e207ba6955c9c0bf8c23e949 Mon Sep 17 00:00:00 2001 From: ziming Date: Sun, 8 Dec 2024 01:23:21 +0800 Subject: [PATCH] remove some stuffs from composer.json --- composer.json | 12 ++++-------- rector.php | 35 ----------------------------------- 2 files changed, 4 insertions(+), 43 deletions(-) delete mode 100644 rector.php diff --git a/composer.json b/composer.json index 7698d26..d891254 100644 --- a/composer.json +++ b/composer.json @@ -22,16 +22,15 @@ "archtechx/enums": "^1.0", "guzzlehttp/guzzle": "^7.0", "illuminate/contracts": "^11.0", - "spatie/laravel-package-tools": "^1.4.3", + "spatie/laravel-package-tools": "^1.16.6", "web-token/jwt-framework": "^4.0" }, "require-dev": { "nunomaduro/collision": "^8.0", "orchestra/testbench": "^9.0", - "rector/rector": "^1.0", - "spatie/laravel-ray": "^1.23", - "symfony/thanks": "^1.3", - "pestphp/pest": "^3.0" + "pestphp/pest": "^3.0", + "spatie/laravel-ray": "^1.37.1", + "symfony/thanks": "^1.3" }, "autoload": { "psr-4": { @@ -43,9 +42,6 @@ "Ziming\\LaravelMyinfoSg\\Tests\\": "tests" } }, - "scripts": { - "psalm": "vendor/bin/psalm" - }, "config": { "sort-packages": true, "allow-plugins": { diff --git a/rector.php b/rector.php deleted file mode 100644 index 51ab4a5..0000000 --- a/rector.php +++ /dev/null @@ -1,35 +0,0 @@ -paths([ - __DIR__ . '/src', - ]); - - // register a single rule - // $rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class); - - // $rectorConfig->phpstanConfig(__DIR__ . '/phpstan.neon'); - - // https://github.com/rectorphp/rector/blob/main/docs/auto_import_names.md - $rectorConfig->importNames(); - - // define sets of rules - $rectorConfig->sets([ - // DowngradeLevelSetList::DOWN_TO_PHP_81, - // LevelSetList::UP_TO_PHP_81, - // LaravelSetList::LARAVEL_90, - // SetList::CODE_QUALITY, - // SetList::DEAD_CODE, - // SetList::PRIVATIZATION, - // SetList::NAMING, - SetList::TYPE_DECLARATION, - // SetList::EARLY_RETURN, - //PHPUnitSetList::PHPUNIT_CODE_QUALITY, -// SetList::CODING_STYLE, - ]); -};