aboutsummaryrefslogtreecommitdiffstats
path: root/packages/contracts/.solhint.json
diff options
context:
space:
mode:
authorAlex Shafranovich <alex@cen.by>2018-07-06 01:58:52 +0800
committerAlex Shafranovich <alex@cen.by>2018-07-06 01:58:52 +0800
commitd8c7c9803c92a5069aae73d5fcbcf4920b18e0ab (patch)
tree7c4040a5705ccbf4f559a2bdabb472ca4c17f30c /packages/contracts/.solhint.json
parent87a7a4ad2d55641cbe06d7157df0d8f0996d033a (diff)
downloaddexon-0x-contracts-d8c7c9803c92a5069aae73d5fcbcf4920b18e0ab.tar.gz
dexon-0x-contracts-d8c7c9803c92a5069aae73d5fcbcf4920b18e0ab.tar.zst
dexon-0x-contracts-d8c7c9803c92a5069aae73d5fcbcf4920b18e0ab.zip
Added Solhint package and 'lint-contracts' npm script
Diffstat (limited to 'packages/contracts/.solhint.json')
-rw-r--r--packages/contracts/.solhint.json17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/contracts/.solhint.json b/packages/contracts/.solhint.json
new file mode 100644
index 000000000..7e3b4dca2
--- /dev/null
+++ b/packages/contracts/.solhint.json
@@ -0,0 +1,17 @@
+{
+ "extends": "default",
+ "rules": {
+ "bracket-align": "warn",
+ "code-complexity": "warn",
+ "const-name-snakecase": "warn",
+ "expression-indent": "warn",
+ "function-max-lines": "warn",
+ "statement-indent": "warn",
+ "indent": ["warn", 4],
+ "quotes": ["error", "double"],
+ "max-line-length": ["warn", 120],
+ "separate-by-one-line-in-contract": "warn",
+ "space-after-comma": "error",
+ "func-order": "warn"
+ }
+}