speedytwenty/mongodb-extended

View on GitHub
.eslintrc

Summary

Maintainability
Test Coverage
{
  "extends": [
    "airbnb-base",
    "plugin:jest/recommended",
    "plugin:jsdoc/recommended",
  ],
  "plugins": ["jsdoc", "disable"],
  "env": {
    "browser": false,
    "node": true,
    "jest": true,
  },
  "rules": {
    "max-len": ["error", 150, 2, {
      "ignoreUrls": true,
      "ignoreComments": false,
      "ignoreStrings": true,
      "ignoreTemplateLiterals": true,
    }],
    "no-param-reassign": ["error", { "props": true }],
    "no-use-before-define": ["error", { "functions": false, "classes": false }],
    "jest/consistent-test-it": ["error", { "fn": "test" }],
    "arrow-body-style": "off",
    "jest/valid-expect": "off",
    "no-plusplus": "off",
    "consistent-return": "off",

    "jsdoc/check-access": "warn",
    "jsdoc/check-alignment": "warn",
    "jsdoc/check-examples": "warn",
    "jsdoc/check-indentation": "warn",
    "jsdoc/check-line-alignment": "warn",
    "jsdoc/check-param-names": "warn",
    "jsdoc/check-property-names": "warn",
    "jsdoc/check-syntax": "error",
    "jsdoc/check-tag-names": "warn",
    "jsdoc/check-types": "warn",
    "jsdoc/check-values": "warn",
    "jsdoc/empty-tags": "warn",
    "jsdoc/implements-on-classes": "warn",
    "jsdoc/match-description": "warn",
    "jsdoc/newline-after-description": "warn",
    "jsdoc/no-bad-blocks": "warn",
    "jsdoc/no-defaults": "off",
    "jsdoc/no-types": "off",
    "jsdoc/no-undefined-types": "warn",
    "jsdoc/require-description": "warn",
    "jsdoc/require-description-complete-sentence": "warn",
    "jsdoc/require-example": ["warn", {
      "contexts": [
        "ClassDeclaration:not([accessibility=\"private\"])",
      ],
    }],
    "jsdoc/require-file-overview": "off",
    "jsdoc/require-hyphen-before-param-description": "off",
    "jsdoc/require-jsdoc": ["warn", {
      "publicOnly": true,
      require: {
        ClassDeclaration: true,
        ClassExpression: true,
        FunctionDeclaration: true,
        FunctionExpression: true,
        ArrowFunctionExpression: true,
        MethodDefinition: true,
      },
      "enableFixer": true,
    }],
    "jsdoc/require-param": "warn",
    "jsdoc/require-param-description": "warn",
    "jsdoc/require-param-name": "warn",
    "jsdoc/require-param-type": "warn",
    "jsdoc/require-property": "warn",
    "jsdoc/require-property-description": "warn",
    "jsdoc/require-property-name": "warn",
    "jsdoc/require-property-type": "warn",
    "jsdoc/require-returns": "warn",
    "jsdoc/require-returns-check": "warn",
    "jsdoc/require-returns-description": "warn",
    "jsdoc/require-returns-type": "warn",
    "jsdoc/require-throws": "warn",
    "jsdoc/require-yields": "warn",
    "jsdoc/require-yields-check": "warn",
    "jsdoc/valid-types": "warn",
  },
}