Skip to content

Commit

Permalink
[update] eslint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
bjrmatos committed Jun 5, 2016
1 parent 83cf7f4 commit 990c1f2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .eslintrc
@@ -1,19 +1,20 @@
{
"extends": "eslint-config-airbnb/base", // https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb/.eslintrc
"extends": "eslint-config-airbnb-base",

// Allow the following global variables
"env": {
"browser": true, // browser global variables
"node": true, // Node.js global variables and Node.js scoping.
"mocha": true // adds all of the Mocha testing global variables.
"node": true // Node.js global variables and Node.js scoping.
},

"ecmaFeatures": {
"restParams": true,
"experimentalObjectRestSpread": true
"parserOptions": {
"ecmaFeatures": {
experimentalObjectRestSpread: true
}
},

"rules": {
"strict": [2, "safe"],

/**
* ES6
*/
Expand Down Expand Up @@ -52,6 +53,7 @@
"builtinGlobals": true
}],
"wrap-iife": [2, "inside"],
"max-len": [2, 130, 2, {"ignoreUrls": true}],

/**
* Style
Expand All @@ -61,13 +63,16 @@
"var": 2,
"let": 2,
"const": 3
}
},
"SwitchCase": 1
}],
"func-names": 0,
"no-multiple-empty-lines": [2, {
"max": 1
}],
"no-extra-parens": [2, "functions"],
"one-var": 0
"one-var": 0,
"space-before-function-paren": [2, "never"],
"no-underscore-dangle": 0
}
}
5 changes: 5 additions & 0 deletions test/.eslintrc
@@ -0,0 +1,5 @@
{
"env": {
"mocha": true // adds all of the Mocha testing global variables.
}
}

0 comments on commit 990c1f2

Please sign in to comment.