<commit_before>'use strict'

var allRules = {
  'jsx-no-new-object-as-prop': require('./lib/rules/jsx-no-new-object-as-prop'),
  'jsx-no-new-array-as-prop': require('./lib/rules/jsx-no-new-array-as-prop'),
  'jsx-no-new-function-as-prop': require('./lib/rules/jsx-no-new-function-as-prop'),
  'jsx-no-jsx-as-prop': require('./lib/rules/jsx-no-jsx-as-prop')
}

function configureAsError (rules) {
  var result = {}
  for (var key in rules) {
    if (!rules.hasOwnProperty(key)) {
      continue
    }
    result['react-perf/' + key] = 2
  }
  return result
}

module.exports = {
  rules: allRules,
  configs: {
    recommended: {
      plugins: [
        'react-perf'
      ],
      parserOptions: {
        ecmaFeatures: {
          jsx: true
        }
      },
      rules: {
        'react-perf/jsx-no-new-object-as-prop': 2,
        'react-perf/jsx-no-new-array-as-prop': 2,
        'react-perf/jsx-no-new-function-as-prop': 2
      }
    },
    all: {
      plugin: [
        'react-perf'
      ],
      parserOptions: {
        ecmaFeatures: {
          jsx: true
        }
      },
      rules: configureAsError(allRules)
    }
  }
}<commit_msg>fix typo in "all" configuration<commit_after>'use strict'

var allRules = {
  'jsx-no-new-object-as-prop': require('./lib/rules/jsx-no-new-object-as-prop'),
  'jsx-no-new-array-as-prop': require('./lib/rules/jsx-no-new-array-as-prop'),
  'jsx-no-new-function-as-prop': require('./lib/rules/jsx-no-new-function-as-prop'),
  'jsx-no-jsx-as-prop': require('./lib/rules/jsx-no-jsx-as-prop')
}

function configureAsError (rules) {
  var result = {}
  for (var key in rules) {
    if (!rules.hasOwnProperty(key)) {
      continue
    }
    result['react-perf/' + key] = 2
  }
  return result
}

module.exports = {
  rules: allRules,
  configs: {
    recommended: {
      plugins: [
        'react-perf'
      ],
      parserOptions: {
        ecmaFeatures: {
          jsx: true
        }
      },
      rules: {
        'react-perf/jsx-no-new-object-as-prop': 2,
        'react-perf/jsx-no-new-array-as-prop': 2,
        'react-perf/jsx-no-new-function-as-prop': 2
      }
    },
    all: {
      plugins: [
        'react-perf'
      ],
      parserOptions: {
        ecmaFeatures: {
          jsx: true
        }
      },
      rules: configureAsError(allRules)
    }
  }
}
{'fraction_non_alphanumeric': 0.1766479965532098, 'fraction_numerical': 0.0034467901766479965, 'mean_word_length': 1.9579617834394905, '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': '269626', 'n_tokens_mistral': 874, 'n_tokens_neox': 868, 'n_words': 118}