<commit_before>const config = require('./build-tools/config');

const defaultSettings = ['prettier --write', 'git add'];

const jsSettings = config.lintStaged.eslintEnabled
  ? [...defaultSettings, 'eslint src --ext .js --cache']
  : [...defaultSettings];

const tsSettings = config.lintStaged.tslintEnabled
  ? [...defaultSettings, 'tslint -p tsconfig.json']
  : [...defaultSettings];

const scssSettings = config.lintStaged.stylelintEnabled
  ? [...defaultSettings, 'stylelint --cache']
  : [...defaultSettings];

module.exports = {
  'src/**/*.{js}': jsSettings,
  'src/**/*.{ts}': tsSettings,
  'src/**/*.{scss}': scssSettings,
};
<commit_msg>fix lint-staged settings<commit_after>const config = require('./build-tools/config');

const defaultSettings = ['prettier --write', 'git add'];

const jsSettings = config.lintStaged.eslintEnabled
  ? [...defaultSettings, 'eslint --ext .js --cache']
  : [...defaultSettings];

const tsSettings = config.lintStaged.tslintEnabled
  ? [...defaultSettings, 'tslint -p tsconfig.json']
  : [...defaultSettings];

const scssSettings = config.lintStaged.stylelintEnabled
  ? [...defaultSettings, 'stylelint --cache']
  : [...defaultSettings];

module.exports = {
  'src/**/*.js': jsSettings,
  'src/**/*.ts': tsSettings,
  'src/**/*.scss': scssSettings,
};

{'fraction_non_alphanumeric': 0.19845559845559846, 'fraction_numerical': 0.0, 'mean_word_length': 4.042801556420233, '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': '3586078', 'n_tokens_mistral': 410, 'n_tokens_neox': 419, 'n_words': 83}