fix(linter/plugins): validate type of before and after hooks
#14086
+23
−2
before and after hooks
#14086