From 4c24783c4aba9bd41388d9ba0fa5dc869e7e6362 Mon Sep 17 00:00:00 2001 From: Benjamin Charity Date: Fri, 2 Feb 2024 22:44:12 -0500 Subject: [PATCH] refactor: remove rome for prettier --- .github/workflows/publish.yml | 2 +- .github/workflows/test.yml | 2 - package.json | 13 +++--- pnpm-lock.yaml | 75 +++-------------------------------- rome.json | 13 ------ 5 files changed, 12 insertions(+), 93 deletions(-) delete mode 100644 rome.json diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ebaa2a0..d39229b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,7 +20,7 @@ jobs: with: version: 8 - name: Run install - run: pnpm ci + run: pnpm i - name: Run build run: pnpm run build - name: Run publish diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9042123..4c4e496 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,8 +23,6 @@ jobs: version: 8 - name: Run install run: pnpm i - - name: Run lint - run: pnpm run lint - name: Run unit tests run: pnpm test - name: Run build diff --git a/package.json b/package.json index e0a0100..35f7614 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "test": "vitest", "coverage": "vitest run --coverage", "typecheck": "tsc --noEmit", - "lint": "rome ci src tests" + "format": "prettier --write ." }, "repository": { "type": "git", @@ -30,15 +30,14 @@ }, "homepage": "https://github.com/benjamincharity/rehype-scroll-to-top#readme", "devDependencies": { - "@types/hast": "3.0.4", + "@types/hast": "^3.0.4", "@types/node": "^20.11.16", - "@vitest/coverage-v8": "1.2.2", - "hast-util-to-html": "9.0.0", + "@vitest/coverage-v8": "^1.2.2", + "hast-util-to-html": "^9.0.0", "hastscript": "^9.0.0", - "prettier": "3.2.4", - "rehype-minify-whitespace": "6.0.0", + "prettier": "^3.2.4", + "rehype-minify-whitespace": "^6.0.0", "rimraf": "^5.0.5", - "rome": "^12.1.3", "to-vfile": "^8.0.0", "typescript": "^5.3.3", "vite": "^5.0.12", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c2a649c..95450ef 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -14,32 +14,29 @@ dependencies: devDependencies: '@types/hast': - specifier: 3.0.4 + specifier: ^3.0.4 version: 3.0.4 '@types/node': specifier: ^20.11.16 version: 20.11.16 '@vitest/coverage-v8': - specifier: 1.2.2 + specifier: ^1.2.2 version: 1.2.2(vitest@1.2.2) hast-util-to-html: - specifier: 9.0.0 + specifier: ^9.0.0 version: 9.0.0 hastscript: specifier: ^9.0.0 version: 9.0.0 prettier: - specifier: 3.2.4 + specifier: ^3.2.4 version: 3.2.4 rehype-minify-whitespace: - specifier: 6.0.0 + specifier: ^6.0.0 version: 6.0.0 rimraf: specifier: ^5.0.5 version: 5.0.5 - rome: - specifier: ^12.1.3 - version: 12.1.3 to-vfile: specifier: ^8.0.0 version: 8.0.0 @@ -466,54 +463,6 @@ packages: dev: true optional: true - /@rometools/cli-darwin-arm64@12.1.3: - resolution: {integrity: sha512-AmFTUDYjBuEGQp/Wwps+2cqUr+qhR7gyXAUnkL5psCuNCz3807TrUq/ecOoct5MIavGJTH6R4aaSL6+f+VlBEg==} - cpu: [arm64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@rometools/cli-darwin-x64@12.1.3: - resolution: {integrity: sha512-k8MbWna8q4LRlb005N2X+JS1UQ+s3ZLBBvwk4fP8TBxlAJXUz17jLLu/Fi+7DTTEmMhM84TWj4FDKW+rNar28g==} - cpu: [x64] - os: [darwin] - requiresBuild: true - dev: true - optional: true - - /@rometools/cli-linux-arm64@12.1.3: - resolution: {integrity: sha512-X/uLhJ2/FNA3nu5TiyeNPqiD3OZoFfNfRvw6a3ut0jEREPvEn72NI7WPijH/gxSz55znfQ7UQ6iM4DZumUknJg==} - cpu: [arm64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rometools/cli-linux-x64@12.1.3: - resolution: {integrity: sha512-csP17q1eWiUXx9z6Jr/JJPibkplyKIwiWPYNzvPCGE8pHlKhwZj3YHRuu7Dm/4EOqx0XFIuqqWZUYm9bkIC8xg==} - cpu: [x64] - os: [linux] - requiresBuild: true - dev: true - optional: true - - /@rometools/cli-win32-arm64@12.1.3: - resolution: {integrity: sha512-RymHWeod57EBOJY4P636CgUwYA6BQdkQjh56XKk4pLEHO6X1bFyMet2XL7KlHw5qOTalzuzf5jJqUs+vf3jdXQ==} - cpu: [arm64] - os: [win32] - requiresBuild: true - dev: true - optional: true - - /@rometools/cli-win32-x64@12.1.3: - resolution: {integrity: sha512-yHSKYidqJMV9nADqg78GYA+cZ0hS1twANAjiFibQdXj9aGzD+s/IzIFEIi/U/OBLvWYg/SCw0QVozi2vTlKFDQ==} - cpu: [x64] - os: [win32] - requiresBuild: true - dev: true - optional: true - /@sinclair/typebox@0.27.8: resolution: {integrity: sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA==} dev: true @@ -1397,20 +1346,6 @@ packages: fsevents: 2.3.3 dev: true - /rome@12.1.3: - resolution: {integrity: sha512-e+ff72hxDpe/t5/Us7YRBVw3PBET7SeczTQNn6tvrWdrCaAw3qOukQQ+tDCkyFtS4yGsnhjrJbm43ctNbz27Yg==} - engines: {node: '>=14.*'} - hasBin: true - requiresBuild: true - optionalDependencies: - '@rometools/cli-darwin-arm64': 12.1.3 - '@rometools/cli-darwin-x64': 12.1.3 - '@rometools/cli-linux-arm64': 12.1.3 - '@rometools/cli-linux-x64': 12.1.3 - '@rometools/cli-win32-arm64': 12.1.3 - '@rometools/cli-win32-x64': 12.1.3 - dev: true - /semver@7.5.4: resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==} engines: {node: '>=10'} diff --git a/rome.json b/rome.json deleted file mode 100644 index bcf22bf..0000000 --- a/rome.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "$schema": "./node_modules/rome/configuration_schema.json", - "linter": { - "enabled": true, - "rules": { - "recommended": true - } - }, - "formatter": { - "enabled": true, - "indentStyle": "space" - } -}