mirror of
https://github.com/visgl/luma.gl.git
synced 2025-12-08 17:36:19 +00:00
12 lines
322 B
Bash
Executable File
12 lines
322 B
Bash
Executable File
#!/bin/sh
|
|
# Script to check code styles
|
|
|
|
set -e
|
|
|
|
# https://serverfault.com/questions/59262/bash-print-stderr-in-red-color
|
|
color() {
|
|
(set -o pipefail;"$@" 2>&1>&3|sed -E $'s,^.*.md,\e[33m&\e[m,'|sed -E $'s,MD[a-zA-Z0-9/\\-]+,\e[31m&\e[m,'|sed -E $'s,\\[Context: .*\\],\e[90m&\e[m,'>&2)3>&1
|
|
}
|
|
|
|
color npx markdownlint docs
|