<commit_before>const { CLIEngine } = require('eslint');

const cli = new CLIEngine({});

module.exports = {
  '*.{js,mjs,cjs}': function eslint(files) {
    return (
      'eslint --cache --fix --max-warnings=0 ' +
      files.filter((file) => !cli.isPathIgnored(file)).join(' ')
    );
  },
  '*.{css,html,md,json}': function prettier(files) {
    return 'prettier --write ' + files.join(' ');
  },
  'lib/**/*.js': function libFlow(files) {
    return 'yarn workspace lib flow --quiet';
  },
  '{web,lib}/**/*.js': function webFlow(files) {
    return 'yarn workspace web flow --quiet';
  },
  '{native,lib}/**/*.js': function nativeFlow(files) {
    return 'yarn workspace native flow --quiet';
  },
  '{server,web,lib}/**/*.js': function serverFlow(files) {
    return 'yarn workspace server flow --quiet';
  },
  '{landing,lib}/**/*.js': function serverFlow(files) {
    return 'yarn workspace landing flow --quiet';
  },
  'native/**/*.{h,cpp}': function clangFormat(files) {
    return 'clang-format -i ' + files.join(' ');
  },
};<commit_msg>[eslint] Remove `*.cjs` from `lintstaged`<commit_after>const { CLIEngine } = require('eslint');

const cli = new CLIEngine({});

module.exports = {
  '*.{js,mjs}': function eslint(files) {
    return (
      'eslint --cache --fix --max-warnings=0 ' +
      files.filter((file) => !cli.isPathIgnored(file)).join(' ')
    );
  },
  '*.{css,html,md,json}': function prettier(files) {
    return 'prettier --write ' + files.join(' ');
  },
  'lib/**/*.js': function libFlow(files) {
    return 'yarn workspace lib flow --quiet';
  },
  '{web,lib}/**/*.js': function webFlow(files) {
    return 'yarn workspace web flow --quiet';
  },
  '{native,lib}/**/*.js': function nativeFlow(files) {
    return 'yarn workspace native flow --quiet';
  },
  '{server,web,lib}/**/*.js': function serverFlow(files) {
    return 'yarn workspace server flow --quiet';
  },
  '{landing,lib}/**/*.js': function serverFlow(files) {
    return 'yarn workspace landing flow --quiet';
  },
  'native/**/*.{h,cpp}': function clangFormat(files) {
    return 'clang-format -i ' + files.join(' ');
  },
};
{'fraction_non_alphanumeric': 0.217984934086629, 'fraction_numerical': 0.0009416195856873823, 'mean_word_length': 3.3724279835390947, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '605289', 'n_tokens_mistral': 755, 'n_tokens_neox': 745, 'n_words': 158}