You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
npm i -D prettier prettier-plugin-solidity@latest prettier-config-solidity --save-exact
43
39
```
@@ -48,16 +44,19 @@ Prettier configuration for Solidity
48
44
49
45
## Motivation
50
46
51
-
This configuration is optimized to reduce **diff churn** and improve AST results.
47
+
This configuration is optimized to reduce **diff churn** and improve AST
48
+
results.
52
49
53
-
The following rules are employed, with specific reasonings to their choice (source: airbnb style
54
-
guide):
50
+
The following rules are employed, with specific reasonings to their choice
51
+
(source: airbnb style guide):
55
52
56
53
## `printWidth`
57
54
58
-
The behavior of `printWidth` is located here: [prettier-solidity/prettier-plugin-solidity/blob/b504261047d0019c924d53a2b9ab0738b1e05703/src/nodes/FunctionDefinition.js#L99](https://github.com/prettier-solidity/prettier-plugin-solidity/blob/b504261047d0019c924d53a2b9ab0738b1e05703/src/nodes/FunctionDefinition.js#L99)
See more here [prettier-plugin-solidity/issues/474#issuecomment-823670541](https://github.com/prettier-solidity/prettier-plugin-solidity/issues/474#issuecomment-823670541)
0 commit comments