Skip to content

Instantly share code, notes, and snippets.

@agauniyal
Created May 25, 2016 03:08
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 agauniyal/a8296870725562c8575e5472afc184ee to your computer and use it in GitHub Desktop.
Save agauniyal/a8296870725562c8575e5472afc184ee to your computer and use it in GitHub Desktop.
default eslintrc for node & js
{
"env": {
"node" : true,
"es6" : true,
"mocha": true
},
"rules": {
"accessor-pairs": "error",
"array-bracket-spacing": [2, "never"],
"array-callback-return": "error",
"block-scoped-var": 2,
"brace-style": ["error", "stroustrup", { "allowSingleLine": true }],
"block-spacing": "error",
"camelcase": 1,
"computed-property-spacing": [2, "never"],
"comma-dangle": ["error", "never"],
"comma-spacing": ["error", { "before": false, "after": true }],
"curly": 2,
"dot-notation": 1,
"eol-last": 2,
"eqeqeq": [2, "smart"],
"global-require": "error",
"handle-callback-err": 1,
"indent": ["error", 2, { "SwitchCase": 1 }],
"max-depth": [1, 3],
"max-len": [1, 80],
"max-nested-callbacks": ["error", 5],
"max-params": ["error", 5],
"max-statements": [1, 15],
"max-statements-per-line": ["error", { "max": 3 }],
"new-cap": 1,
"new-parens": "error",
"no-alert": "error",
"no-array-constructor": "error",
"no-confusing-arrow": "error",
"no-const-assign": "error",
"no-debugger": "error",
"no-dupe-args": "error",
"no-duplicate-case": "error",
"no-dupe-class-members": "error",
"no-dupe-keys": "error",
"no-duplicate-imports": "error",
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-empty-function": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extend-native": 2,
"no-extra-label": "error",
"no-extra-semi": "error",
"no-fallthrough": 1,
"no-floating-decimal": "error",
"no-implied-eval": "error",
"no-lone-blocks": 1,
"no-loop-func": "error",
"no-mixed-spaces-and-tabs": 2,
"no-mixed-requires": "error",
"no-multiple-empty-lines": ["error", {"max": 3}],
"no-multi-spaces": "error",
"no-new": "error",
"no-new-require": "error",
"no-new-wrappers": "error",
"no-redeclare": "error",
"no-return-assign": "error",
"no-self-assign": "error",
"no-self-compare": "error",
"no-sequences": 1,
"no-trailing-spaces": 2,
"no-unmodified-loop-condition": 1,
"no-unreachable": "error",
"no-unused-expressions": "error",
"no-unused-labels": "error",
"no-unused-vars": 1,
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-constructor": "error",
"no-useless-escape": "error",
"no-use-before-define": 1,
"no-warning-comments": 1,
"no-whitespace-before-property": "error",
"no-var": 1,
"no-void": "error",
"no-use-before-define": [2, "nofunc"],
"object-curly-spacing": [2, "never"],
"object-property-newline": ["error", { "allowMultiplePropertiesPerLine": true }],
"object-shorthand": 1,
"prefer-const": 1,
"prefer-rest-params": 1,
"quotes": [2, "single", "avoid-escape"],
"semi": [2, "always"],
"semi-spacing": "error",
"space-before-function-paren": ["error", "never"],
"space-infix-ops": ["error", {"int32Hint": false}],
"space-in-parens": ["error", "never"],
"space-unary-ops": 2,
"spaced-comment": ["error", "always"],
"use-isnan": "error",
"valid-typeof": "error",
"yoda": 1
}
}
Copy link

ghost commented Jun 29, 2017

no-use-before-define is defined twice in line 77 and 82

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