Skip to content

Commit

Permalink
Add solidity linter and formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
ermyas committed Nov 8, 2021
1 parent a9ae0f0 commit d6b4861
Show file tree
Hide file tree
Showing 6 changed files with 3,008 additions and 0 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
openzeppelin/
15 changes: 15 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"overrides": [
{
"files": "*.sol",
"options": {
"printWidth": 80,
"tabWidth": 4,
"useTabs": false,
"singleQuote": false,
"bracketSpacing": false,
"explicitTypes": "always"
}
}
]
}
7 changes: 7 additions & 0 deletions .solhint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "solhint:default",
"plugins": ["prettier"],
"rules": {
"max-line-length": "off"
}
}
1 change: 1 addition & 0 deletions .solhintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
openzeppelin/
Loading

0 comments on commit d6b4861

Please sign in to comment.