<commit_before>module.exports = {
  plugins: ['typescript'],
  parser: 'typescript-eslint-parser',
  settings: {
    'import/resolver': {
      node: {
        extensions: ['.js', '.ts', '.json'],
      },
    },
    'import/extensions': ['.js', '.ts'],
  },
  rules: {
    camelcase: 'off',
    'no-array-constructor': 'off',
    'no-restricted-globals': 'off', // conflicts with typescript, @see https://github.com/eslint/typescript-eslint-parser/issues/350
    'no-undef': 'off', // conflicts with typescript
    'no-unused-vars': 'off', // disabled in favor of `typescript/no-unused-vars`
    'no-use-before-define': 'off', // disabled in favor of `typescript/no-use-before-define`
    'no-useless-constructor': 'off', // conflicts with typescript
    'spaced-comment': [
      'error',
      'always',
      {
        line: {
          exceptions: ['-', '+'],
          markers: ['=', '!', '/'], // space here to support sprockets directives
        },
        block: {
          exceptions: ['-', '+'],
          markers: ['=', '!'], // space here to support sprockets directives
          balanced: true,
        },
      },
    ],
    strict: 'off', // conflicts with typescript
    // https://github.com/benmosher/eslint-plugin-import
    'import/extensions': [
      'error',
      'always',
      {
        js: 'never',
        ts: 'never',
      },
    ],
    'import/no-named-as-default-member': 'off', // conflicts with typescript
    'import/no-named-as-default': 'off', // conflicts with typescript
    // https://github.com/nzakas/eslint-plugin-typescript
    'typescript/adjacent-overload-signatures': 'off', // TSLint is better at this
    'typescript/class-name-casing': 'off', // TSLint is better at this
    'typescript/explicit-function-return-type': 'off',
    'typescript/explicit-member-accessibility': 'off', // TSLint is better at this
    'typescript/generic-type-naming': ['error', '^T[A-Z][a-zA-Z]+$'],
    'typescript/interface-name-prefix': 'off', // TSLint is better at this
    'typescript/member-delimiter-style': 'off',
    'typescript/member-naming': 'off',
    'typescript/member-ordering': 'off', // type annotations should come first
    'typescript/no-angle-bracket-type-assertion': 'off', // TSLint is better at this
    'typescript/no-array-constructor': 'error',
    'typescript/no-empty-interface': 'off', // TSLint is better at this
    'typescript/no-explicit-any': 'off', // TSLint is better at this
    'typescript/no-inferrable-types': 'off', // TSLint is better at this
    'typescript/no-namespace': 'off', // TSLint is better at this<commit_msg>fix(typescript): make generic-type-naming rule more lenient<commit_after>module.exports = {
  plugins: ['typescript'],
  parser: 'typescript-eslint-parser',
  settings: {
    'import/resolver': {
      node: {
        extensions: ['.js', '.ts', '.json'],
      },
    },
    'import/extensions': ['.js', '.ts'],
  },
  rules: {
    camelcase: 'off',
    'no-array-constructor': 'off',
    'no-restricted-globals': 'off', // conflicts with typescript, @see https://github.com/eslint/typescript-eslint-parser/issues/350
    'no-undef': 'off', // conflicts with typescript
    'no-unused-vars': 'off', // disabled in favor of `typescript/no-unused-vars`
    'no-use-before-define': 'off', // disabled in favor of `typescript/no-use-before-define`
    'no-useless-constructor': 'off', // conflicts with typescript
    'spaced-comment': [
      'error',
      'always',
      {
        line: {
          exceptions: ['-', '+'],
          markers: ['=', '!', '/'], // space here to support sprockets directives
        },
        block: {
          exceptions: ['-', '+'],
          markers: ['=', '!'], // space here to support sprockets directives
          balanced: true,
        },
      },
    ],
    strict: 'off', // conflicts with typescript
    // https://github.com/benmosher/eslint-plugin-import
    'import/extensions': [
      'error',
      'always',
      {
        js: 'never',
        ts: 'never',
      },
    ],
    'import/no-named-as-default-member': 'off', // conflicts with typescript
    'import/no-named-as-default': 'off', // conflicts with typescript
    // https://github.com/nzakas/eslint-plugin-typescript
    'typescript/adjacent-overload-signatures': 'off', // TSLint is better at this
    'typescript/class-name-casing': 'off', // TSLint is better at this
    'typescript/explicit-function-return-type': 'off',
    'typescript/explicit-member-accessibility': 'off', // TSLint is better at this
    'typescript/generic-type-naming': ['error', '^([TUKV]|T[A-Z][a-zA-Z]+)$'],
    'typescript/interface-name-prefix': 'off', // TSLint is better at this
    'typescript/member-delimiter-style': 'off',
    'typescript/member-naming': 'off',
    'typescript/member-ordering': 'off', // type annotations should come first
    'typescript/no-angle-bracket-type-assertion': 'off', // TSLint is better at this
    'typescript/no-array-constructor': 'error',
    'typescript/no-empty-interface': 'off', // TSLint is better at this
    'typescript/no-explicit-any': 'off', // TSLint is better at this
    'typescript/no-inferrable-types': 'off', // TSLint is better at this
    'typescript/no-namespace': 'off', // TSLint is better at this
{'fraction_non_alphanumeric': 0.1816105082809823, 'fraction_numerical': 0.001142204454597373, 'mean_word_length': 2.731534090909091, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '4543519', 'n_tokens_mistral': 1704, 'n_tokens_neox': 1711, 'n_words': 362}