forked from MystenLabs/sui
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add linting for all dapps and sdk packages (MystenLabs#12507)
## Description This adds eslint and prettier for all files in the `sdk` and `dapps` directories. It also standardizes the prettier configs to apply consistent formatting across all directories. ## Test Plan How did you test the new or updated feature? --- If your changes are not user-facing and not a breaking change, you can skip the following section. Otherwise, please indicate what changed, and then add to the Release Notes section as highlighted during the release process. ### Type of Change (Check all that apply) - [ ] protocol change - [ ] user-visible impact - [ ] breaking change for a client SDKs - [ ] breaking change for FNs (FN binary must upgrade) - [ ] breaking change for validators or node operators (must upgrade binaries) - [ ] breaking change for on-chain data layout - [ ] necessitate either a data wipe or data migration ### Release notes
- Loading branch information
1 parent
0a8837a
commit efc8301
Showing
1,061 changed files
with
60,790 additions
and
67,794 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,47 @@ | ||
{ | ||
"name": "@mysten/core", | ||
"main": "src/index.ts", | ||
"private": true, | ||
"sideEffects": false, | ||
"author": "Mysten Labs <build@mystenlabs.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "github.com:MystenLabs/sui.git" | ||
}, | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"prettier:check": "prettier -c --ignore-unknown .", | ||
"prettier:fix": "prettier -w --ignore-unknown .", | ||
"prettier:fix:watch": "onchange '**' -i -f add -f change -j 5 -- prettier -w --ignore-unknown {{file}}", | ||
"eslint:check": "eslint --max-warnings=0 .", | ||
"eslint:fix": "pnpm run eslint:check --fix", | ||
"lint": "pnpm run eslint:check && pnpm run prettier:check", | ||
"lint:fix": "pnpm run eslint:fix && pnpm run prettier:fix", | ||
"test": "vitest run", | ||
"test:watch": "vitest" | ||
}, | ||
"dependencies": { | ||
"@amplitude/analytics-client-common": "^0.7.0", | ||
"@amplitude/analytics-core": "^0.13.3", | ||
"@amplitude/analytics-types": "^0.20.0", | ||
"@growthbook/growthbook-react": "^0.15.0", | ||
"@mysten/sui.js": "workspace:*", | ||
"@sentry/react": "^7.47.0", | ||
"@tanstack/react-query": "^4.29.3", | ||
"bignumber.js": "^9.1.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"vanilla-cookieconsent": "^2.9.1" | ||
}, | ||
"devDependencies": { | ||
"@headlessui/tailwindcss": "^0.1.3", | ||
"@tailwindcss/aspect-ratio": "^0.4.2", | ||
"@tailwindcss/forms": "^0.5.3", | ||
"@types/react": "^18.0.35", | ||
"postcss": "^8.4.24", | ||
"tailwindcss": "^3.3.1", | ||
"typescript": "^5.0.4", | ||
"vite": "^4.2.3", | ||
"vitest": "^0.32.0" | ||
} | ||
"name": "@mysten/core", | ||
"main": "src/index.ts", | ||
"private": true, | ||
"sideEffects": false, | ||
"author": "Mysten Labs <build@mystenlabs.com>", | ||
"repository": { | ||
"type": "git", | ||
"url": "github.com:MystenLabs/sui.git" | ||
}, | ||
"license": "Apache-2.0", | ||
"scripts": { | ||
"prettier:check": "prettier -c --ignore-unknown .", | ||
"prettier:fix": "prettier -w --ignore-unknown .", | ||
"prettier:fix:watch": "onchange '**' -i -f add -f change -j 5 -- prettier -w --ignore-unknown {{file}}", | ||
"eslint:check": "eslint --max-warnings=0 .", | ||
"eslint:fix": "pnpm run eslint:check --fix", | ||
"lint": "pnpm run eslint:check && pnpm run prettier:check", | ||
"lint:fix": "pnpm run eslint:fix && pnpm run prettier:fix", | ||
"test": "vitest run", | ||
"test:watch": "vitest" | ||
}, | ||
"dependencies": { | ||
"@amplitude/analytics-client-common": "^0.7.0", | ||
"@amplitude/analytics-core": "^0.13.3", | ||
"@amplitude/analytics-types": "^0.20.0", | ||
"@growthbook/growthbook-react": "^0.15.0", | ||
"@mysten/sui.js": "workspace:*", | ||
"@sentry/react": "^7.47.0", | ||
"@tanstack/react-query": "^4.29.3", | ||
"bignumber.js": "^9.1.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"vanilla-cookieconsent": "^2.9.1" | ||
}, | ||
"devDependencies": { | ||
"@headlessui/tailwindcss": "^0.1.3", | ||
"@tailwindcss/aspect-ratio": "^0.4.2", | ||
"@tailwindcss/forms": "^0.5.3", | ||
"@types/react": "^18.0.35", | ||
"postcss": "^8.4.24", | ||
"tailwindcss": "^3.3.1", | ||
"typescript": "^5.0.4", | ||
"vite": "^4.2.3", | ||
"vitest": "^0.32.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.