Skip to content

Commit

Permalink
chore(deps): eslint@7.4.0, eslint-config@8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kenany committed Jul 8, 2020
1 parent b69e57b commit 9ca0771
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,5 @@ jobs:
run: npm ls
- name: Test
run: npm test
- name: Lint
run: npm run lint
6 changes: 5 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ function birthByAgeAtDate(age, date, currentDate) {

if (!currentDate) {
var nowDate = new Date(now());
currentDate = new Date(nowDate.getFullYear(), nowDate.getMonth(), nowDate.getDate());
currentDate = new Date(
nowDate.getFullYear(),
nowDate.getMonth(),
nowDate.getDate()
);
}

var birth = {};
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"test": "test"
},
"scripts": {
"pretest": "eslint index.js test/index.js",
"lint": "eslint index.js test/index.js",
"test": "tape test/index.js"
},
"dependencies": {
Expand All @@ -29,9 +29,9 @@
"lodash.now": "^4.0.0"
},
"devDependencies": {
"@kenan/eslint-config": "^2.0.0",
"@kenan/eslint-config": "^8.0.0",
"@kenan/renovate-config": "^1.1.1",
"eslint": "^3.3.0",
"eslint": "^7.4.0",
"tape": "^4.4.0"
}
}
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var birth = require('../');
var test = require('tape');
var birth = require('../');

var now = new Date(2014, 3, 17);

Expand Down

0 comments on commit 9ca0771

Please sign in to comment.