<commit_before>/**
 * eslint-config-paazmaya
 * https://github.com/paazmaya/eslint-config-paazmaya
 *
 * Shared ESLint configuration between my projects since it is possible
 *
 * Copyright (c) <NAME> <<EMAIL>> (https://paazmaya.fi)
 * Licensed under the MIT license
 */

'use strict';

module.exports = {
  'rules': {


    // 3.5.0
    'prefer-numeric-literals': 'error',
    'no-restricted-properties': 'off',
    'line-comment-position': 'off',
    'lines-around-directive': ['error', 'always'],

    // 3.4.0
    'symbol-description': 'off',
    'class-methods-use-this': 'warn',

    // 3.3.0
    'sort-keys': 'off',
    'no-template-curly-in-string': 'warn',

    // 3.2.0
    'no-tabs': 'error',

    // 3.1.0
    'multiline-ternary': ['error', 'always'],

    // 2.12
    'max-lines': ['warn', {
      'max': 200,
      'skipBlankLines': true,
      'skipComments': true
    }],
    'object-curly-newline': ['error', {
      'minProperties': 1
    }],

    // 2.11
    'no-useless-rename': ['error', {
      'ignoreDestructuring': false,
      'ignoreImport': false,
      'ignoreExport': false
    }],
    'unicode-bom': ['error', 'never'],
    'no-prototype-builtins': 'error',


    'array-bracket-spacing': 'error',
    'block-scoped-var': 'off',
    'brace-style': ['error', 'stroustrup'],
    'camelcase': 'off',
    'comma-dangle': 'error',
    'comma-spacing': ['error', {
      'before': false,
      'after': true
    }],
    'comma-style': ['error', 'last'],
    'complexity': ['warn', 12],
    'computed-property-spacing': ['error', 'never'],
    'consistent-return': 'error',
    'consistent-this': ['error', '_self'],
    'curly': 'error',
    'default-case': 'error',
    'dot-notation': 'warn',
    'eol-last': 'warn',
    'eqeqeq': 'error',
    'func-names': 'warn',
    'func-style': ['error', 'expression'],
    'guard-for-in': 'warn',
    'handle-callback-err': 'error',
    'indent': ['error', 2],
    'key-spacing': 'error',
    'keyword-spacing': 'error',
    'max-depth': [1, 4],
    'max-len': [1, 120, 4],
    'max-nested-callbacks': [1, 2],
    'max-params': [1, 3],
    'max-statements': [1, 10],
    'new-cap': 'error',
    'new-parens': 'error',
    'no-alert': 'error',
    'no-array-constructor': 'error',
    'no-bitwise': 'off',
    'no-caller': 'error',
    'no-catch-shadow': 'error',
    'no-cond-assign': 'error',
    'no-console': 'off',
    'no-constant-condition': 'error',
    'no-control-regex': 'error',
    'no-debugger': 'error',
    'no-delete-var': 'error',
    'no-div-regex': 'off',
    'no-dupe-keys': 'error',
    'no-else-return': 'off',
    'no-empty': 'error',
    'no-empty-character-class': 'error',
    'no-eq-null': 'off',
    'no-eval': 'error',
    'no-ex-assign': 'error',
    'no-extend-native': 'error',
    'no-extra-bind': 'error',
    'no-extra-boolean-cast': 'error',
    'no-extra-parens': 'error',
    'no-extra-semi': 'error',
    'no-fallthrough': 'error',
    'no-floating-decimal': 'off',
    'no-func-assign': 'error',
    'no-implied-eval': 'error',
    'no-inline-comments': 'off',
    'no-inner-declarations': 'error',
    'no-invalid-regexp': 'error',
    'no-iterator': 'error',
    'no-label-var': 'error',
    'no-labels': 'error',
    'no-lone-blocks': 'error',
    'no-lonely-if': 'error',
    'no-loop-func': 'error',
    'no-mixed-requires': [1, true],
    'no-mixed-spaces-and-tabs': 'error',
    'no-multi-spaces': 'error',
    'no-multi-str': 'error',
    'no-multiple-empty-lines': 'error',
    'no-global-assign': 'error',
    'no-unsafe-negation': 'error',
    'no-nested-ternary': 'warn',
    'no-new': 'error',
    'no-new-func': 'error',
    'no-new-object': 'error',
    'no-new-require': 'error',
    'no-new-wrappers': 'error',
    'no-obj-calls': 'error',
    'no-octal': 'error',
    'no-octal-escape': 'error',
    'no-path-concat': 'error',
    'no-plusplus': 'off',
    'no-process-env': 'warn',
    'no-process-exit': 'warn',
    'no-proto': 'error',
    'no-redeclare': 'error',
    'no-regex-spaces': 'error',
    'no-restricted-modules': 'off',
    'no-return-assign': 'error',
    'no-script-url': 'error',
    'no-self-compare': 'off',
    'no-sequences': 'error',
    'no-shadow': 'warn',
    'no-shadow-restricted-names': 'error',
    'func-call-spacing': 'warn',
    'no-sparse-arrays': 'error',
    'no-sync': 'off',
    'no-ternary': 'off',
    'no-trailing-spaces': 'error',
    'no-undef': 'error',
    'no-undef-init': 'error',
    'no-undefined': 'warn',
    'no-underscore-dangle': 'off',
    'no-unreachable': 'error',
    'no-unused-expressions': 'warn',
    'no-unused-vars': ['error', 'local'],
    'no-use-before-define': 'warn',

    // Shall not use var since ES6 has let and const, but few browser projects might need it
    'no-var': 'warn',

    'no-void': 'error',

    // Sometimes need to have FIXME or TODO
    'no-warning-comments': 'warn',

    'no-with': 'error',
    'object-curly-spacing': ['error', 'never'],
    'object-property-newline': 'error',
    'one-var': 'off',
    'operator-assignment': ['error', 'always'],
    'prefer-const': 'error',
    'quote-props': ['warn', 'as-needed'],
    'quotes': ['error', 'single'],
    'radix': 'error',
    'semi': 'error',
    'semi-spacing': ['error', {
      'before': false,
      'after': true
    }],
    'sort-vars': 'off',
    'space-in-parens': ['error', 'never'],
    'space-infix-ops': 'error',
    'space-unary-ops': 'warn',
    'spaced-comment': ['off', 'always'],
    'strict': 'off',
    'use-isnan': 'error',
    'valid-jsdoc': 'warn',
    'valid-typeof': 'error',
    'vars-on-top': 'off',
    'wrap-iife': ['error', 'inside'],
    'wrap-regex': 'off',
    'yoda': ['error', 'never']
  },
  'env': {
    'node': true,
    'es6': true
  }
};<commit_msg>Some rules from v2.x<commit_after>/**
 * eslint-config-paazmaya
 * https://github.com/paazmaya/eslint-config-paazmaya
 *
 * Shared ESLint configuration between my projects since it is possible
 *
 * Copyright (c) <NAME> <<EMAIL>> (https://paazmaya.fi)
 * Licensed under the MIT license
 */

