Skip to content

Instantly share code, notes, and snippets.

@jattoabdul
Forked from q-ode/Sims Javascript Style Guide.md
Last active October 7, 2018 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jattoabdul/b9d4d9a9dbc15d359c81eb843d00123f to your computer and use it in GitHub Desktop.
Save jattoabdul/b9d4d9a9dbc15d359c81eb843d00123f to your computer and use it in GitHub Desktop.
{
  "root": true,
  "extends": "airbnb-base",
  "env": {
    "node": true,
    "es6": true,
    "mocha": true
  },
  "rules": {
    "one-var": 0,
    "one-var-declaration-per-line": 0,
    "new-cap": 0,
    "consistent-return": 0,
    "no-param-reassign": 0,
    "comma-dangle": 0,
    "curly": ["error", "multi-line"],
    "import/no-unresolved": [2, { commonjs: true }],
    "no-shadow": ["error", { "allow": ["req", "res", "err"] }],
    "valid-jsdoc": ["error", {
      "requireReturn": true,
      "requireReturnType": true,
      "requireParamDescription": false,
      "requireReturnDescription": true
    }],
    "require-jsdoc": ["error", {
        "require": {
            "FunctionDeclaration": true,
            "MethodDefinition": true,
            "ClassDeclaration": true
        }
    }]
  }
}

Useful Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment