Fix a few ESLint errors/warnings

This commit is contained in:
Peter deHaan 2018-08-31 12:22:44 -07:00
Родитель 9dc5ef270f
Коммит a513f5afde
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F0FC6C01C6305097
3 изменённых файлов: 42 добавлений и 30 удалений

Просмотреть файл

@ -1,29 +1,43 @@
{
"name": "workshop",
"version": "1.1.0",
"private": true,
"scripts": {
"start": "node server",
"dev": "nodemon build/server",
"build": "node scripts/generateVersionJSON",
"postinstall": "npm run build",
"test": "npm run lint",
"lint": "eslint --ext=.js,.json .",
"posttest": "npm audit || true"
},
"dependencies": {
"cors": "2.8.4",
"decimal": "0.0.2",
"express": "4.16.3",
"express-force-ssl": "0.3.2",
"helmet": "3.13.0",
"morgan": "1.9.0",
"request": "2.88.0"
},
"devDependencies": {
"eslint": "5.4.0",
"eslint-plugin-json": "1.2.1",
"eslint-plugin-node": "7.0.1",
"nodemon": "1.18.3"
}
"name": "workshop",
"version": "1.1.0",
"private": true,
"engines": {
"node": ">=8"
},
"scripts": {
"start": "node server",
"dev": "nodemon build/server",
"build": "node scripts/generateVersionJSON",
"postinstall": "npm run build",
"test": "npm run lint",
"lint": "eslint --ext=.js,.json .",
"posttest": "npm audit || true"
},
"dependencies": {
"cors": "2.8.4",
"decimal": "0.0.2",
"express": "4.16.3",
"express-force-ssl": "0.3.2",
"helmet": "3.13.0",
"morgan": "1.9.0",
"request": "2.88.0"
},
"devDependencies": {
"eslint": "5.4.0",
"eslint-plugin-json": "1.2.1",
"eslint-plugin-node": "7.0.1",
"nodemon": "1.18.3"
},
"description": "Workshop, previously called fhwr-unflattener, serves the Firefox Hardware Report dataset in the format that ensemble-transposer expects.",
"repository": {
"type": "git",
"url": "git+https://github.com/mozilla/workshop.git"
},
"keywords": [],
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/mozilla/workshop/issues"
},
"homepage": "https://github.com/mozilla/workshop#readme"
}

Просмотреть файл

@ -16,7 +16,7 @@ const app = express();
app.use(helmet({
contentSecurityPolicy: {
directives: {
defaultSrc: ["'none'"],
defaultSrc: ['\'none\''],
},
},
frameguard: {

Просмотреть файл

@ -1,7 +1,5 @@
const request = require('request');
const decimal = require('decimal');
const fs = require('fs');
const path = require('path');
module.exports = (flatURL, cb) => {