'use strict';

module.exports = {
  'rules': {


    // 3.5
    'prefer-numeric-literals': 'error',
    'no-restricted-properties': 'off',
    'line-comment-position': 'off',
    'lines-around-directive': ['error', 'always'],

    // 3.4
    'symbol-description': 'off',
    'class-methods-use-this': 'warn',

    // 3.3
    'sort-keys': 'off',
    'no-template-curly-in-string': 'warn',

    // 3.2
    'no-tabs': 'error',

    // 3.1
    'multiline-ternary': ['error', 'always'],

    // 2.12
    'max-lines': ['warn', {
      'max': 200,
      'skipBlankLines': true,
      'skipComments': true
    }],
    'object-curly-newline': ['error', {
      'minProperties': 1
    }],

    // 2.11
    'no-useless-rename': ['error', {
      'ignoreDestructuring': false,
      'ignoreImport': false,
      'ignoreExport': false
    }],
    'unicode-bom': ['error', 'never'],
    'no-prototype-builtins': 'error',

    // 2.10
    'object-property-newline': 'error',

    // 2.9
    'no-unsafe-finally': 'error',
    'no-useless-computed-key': 'error',

    // 2.5
    'no-useless-escape': 'error',
    'max-statements-per-line': ['error', {
      'max': 1
    }],
    'no-duplicate-imports': 'error',


    'array-bracket-spacing': 'error',
    'block-scoped-var': 'off',
    'brace-style': ['error', 'stroustrup'],
    'camelcase': 'off',
    'comma-dangle': 'error',
    'comma-spacing': ['error', {
      'before': false,
      'after': true
    }],
    'comma-style': ['error', 'last'],
    'complexity': ['warn', 12],
    'computed-property-spacing': ['error', 'never'],
    'consistent-return': 'error',
    'consistent-this': ['error', '_self'],
    'curly': 'error',
    'default-case': 'error',
    'dot-notation': 'warn',
    'eol-last': 'warn',
    'eqeqeq': 'error',
    'func-names': 'warn',
    'func-style': ['error', 'expression'],
    'guard-for-in': 'warn',
    'handle-callback-err': 'error',
    'indent': ['error', 2],
    'key-spacing': 'error',
    'keyword-spacing': 'error',
    'max-depth': [1, 4],
    'max-len': [1, 120, 4],
    'max-nested-callbacks': [1, 2],
    'max-params': [1, 3],
    'max-statements': [1, 10],
    'new-cap': 'error',
    'new-parens': 'error',
    'no-alert': 'error',
    'no-array-constructor': 'error',
    'no-bitwise': 'off',
    'no-caller': 'error',
    'no-catch-shadow': 'error',
    'no-cond-assign': 'error',
    'no-console': 'off',
    'no-constant-condition': 'error',
    'no-control-regex': 'error',
    'no-debugger': 'error',
    'no-delete-var': 'error',
    'no-div-regex': 'off',
    'no-dupe-keys': 'error',
    'no-else-return': 'off',
    'no-empty': 'error',
    'no-empty-character-class': 'error',
    'no-eq-null': 'off',
    'no-eval': 'error',
    'no-ex-assign': 'error',
    'no-extend-native': 'error',
    'no-extra-bind': 'error',
    'no-extra-boolean-cast': 'error',
    'no-extra-parens': 'error',
    'no-extra-semi': 'error',
    'no-fallthrough': 'error',
    'no-floating-decimal': 'off',
    'no-func-assign': 'error',
    'no-implied-eval': 'error',
    'no-inline-comments': 'off',
    'no-inner-declarations': 'error',
    'no-invalid-regexp': 'error',
    'no-iterator': 'error',
    'no-label-var': 'error',
    'no-labels': 'error',
    'no-lone-blocks': 'error',
    'no-lonely-if': 'error',
    'no-loop-func': 'error',
    'no-mixed-requires': [1, true],
    'no-mixed-spaces-and-tabs': 'error',
    'no-multi-spaces': 'error',
    'no-multi-str': 'error',
    'no-multiple-empty-lines': 'error',
    'no-global-assign': 'error',
    'no-unsafe-negation': 'error',
    'no-nested-ternary': 'warn',
    'no-new': 'error',
    'no-new-func': 'error',
    'no-new-object': 'error',
    'no-new-require': 'error',
    'no-new-wrappers': 'error',
    'no-obj-calls': 'error',
    'no-octal': 'error',
    'no-octal-escape': 'error',
    'no-path-concat': 'error',
    'no-plusplus': 'off',
    'no-process-env': 'warn',
    'no-process-exit': 'warn',
    'no-proto': 'error',
    'no-redeclare': 'error',
    'no-regex-spaces': 'error',
    'no-restricted-modules': 'off',
    'no-return-assign': 'error',
    'no-script-url': 'error',
    'no-self-compare': 'off',
    'no-sequences': 'error',
    'no-shadow': 'warn',
    'no-shadow-restricted-names': 'error',
    'func-call-spacing': 'warn',
    'no-sparse-arrays': 'error',
    'no-sync': 'off',
    'no-ternary': 'off',
    'no-trailing-spaces': 'error',
    'no-undef': 'error',
    'no-undef-init': 'error',
    'no-undefined': 'warn',
    'no-underscore-dangle': 'off',
    'no-unreachable': 'error',
    'no-unused-expressions': 'warn',
    'no-unused-vars': ['error', 'local'],
    'no-use-before-define': 'warn',

    // Shall not use var since ES6 has let and const, but few browser projects might need it
    'no-var': 'warn',

    'no-void': 'error',

    // Sometimes need to have FIXME or TODO
    'no-warning-comments': 'warn',

    'no-with': 'error',
    'object-curly-spacing': ['error', 'never'],
    'one-var': 'off',
    'operator-assignment': ['error', 'always'],
    'prefer-const': 'error',
    'quote-props': ['warn', 'as-needed'],
    'quotes': ['error', 'single'],
    'radix': 'error',
    'semi': 'error',
    'semi-spacing': ['error', {
      'before': false,
      'after': true
    }],
    'sort-vars': 'off',
    'space-in-parens': ['error', 'never'],
    'space-infix-ops': 'error',
    'space-unary-ops': 'warn',
    'spaced-comment': ['off', 'always'],
    'strict': 'off',
    'use-isnan': 'error',
    'valid-jsdoc': 'warn',
    'valid-typeof': 'error',
    'vars-on-top': 'off',
    'wrap-iife': ['error', 'inside'],
    'wrap-regex': 'off',
    'yoda': ['error', 'never']
  },
  'env': {
    'node': true,
    'es6': true
  }
};
{'fraction_non_alphanumeric': 0.2429676213138438, 'fraction_numerical': 0.007988442253760516, 'mean_word_length': 2.8232618583495777, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 4, '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': '1228801', 'n_tokens_mistral': 4572, 'n_tokens_neox': 4419, 'n_words': 848}