Skip to content

Commit fc1e3a6

Browse files
committed
fix: improve linting
1 parent 8ceb34e commit fc1e3a6

8 files changed

+1930
-212
lines changed

.husky/commit-msg

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx commitlint --edit ${1}

.husky/pre-commit

+1-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
#!/bin/bash
2-
3-
json_files=$(git diff --cached --name-only | grep '\.json$')
4-
if [ -n "$json_files" ]; then
5-
for file in $json_files; do
6-
jq . "$file" > tmp.$$.json && mv tmp.$$.json "$file"
7-
git add "$file"
8-
done
9-
fi
1+
npx lint-staged

.nvmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20.12

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.gitignore
2+
.prettierignore
3+
4+
package-lock.json

commitlint.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = { extends: ["@commitlint/config-conventional"] };

diffyscan/diffyscan.py

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import os
66
import traceback
77

8+
"s"
9+
810
from .utils.common import load_config, load_env, prettify_solidity
911

1012
from .utils.constants import (

0 commit comments

Comments
 (0)