<commit_before># enable ES6

parser: babel-eslint

parserOptions:
  ecmaVersion: 6
  sourceType: module
  ecmaFeatures:
    jsx: true # enable React's JSX
  allowImportExportEverywhere: false
  codeFrame: true


# register plugins
plugins:
  - meteor

# use the rules of eslint-config-airbnb
# and the recommended rules of eslint-plugin-meteor
extends:
  - airbnb/base
  - plugin:meteor/recommended
  - plugin:react/recommended

# registerenvironments
env:
  meteor: true
  browser: true
  node: true
  
  

rules:
  # overwrite some rules  
  react-hooks/rules-of-hooks": 'error',
  react-hooks/exhaustive-deps": 'warn'
  semi: 'error'
  no-unexpected-multiline: 2
  object-curly-newline: 0
  no-throw-literal: 0
  no-underscore-dangle: 0
  import/no-named-as-default: 0
  no-nested-ternary: 0
  arrow-parens: 0
  class-methods-use-this: 0
  max-len: 0
  # eslint-plugin-meteor
  meteor/no-session: [0] # allow Session
  meteor/prefer-session-equals: [0] # prefer Session.equals instead
  import/no-extraneous-dependencies: off
  react/require-extension: off
  import/extensions:
    - off
    - never
  import/prefer-default-export: ['off']
  react/jsx-uses-vars: 1
  consistent-return: off #turn off the function return type error
  one-var: [error, never]
  rules: {
    class-methods-use-this: [2, {
      exceptMethods: [
        render,
        getInitialState,
        getDefaultProps,
        getChildContext,<commit_msg>removed the comma in the yaml<commit_after># enable ES6

parser: babel-eslint

parserOptions:
  ecmaVersion: 6
  sourceType: module
  ecmaFeatures:
    jsx: true # enable React's JSX
  allowImportExportEverywhere: false
  codeFrame: true


# register plugins
plugins:
  - meteor

# use the rules of eslint-config-airbnb
# and the recommended rules of eslint-plugin-meteor
extends:
  - airbnb/base
  - plugin:meteor/recommended
  - plugin:react/recommended

# registerenvironments
env:
  meteor: true
  browser: true
  node: true
  
  

rules:
  # overwrite some rules  
  react-hooks/rules-of-hooks": 'error'
  react-hooks/exhaustive-deps": 'warn'
  semi: 'error'
  no-unexpected-multiline: 2
  object-curly-newline: 0
  no-throw-literal: 0
  no-underscore-dangle: 0
  import/no-named-as-default: 0
  no-nested-ternary: 0
  arrow-parens: 0
  class-methods-use-this: 0
  max-len: 0
  # eslint-plugin-meteor
  meteor/no-session: [0] # allow Session
  meteor/prefer-session-equals: [0] # prefer Session.equals instead
  import/no-extraneous-dependencies: off
  react/require-extension: off
  import/extensions:
    - off
    - never
  import/prefer-default-export: ['off']
  react/jsx-uses-vars: 1
  consistent-return: off #turn off the function return type error
  one-var: [error, never]
  rules: {
    class-methods-use-this: [2, {
      exceptMethods: [
        render,
        getInitialState,
        getDefaultProps,
        getChildContext,
{'fraction_non_alphanumeric': 0.104, 'fraction_numerical': 0.010434782608695653, 'mean_word_length': 3.2046783625730995, 'pattern_counts': {'":': 4, '<': 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': '3544614', 'n_tokens_mistral': 1048, 'n_tokens_neox': 1002, 'n_words': 236}