Skip to content

Commit

Permalink
Add linting for all sdk packages
Browse files Browse the repository at this point in the history
  • Loading branch information
hayes-mysten committed Jun 15, 2023
1 parent 98a37d4 commit c149197
Show file tree
Hide file tree
Showing 89 changed files with 2,625 additions and 2,522 deletions.
558 changes: 276 additions & 282 deletions .eslintrc.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
/apps/icons/src

# Ignore packages that didn't use prettier yet (will be enabled in a future PR)
/sdk/bcs
/sdk/wallet-adapter
/dapps/offline-signer-helper
/dapps/sponsored-transactions

Expand Down
4 changes: 2 additions & 2 deletions dapps/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
This folder enlists full implementations of example Sui dapps, including smart contracts, UIs and any related services
(i.e. game server, ticketing engine etc).

- [2-player Optimistic Satoshi Coin-Flip](https://github.com/MystenLabs/satoshi-coin-flip)
- Add more...
- [2-player Optimistic Satoshi Coin-Flip](https://github.com/MystenLabs/satoshi-coin-flip)
- Add more...
48 changes: 22 additions & 26 deletions prettier.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,30 +2,26 @@
// SPDX-License-Identifier: Apache-2.0

module.exports = {
singleQuote: true,
tabWidth: 4,
overrides: [
// tailwind plugin can be enabled for other apps in a future PR
{
files: 'apps/explorer/**/*',
options: {
plugins: ['prettier-plugin-tailwindcss'],
tailwindConfig: './apps/explorer/tailwind.config.ts',
},
},
// This should be updated to be consistent in a future PR
{
files: [
'dapps/kiosk/**/*',
'sdk/kiosk/**/*',
'sdk/typescript/**/*',
],
options: {
printWidth: 80,
tabWidth: 2,
semi: true,
trailingComma: 'all',
},
},
],
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
semi: true,
overrides: [
// tailwind plugin can be enabled for other apps in a future PR
{
files: 'apps/explorer/**/*',
options: {
plugins: ['prettier-plugin-tailwindcss'],
tailwindConfig: './apps/explorer/tailwind.config.ts',
},
},
{
files: ['apps/**/*', 'sdk/ledgerjs-hw-app-sui/**/*'],
options: {
tabWidth: 4,
semi: true,
trailingComma: 'es5',
},
},
],
};
2 changes: 2 additions & 0 deletions sdk/bcs/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
CHANGELOG.md
Loading

0 comments on commit c149197

Please sign in to comment.