From d8b5d299f0ef7e98d7fbc5dec8e6b805b8c47e4a Mon Sep 17 00:00:00 2001 From: Daniyar Itegulov Date: Thu, 2 Jan 2025 22:28:29 +1100 Subject: [PATCH] chore: update prettier-sol config to work with prettier 3.x (#3420) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## What ❔ ## Why ❔ ## Checklist - [ ] 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`. --- etc/prettier-config/sol.js | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/etc/prettier-config/sol.js b/etc/prettier-config/sol.js index 521a8ba95ea9..0c4dfff9bbb7 100644 --- a/etc/prettier-config/sol.js +++ b/etc/prettier-config/sol.js @@ -1,8 +1,16 @@ module.exports = { - "printWidth": 120, - "tabWidth": 4, - "useTabs": false, - "singleQuote": false, - "bracketSpacing": false, - "explicitTypes": "always" + plugins: ["prettier-plugin-solidity"], + overrides: [ + { + files: "*.sol", + options: { + "printWidth": 120, + "tabWidth": 4, + "useTabs": false, + "singleQuote": false, + "bracketSpacing": false, + "explicitTypes": "always" + } + } + ] };