Skip to content

Commit

Permalink
chore: Drop support for node <4 (#21)
Browse files Browse the repository at this point in the history
- drop support for node <4
- update linting & testing libraries
  • Loading branch information
merlinc authored and gavboulton committed Jan 24, 2017
1 parent 07bc6d5 commit ee4c883
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 17 deletions.
32 changes: 18 additions & 14 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
{
"env": {
"node": true
"node": true,
"es6": true
},
"extends": "eslint:recommended",
"rules": {
"no-mixed-requires": [2, { "allowCall": true }],
"quotes": [2, "single"],
"no-trailing-spaces": 2,
"indent": 2,
"linebreak-style": [2, "unix"],
"semi": [2, "always"],
"brace-style": [2, "1tbs", { "allowSingleLine": true }],
"keyword-spacing": 2,
"space-before-blocks": 2,
"space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
"no-mixed-spaces-and-tabs": 2,
"comma-spacing": [2, {"before": false, "after": true}],
"key-spacing": [2, {"beforeColon": false, "afterColon": true}]
"no-unused-vars": ["error", { "argsIgnorePattern": "^(err|req|res|next)$" }],
"no-mixed-requires": ["error", { "allowCall": true }],
"quotes": ["error", "single"],
"no-trailing-spaces": "error",
"indent": "error",
"linebreak-style": ["error", "unix"],
"semi": ["error", "always"],
"brace-style": ["error", "1tbs", { "allowSingleLine": true }],
"keyword-spacing": "error",
"space-before-blocks": "error",
"space-before-function-paren": ["error", { "anonymous": "always", "named": "never" }],
"no-mixed-spaces-and-tabs": "error",
"comma-spacing": ["error", {"before": false, "after": true}],
"key-spacing": ["error", {"beforeColon": false, "afterColon": true}],
"one-var": ["off", { "initialized": "never" }],
"no-var": "off"
}
}
12 changes: 10 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
language: node_js
node_js:
- "0.10"
- "0.12"
- "4"
- "5"
- "6"
- "7"
notifications:
email: false
sudo: false
env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
},
"author": "",
"license": "MIT",
"engines": {
"node": ">=4"
},
"bugs": {
"url": "https://github.com/UKHomeOffice/passports-model/issues"
},
Expand Down
1 change: 0 additions & 1 deletion test/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"env": {
"node": true,
"mocha": true
},
"globals": {
Expand Down

0 comments on commit ee4c883

Please sign in to comment.