Skip to content

Commit

Permalink
[update] eslint and lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
bjrmatos committed Jun 6, 2016
1 parent f86f01f commit 3b77698
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
22 changes: 13 additions & 9 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -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,14 +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,
"space-before-function-paren": [2, "never"]
"space-before-function-paren": [2, "never"],
"no-underscore-dangle": 0
}
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@
},
"devDependencies": {
"babel": "5.8.34",
"eslint": "1.10.3",
"eslint-config-airbnb": "2.0.0",
"electron-prebuilt": "1.2.1",
"eslint": "2.11.1",
"eslint-config-airbnb-base": "3.0.1",
"eslint-plugin-import": "1.8.1",
"jsreport-core": "0.6.4",
"jsreport-express": "0.3.2",
"jsreport-templates": "0.3.0",
Expand Down
5 changes: 5 additions & 0 deletions test/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"env": {
"mocha": true // adds all of the Mocha testing global variables.
}
}

0 comments on commit 3b77698

Please sign in to comment.