generated from sambacha/zen-foundry-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
1,588 additions
and
370 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 |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/** | ||
* @package Prettier configuration for Solidity | ||
* @version 1.8.0 | ||
* @summary base config adapted from AirBNB to reduce diff churn | ||
* @note solidity settings from Solidity Documentation | ||
* @solidity versions ^0.8.0 bytes1 | ||
* this.scheama = require('http://json.schemastore.org/prettierrc'), | ||
*/ | ||
|
||
// @ts-check | ||
/** | ||
* @type {import('./index')} | ||
*/ | ||
module.exports = { | ||
/* editorconfig: true, */ | ||
arrowParens: 'always', | ||
bracketSpacing: true, | ||
endOfLine: 'lf', | ||
printWidth: 80, | ||
singleQuote: true, | ||
tabWidth: 2, | ||
trailingComma: 'all', | ||
quoteProps: 'as-needed', | ||
semi: true, | ||
overrides: [ | ||
{ | ||
files: ['*.sol', '*.t.sol'], | ||
plugins: [require.resolve('prettier-plugin-solidity')], | ||
options: { | ||
/** | ||
* @param printWidth | ||
* @summary printWidth is not a line character capture | ||
* @see {@link https://prettier.io/docs/en/rationale.html#print-width} | ||
*/ | ||
printWidth: 100, | ||
tabWidth: 4, | ||
useTabs: false, | ||
singleQuote: false, | ||
/** | ||
* @param bracketSpacing | ||
* @summary enforces `bracketSpacing` to be `true`, | ||
* | ||
*/ | ||
bracketSpacing: true, | ||
/** | ||
* @param explicitTypes | ||
* @summary enforces `explicitTypes` to be `true`, | ||
* @example Example: unit = unit256 | ||
*/ | ||
explicitTypes: 'always', | ||
}, | ||
}, | ||
], | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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.