Skip to content

Instantly share code, notes, and snippets.

@m-arrieta-r
Last active April 23, 2017 19:51
Show Gist options
  • Save m-arrieta-r/ee08b02999fa4493cf10c82500220bd0 to your computer and use it in GitHub Desktop.
Save m-arrieta-r/ee08b02999fa4493cf10c82500220bd0 to your computer and use it in GitHub Desktop.
eslint fuse rules
{
"rules": {
keyword-spacing: [
"warn", {
"before": true,
"after": true,
}],
one-var: ["warn", "never"],
brace-style: "warn",
space-before-function-paren: ["warn", "never"],
no-unused-vars: ["warn", { "args": "none", "vars": "local" }],
no-use-before-define: ["error", { "functions": false, "classes": false, "variables": false }],
no-console: ["warn", { allow: ["warn", "error"] }],
no-cond-assign: ["error"],
no-alert: "error",
no-dupe-keys: "error",
eqeqeq: ["error", "smart"],
require-jsdoc: ["error", {
"require": {
"FunctionDeclaration": true,
"MethodDefinition": false,
"ClassDeclaration": false,
"ArrowFunctionExpression": false
}
}]
},
"env": {
"node": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment