<commit_before>#!/bin/bash
noflow=$(git ls-files | egrep '^(src|test).*\.js$' | xargs grep --files-without-match '@flow')
if [ -n "$noflow" ]; then
  echo 'These files are missing @flow annotations:'
  echo "$noflow"
  exit 1
fi

./node_modules/.bin/jsxhint --es6module --harmony 'src/**/*.js'<commit_msg>point lint checks to the correct folder for sources<commit_after>#!/bin/bash
noflow=$(git ls-files | egrep '^(src|test).*\.js$' | xargs grep --files-without-match '@flow')
if [ -n "$noflow" ]; then
  echo 'These files are missing @flow annotations:'
  echo "$noflow"
  exit 1
fi

./node_modules/.bin/jsxhint --es6module --harmony 'main/src/**/*.js'
{'fraction_non_alphanumeric': 0.19448698315467075, 'fraction_numerical': 0.006125574272588055, 'mean_word_length': 3.8805970149253732, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1597094', 'n_tokens_mistral': 252, 'n_tokens_neox': 237, 'n_words': 65}