diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/check-lint | 11 | ||||
| -rwxr-xr-x | tools/delint | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/tools/check-lint b/tools/check-lint new file mode 100755 index 0000000..ab7fdd3 --- /dev/null +++ b/tools/check-lint @@ -0,0 +1,11 @@ +#!/bin/bash -e + +## tools/check-lint +## +## Detects lintable mistakes and stylistic problems. + +cd "$(dirname "$0")/.." + +npx eslint +cargo check +cargo clippy diff --git a/tools/delint b/tools/delint new file mode 100755 index 0000000..132841b --- /dev/null +++ b/tools/delint @@ -0,0 +1,11 @@ +#!/bin/bash -e + +## tools/delint +## +## Automatically fixes lintable mistakes and stylistic problems, where possible. + +cd "$(dirname "$0")/.." + +npx eslint --fix +cargo fix +cargo clippy --fix |
