blob: d488fd97fb3e015c25958ef97e8a23e7ec47e84f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
set -o errexit -o nounset -o pipefail
shopt -s dotglob extglob globstar
export PATH="$PWD/node_modules/.bin:$PATH"
for file in static/**/*.@(json|webmanifest); do
json_verify < "$file" >/dev/null
done
xmllint --noout static/**/*.@(html|svg|xml)
eslint static/**/*.js
stylelint static/**/*.css
validatornu --Werror --also-check-css --also-check-svg static/**/*.@(css|html|svg)
|