#!/bin/sh # shellcheck disable=SC2016 # # Components must use the `Link` component from `webutil/Link.js` rather # than raw `` elements. The `Link` component properly handles # client-side routing, as well as providing consistent styles. # # See for an # example of how to fix this error. export GIT_CONFIG_NOSYSTEM=1 export GIT_ATTR_NOSYSTEM=1 # shellcheck disable=SC2034 test_description='check that bare elements are never directly used' # shellcheck disable=SC1091 . ./sharness.sh # shellcheck disable=SC1004 test_expect_success "application components must use instead of " ' test_must_fail git grep -nF "" \ ":/src/*.js" \ ":(exclude,top)*/__snapshots__/*" \ ":(exclude,top)*/snapshots/*" \ ":(exclude,top)src/webutil/Link.js" \ ; ' test_done # vim: ft=sh