<commit_before>#!/usr/bin/env node
var cli = require('eslint/lib/cli');

var path = require('path');
var eslintConfig = path.join(__dirname, '..', 'index.js');

var argv = process.argv;
argv.push('--config=' + eslintConfig);
cli.execute(argv);<commit_msg>Fail when any lint error occurs, so we can integrate it in the CI and make the build fail when there are lint errors.<commit_after>#!/usr/bin/env node
var cli = require('eslint/lib/cli');

var path = require('path');
var eslintConfig = path.join(__dirname, '..', 'index.js');

var argv = process.argv;
argv.push('--config=' + eslintConfig);

var result = cli.execute(argv);
process.exit(result);
{'fraction_non_alphanumeric': 0.17384615384615384, 'fraction_numerical': 0.0, 'mean_word_length': 4.972477064220183, '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': '6854668', 'n_tokens_mistral': 218, 'n_tokens_neox': 214, 'n_words': 61}