Skip to content

Commit

Permalink
Merge 59c7e37 into e423773
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot-preview[bot] committed Dec 6, 2019
2 parents e423773 + 59c7e37 commit 384480f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 10 deletions.
5 changes: 1 addition & 4 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"extends": "hexo",
"root": true,
"parserOptions": {
"ecmaVersion": 2018
}
"root": true
}
2 changes: 1 addition & 1 deletion lib/plugins/filter/after_render/meta_generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function hexoMetaGeneratorInject(data) {

const hexoGeneratorTag = `<meta name="generator" content="Hexo ${this.version}">`;

return data.replace(/<head>(?!<\/head>).+?<\/head>/s, (str) => str.replace('</head>', `${hexoGeneratorTag}</head>`));
return data.replace(/<head>(?!<\/head>).+?<\/head>/s, str => str.replace('</head>', `${hexoGeneratorTag}</head>`));
}

module.exports = hexoMetaGeneratorInject;
2 changes: 1 addition & 1 deletion lib/plugins/helper/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const moment = require('moment-timezone');
const { isMoment } = moment;

const isDate = (value) => {
const isDate = value => {
if (typeof value === 'object') {
if (value instanceof Date) return !isNaN(value.getTime());
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"chai": "^4.1.2",
"chai-as-promised": "^7.1.1",
"eslint": "^6.0.1",
"eslint-config-hexo": "^3.0.0",
"eslint-config-hexo": "^4.0.0",
"hexo-renderer-marked": "^2.0.0",
"husky": "^3.0.0",
"lint-staged": "^9.1.0",
Expand Down
3 changes: 0 additions & 3 deletions test/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"extends": "hexo/test",
"env": {
"es6": true
},
"globals": {
"should": true
}
Expand Down

0 comments on commit 384480f

Please sign in to comment.