Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 94b4d49

Browse files
authored
refactor(experimental): add style:fix (#1568)
1 parent 5030000 commit 94b4d49

File tree

13 files changed

+16
-0
lines changed

13 files changed

+16
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"compile": "turbo run compile:js compile:typedefs",
99
"lint": "turbo run test:lint",
1010
"publish-packages": "turbo run publish-packages",
11+
"style:fix": "turbo run style:fix",
1112
"test": "turbo run test:unit:browser test:unit:node",
1213
"test:live-with-test-validator": "turbo run test:live-with-test-validator",
1314
"test:live-with-test-validator:setup": "./scripts/setup-test-validator.sh"

packages/addresses/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
3939
"prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short",
4040
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
41+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
4142
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
4243
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
4344
"test:treeshakability:browser": "agadoo dist/index.browser.js",

packages/assertions/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
3939
"prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short",
4040
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
41+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
4142
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
4243
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
4344
"test:treeshakability:browser": "agadoo dist/index.browser.js",

packages/fetch-impl/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"compile:js": "tsup",
3131
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
3232
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
33+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
3334
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
3435
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
3536
"test:treeshakability:browser": "agadoo dist/index.browser.js",

packages/instructions/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
3939
"prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short",
4040
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
41+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
4142
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
4243
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
4344
"test:treeshakability:browser": "agadoo dist/index.browser.js",

packages/keys/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
3939
"prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short",
4040
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
41+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
4142
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
4243
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
4344
"test:treeshakability:browser": "agadoo dist/index.browser.js",

packages/library/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
4242
"prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short",
4343
"publish-packages": "sed -i 's/@solana\\/web3\\.js-experimental/@solana\\/web3\\.js/g' package.json && sed -i 's/@solana\\/web3\\.js/@solana\\/web3\\.js-bak/g' ../library-legacy/package.json && pnpm publish --tag experimental --access public --no-git-checks && git reset --hard",
44+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
4445
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
4546
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
4647
"test:treeshakability:browser": "agadoo dist/index.browser.js",

packages/rpc-core/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --globalSetup test-config/test-validator-setup.js --globalTeardown test-config/test-validator-teardown.js --rootDir . --watch",
3939
"prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short",
4040
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
41+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
4142
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
4243
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
4344
"test:treeshakability:browser": "agadoo dist/index.browser.js",

packages/rpc-transport/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
3939
"prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short",
4040
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
41+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
4142
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
4243
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
4344
"test:treeshakability:browser": "agadoo dist/index.browser.js",

packages/transactions/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
3939
"prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short",
4040
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
41+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
4142
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
4243
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
4344
"test:treeshakability:browser": "agadoo dist/index.browser.js",

packages/webcrypto-ed25519-polyfill/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
3939
"prepublishOnly": "version-from-git --no-git-tag-version --template experimental.short",
4040
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
41+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
4142
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
4243
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
4344
"test:typecheck": "tsc --noEmit",

packages/ws-impl/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"compile:js": "tsup",
3131
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
3232
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --rootDir . --watch",
33+
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
3334
"test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
3435
"test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
3536
"test:treeshakability:browser": "agadoo dist/index.browser.js",

turbo.json

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
"dependsOn": ["build", "^publish-packages"],
4242
"outputs": []
4343
},
44+
"style:fix": {
45+
"inputs": ["src/**"],
46+
"outputs": []
47+
},
4448
"test:lint": {
4549
"inputs": ["src/**", "test/**"],
4650
"outputs": []

0 commit comments

Comments
 (0)