forked from ethereum-optimism/optimism
-
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.
chore(contracts): Add formatting with prettier-plugin-solidity
- Loading branch information
1 parent
d544261
commit d89045b
Showing
6 changed files
with
78 additions
and
318 deletions.
There are no files selected for viewing
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,8 +1,24 @@ | ||
module.exports = { | ||
"$schema": "http://json.schemastore.org/prettierrc", | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": false, | ||
"singleQuote": true, | ||
"arrowParens": "always" | ||
}; | ||
$schema: 'http://json.schemastore.org/prettierrc', | ||
trailingComma: 'es5', | ||
tabWidth: 2, | ||
semi: false, | ||
singleQuote: true, | ||
arrowParens: 'always', | ||
overrides: [ | ||
{ | ||
files: '*.sol', | ||
options: { | ||
// These options are native to Prettier. | ||
printWidth: 100, | ||
tabWidth: 4, | ||
useTabs: false, | ||
singleQuote: false, | ||
bracketSpacing: false, | ||
// These options are specific to the Solidity Plugin | ||
explicitTypes: 'always', | ||
compiler: '0.8.9', | ||
}, | ||
}, | ||
], | ||
} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
contracts/L2/predeploys/WETH9.sol | ||
contracts/L2/predeploys/IWETH9.sol |
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,3 +1,3 @@ | ||
module.exports = { | ||
...require('../../.prettierrc.js'), | ||
}; | ||
} |
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.