Skip to content

Commit d8b5d29

Browse files
authored
chore: update prettier-sol config to work with prettier 3.x (#3420)
## What ❔ <!-- What are the changes this PR brings about? --> <!-- Example: This PR adds a PR template to the repo. --> <!-- (For bigger PRs adding more context is appreciated) --> ## Why ❔ <!-- Why are these changes done? What goal do they contribute to? What are the principles behind them? --> <!-- Example: PR templates ensure PR reviewers, observers, and future iterators are in context about the evolution of repos. --> ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [ ] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [ ] Documentation comments have been added / updated. - [ ] Code has been formatted via `zkstack dev fmt` and `zkstack dev lint`.
1 parent 78af2bf commit d8b5d29

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

etc/prettier-config/sol.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
11
module.exports = {
2-
"printWidth": 120,
3-
"tabWidth": 4,
4-
"useTabs": false,
5-
"singleQuote": false,
6-
"bracketSpacing": false,
7-
"explicitTypes": "always"
2+
plugins: ["prettier-plugin-solidity"],
3+
overrides: [
4+
{
5+
files: "*.sol",
6+
options: {
7+
"printWidth": 120,
8+
"tabWidth": 4,
9+
"useTabs": false,
10+
"singleQuote": false,
11+
"bracketSpacing": false,
12+
"explicitTypes": "always"
13+
}
14+
}
15+
]
816
};

0 commit comments

Comments
 (0)