<commit_before>// eslint-disable-next-line import/no-extraneous-dependencies
import { Configuration } from 'webpack';
import path from 'path';

export function webpack(config: Configuration) {
  config.module.rules.push({
    type: 'javascript/auto',
    test: /\.stories\.json$/,
    use: path.resolve(__dirname, './loader.js'),
  });

  config.module.rules.push({
    type: 'javascript/auto',
    test: /\.stories\.ya?ml/,
    use: [
      path.resolve(__dirname, './loader.js'),
      'yaml-loader'
    ],
  })

  return config;
}
<commit_msg>Lint files<commit_after>// eslint-disable-next-line import/no-extraneous-dependencies
import { Configuration } from 'webpack';
import path from 'path';

export function webpack(config: Configuration) {
  config.module.rules.push({
    type: 'javascript/auto',
    test: /\.stories\.json$/,
    use: path.resolve(__dirname, './loader.js'),
  });

  config.module.rules.push({
    type: 'javascript/auto',
    test: /\.stories\.ya?ml/,
    use: [path.resolve(__dirname, './loader.js'), 'yaml-loader'],
  });

  return config;
}

{'fraction_non_alphanumeric': 0.18003731343283583, 'fraction_numerical': 0.0, 'mean_word_length': 3.3266129032258065, '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': '3393644', 'n_tokens_mistral': 356, 'n_tokens_neox': 343, 'n_words': 69}