Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade prettier to v3 #307

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/Editor/ExecutionState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ const ExecutionStateRow = ({ label, value }: RowProps) => {
!value || value.length === 0
? ['']
: Array.isArray(value)
? value
: ([value] as string[])
? value
: ([value] as string[])

return (
<>
Expand Down
4 changes: 2 additions & 2 deletions lib/solcWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,13 @@ onmessage = function (e) {
}
}

const contracts = [];
const contracts = []

for (const contractName in output.contracts.web) {
contracts.push({
name: contractName,
code: output.contracts.web[contractName].evm.bytecode.object,
abi: output.contracts.web[contractName].abi
abi: output.contracts.web[contractName].abi,
})
}

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"build": "next build",
"dev": "next dev",
"format": "prettier --write \"**/*.{css,js,jsx,ts,tsx}\"",
"lint": "eslint --ext js,jsx,ts,tsx .",
"lint:package": "sort-package-json",
"typecheck": "tsc --pretty"
Expand Down Expand Up @@ -69,7 +70,7 @@
"husky": "^7.0.2",
"loader-utils": "^2.0.4",
"postcss": "^8.4.35",
"prettier": "^2.4.1",
"prettier": "^3.2.5",
"sort-package-json": "^1.52.0",
"swc-loader": "^0.2.6",
"tailwindcss": "^3.4.1",
Expand Down
2 changes: 1 addition & 1 deletion styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ html {

.select__option {
@apply text-sm py-2 px-3 font-normal text-gray-600 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white cursor-pointer hover:bg-gray-50 dark:hover:bg-black-500 !important;
@apply capitalize
@apply capitalize;
}

.select__option--is-selected {
Expand Down
16 changes: 3 additions & 13 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
"compilerOptions": {
"baseUrl": ".",
"target": "ESNext",
"lib": [
"dom",
"dom.iterable",
"ESNext"
],
"lib": ["dom", "dom.iterable", "ESNext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
Expand All @@ -20,12 +16,6 @@
"jsx": "preserve",
"incremental": true
},
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
}
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4892,10 +4892,10 @@ prettier-linter-helpers@^1.0.0:
dependencies:
fast-diff "^1.1.2"

prettier@^2.4.1:
version "2.4.1"
resolved "https://package-cluster.production.groovehq.com/prettier/-/prettier-2.4.1.tgz"
integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==
prettier@^3.2.5:
version "3.2.5"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.2.5.tgz#e52bc3090586e824964a8813b09aba6233b28368"
integrity sha512-3/GWa9aOC0YeD7LUfvOG2NiDyhOWRvt1k+rcKhOuYnMY24iiCphgneUfJDyFXd6rZCAnuLBv6UeAULtrhT/F4A==

process@^0.11.10:
version "0.11.10"
Expand Down