Skip to content

Instantly share code, notes, and snippets.

@Macrofig
Created March 13, 2018 17:05
Show Gist options
  • Save Macrofig/db3b46fdc35d2b4e4ee62b5d639d0758 to your computer and use it in GitHub Desktop.
Save Macrofig/db3b46fdc35d2b4e4ee62b5d639d0758 to your computer and use it in GitHub Desktop.
Default eslint I am testing out
{
"rules": {
"comma-dangle": [2,"never"],
"no-cond-assign": [2,"except-parens"],
"no-console": 2,
"no-constant-condition": 2,
"no-control-regex": 2,
"no-debugger": 2,
"no-dupe-args": 2,
"no-dupe-keys": 2,
"no-duplicate-case": 2,
"no-empty-character-class": 2,
"no-empty": 2,
"no-ex-assign": 2,
"no-extra-boolean-cast": 2,
"no-extra-parens": [2,"functions"],
"no-extra-semi": 2,
"no-func-assign": 2,
"no-inner-declarations": [2,"functions"],
"no-invalid-regexp": 2,
"no-irregular-whitespace": 2,
"no-negated-in-lhs": 2,
"no-obj-calls": 2,
"no-regex-spaces": 2,
"no-sparse-arrays": 2,
"no-unreachable": 2,
"use-isnan": 2,
"valid-typeof": 2,
"no-unexpected-multiline": 2,
"eqeqeq": [2,"smart"],
"guard-for-in": 2,
"no-alert": 2,
"no-eval": 2,
"no-fallthrough": 2,
"no-redeclare": [2,{"builtinGlobals":true}],
"no-delete-var": 2,
"no-undef": 2,
"no-undefined": 2,
"no-unused-vars": 2,
"no-use-before-define": 2,
"camelcase": [2,{"properties":"always"}],
"comma-spacing": [2,{"after":true}],
"consistent-this": [2,"self"],
"indent": [2,2],
"key-spacing": [2,{"afterColon":true}],
"new-cap": 2,
"no-mixed-spaces-and-tabs": [2,"smart-tabs"],
"no-multiple-empty-lines": [2,{"max":2}],
"quotes": [2,"single"],
"semi": [2,"always"],
"sort-vars": 2,
"spaced-comment": [2,"always",{}],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}],
"keyword-spacing": ["error", { "after": true }],
"space-before-blocks": "error",
"space-infix-ops": "error"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment