Update eslint and prettier.

This commit is contained in:
Tobias Lidskog 2017-09-29 16:48:05 +02:00
parent 48c09680b0
commit fb88460247
3 changed files with 16 additions and 7 deletions

View File

@ -14,7 +14,10 @@ module.exports = {
} else {
const filePath = path.resolve(url);
try {
const lines = fs.readFileSync(filePath).toString().split('\n');
const lines = fs
.readFileSync(filePath)
.toString()
.split('\n');
for (let line of lines) {
if (line.trim().length > 0) {
let lineArray = line.split(' ', 2);
@ -43,7 +46,10 @@ module.exports = {
return {};
} else {
const filePath = url;
const lines = fs.readFileSync(filePath).toString().split('\n');
const lines = fs
.readFileSync(filePath)
.toString()
.split('\n');
for (let line of lines) {
if (line.trim().length > 0) {
let url,

View File

@ -14,7 +14,10 @@ module.exports = function pathFromRootToPageDir(url) {
if (!isEmpty(parsedUrl.search)) {
const md5 = crypto.createHash('md5'),
hash = md5.update(parsedUrl.search).digest('hex').substring(0, 8);
hash = md5
.update(parsedUrl.search)
.digest('hex')
.substring(0, 8);
pathSegments.push('query-' + hash);
}

View File

@ -54,14 +54,14 @@
"chai-as-promised": "^6.0.0",
"clean-css-cli": "^4.0.7",
"eclint": "~1.1.5",
"eslint": "~4.2.0",
"eslint-config-prettier": "~2.3.0",
"eslint-plugin-prettier": "~2.1.2",
"eslint": "^4.7.2",
"eslint-config-prettier": "^2.6.0",
"eslint-plugin-prettier": "^2.3.1",
"jsdoc": "^3.3.3",
"license-checker": "^5.1.2",
"mocha": "^3.1.2",
"node-sass": "^4.5.0",
"prettier": "~1.5.3",
"prettier": "^1.7.2",
"pug-lint": "~2.3.0",
"pug-lint-config-clock": "^2.0.0"
},