<commit_before>// http://eslint.org/docs/user-guide/configuring

module.exports = {
  "root": true,
  "parser": "babel-eslint",
  "parserOptions": {
    "sourceType": "module"
  },
  "extends": [
    "airbnb-base",
    // "vue"
    // "eslint-config-vue": "^2.0.2",
    // "plugin:vue-libs/recommended",
  ],
  // required to lint *.vue files
  "plugins": [
    "vue-libs",
    "import",
    "html",
  ],
  "env": {
    "browser": true,
    "mocha": true,
    "node": true,
    "es6": true,
  },
  "globals": {
    "window": false,
    "expect": true,
    "sinon": true,
    "Blob": false,
    "URL": false,
    "__DEV__": false,
    "__PROD__": false,
    "__TEST__": false,
    "__WEEX__": true
  },
  // check if imports actually resolve
  // 需要安装 eslint-import-resolver-webpack
  'settings': {
    'import/resolver': {
      'webpack': {
        'config': 'build/webpack.base.conf.js'
      }
    }
  },
  // 根据需要修改 rules，详见 http://eslint.org/docs/rules/
  // 推荐的编码风格 https://github.com/airbnb/javascript
  // add your custom rules here
  "rules": {
    // don't require .vue extension when importing
    'import/extensions': ['error', 'always', {
      'js': 'never',
      'vue': 'never'
    }],
    // allow optionalDependencies
    'import/no-extraneous-dependencies': ['error', {
      'optionalDependencies': ['test/unit/index.js']
    }],
    "arrow-body-style": 0,
    "class-methods-use-this": 0,
    "comma-dangle": ["error", "always-multiline"],
    "consistent-return": 0,
    "generator-star-spacing": 0,
    "global-require": 0,
    "import/extensions": 0,
    "import/first": 0,
    "import/no-absolute-path": 0,
    "import/no-duplicates": 0,
    "import/no-dynamic-require": 0,
    "import/no-extraneous-dependencies": 0,
    "import/no-named-as-default-member": 0,
    "import/no-named-as-default": 0,
    "import/no-unresolved": 0,
    "import/prefer-default-export": 0,
    "linebreak-style": 0,
    "no-bitwise": 0,
    "no-cond-assign": 0,
    "no-continue": 1,
    "no-console": 0,
    "no-else-return": 0,
    "no-mixed-operators": 0,
    "no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1 }],
    "no-nested-ternary": 0,
    "no-param-reassign": 0,
    "no-plusplus": 0,
    "no-restricted-syntax": 0,
    "no-shadow": ["error", {
      "allow": [
        "res",
        "err",
        "cb",
        "state",
        "resolve",
        "reject",
        "done"
      ]
    }],
    "no-trailing-spaces": 0,
    "no-use-before-define": 0,
    "no-useless-escape": 0,
    "no-unused-vars": ["error", {
      "vars": "all",
      "args": "none",
      "caughtErrors": "none",
      "ignoreRestSiblings": false,
    }],
    "prefer-template": 0,
    "prefer-arrow-callback": 0,
    "require-yield": 1,
    "semi": ["error", "never"],
    "space-before-function-paren": ["error", {
      "anonymous": "always",
      "named": "ignore",
      "asyncArrow": "ignore"
    }],
    // allow debugger during development
    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,<commit_msg>更新 "quotes" eslint<commit_after>// http://eslint.org/docs/user-guide/configuring

module.exports = {
  "root": true,
  "parser": "babel-eslint",
  "parserOptions": {
    "sourceType": "module"
  },
  "extends": [
    "airbnb-base",
    // "vue"
    // "eslint-config-vue": "^2.0.2",
    // "plugin:vue-libs/recommended",
  ],
  // required to lint *.vue files
  "plugins": [
    "vue-libs",
    "import",
    "html",
  ],
  "env": {
    "browser": true,
    "mocha": true,
    "node": true,
    "es6": true,
  },
  "globals": {
    "window": false,
    "expect": true,
    "sinon": true,
    "Blob": false,
    "URL": false,
    "__DEV__": false,
    "__PROD__": false,
    "__TEST__": false,
    "__WEEX__": true
  },
  // check if imports actually resolve
  // 需要安装 eslint-import-resolver-webpack
  'settings': {
    'import/resolver': {
      'webpack': {
        'config': 'build/webpack.base.conf.js'
      }
    }
  },
  // 根据需要修改 rules，详见 http://eslint.org/docs/rules/
  // 推荐的编码风格 https://github.com/airbnb/javascript
  // add your custom rules here
  "rules": {
    // don't require .vue extension when importing
    'import/extensions': ['error', 'always', {
      'js': 'never',
      'vue': 'never'
    }],
    // allow optionalDependencies
    'import/no-extraneous-dependencies': ['error', {
      'optionalDependencies': ['test/unit/index.js']
    }],
    "arrow-body-style": 0,
    "class-methods-use-this": 0,
    "comma-dangle": ["error", "always-multiline"],
    "consistent-return": 0,
    "generator-star-spacing": 0,
    "global-require": 0,
    "import/extensions": 0,
    "import/first": 0,
    "import/no-absolute-path": 0,
    "import/no-duplicates": 0,
    "import/no-dynamic-require": 0,
    "import/no-extraneous-dependencies": 0,
    "import/no-named-as-default-member": 0,
    "import/no-named-as-default": 0,
    "import/no-unresolved": 0,
    "import/prefer-default-export": 0,
    "linebreak-style": 0,
    "no-bitwise": 0,
    "no-cond-assign": 0,
    "no-continue": 1,
    "no-console": 0,
    "no-else-return": 0,
    "no-mixed-operators": 0,
    "no-multiple-empty-lines": ["error", {
      "max": 2,
      "maxEOF": 1,
    }],
    "no-nested-ternary": 0,
    "no-param-reassign": 0,
    "no-plusplus": 0,
    "no-restricted-syntax": 0,
    "no-shadow": ["error", {
      "allow": [
        "res",
        "err",
        "cb",
        "state",
        "resolve",
        "reject",
        "done"
      ]
    }],
    "no-trailing-spaces": 0,
    "no-use-before-define": 0,
    "no-useless-escape": 0,
    "no-unused-vars": ["error", {
      "vars": "all",
      "args": "none",
      "caughtErrors": "none",
      "ignoreRestSiblings": false,
    }],
    "prefer-template": 0,
    "prefer-arrow-callback": 0,
    "quotes": ["error", "single", {
      "avoidEscape": true,
      "allowTemplateLiterals": true,
    }],
    "require-yield": 1,
    "semi": ["error", "never"],
    "space-before-function-paren": ["error", {
      "anonymous": "always",
      "named": "ignore",
      "asyncArrow": "ignore"
    }],
    // allow debugger during development
    'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
{'fraction_non_alphanumeric': 0.20637746843638718, 'fraction_numerical': 0.012949174490126255, 'mean_word_length': 2.406284454244763, 'pattern_counts': {'":': 145, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2582078', 'n_tokens_mistral': 2391, 'n_tokens_neox': 2304, 'n_words': 424}