14 lines
217 B
Bash
Executable File
14 lines
217 B
Bash
Executable File
#!/bin/sh
|
|
# script/lint: run the linter (eslint plus a prettier check).
|
|
set -eu
|
|
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
|
|
|
|
main() {
|
|
cd "$ROOT"
|
|
yarn run eslint .
|
|
yarn run prettier --check .
|
|
}
|
|
|
|
main "$@"
|