From 95dad5d1a713def0c3da87887337d6cb82902de1 Mon Sep 17 00:00:00 2001 From: abetomo Date: Fri, 7 Sep 2018 20:28:33 +0900 Subject: [PATCH] Modify to follow the rules of the new 'standard' I upgraded the package and fixed it according to the latest 'standard' rules. --- package.json | 18 +++++++++--------- tests/fixtures/clean.md | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 272a40b..4d62176 100644 --- a/package.json +++ b/package.json @@ -20,17 +20,17 @@ "author": "Zeke Sikelianos (http://zeke.sikelianos.com)", "license": "MIT", "dependencies": { - "async": "^2.0.1", - "commander": "^2.9.0", - "globby": "^6.0.0", - "lodash.flatten": "^4.2.0", - "lodash.range": "^3.1.5", - "ora": "^1.2.0", - "standard": "^10.0.2" + "async": "^2.6.1", + "commander": "^2.18.0", + "globby": "^8.0.1", + "lodash.flatten": "^4.4.0", + "lodash.range": "^3.2.0", + "ora": "^3.0.0", + "standard": "^12.0.1" }, "devDependencies": { - "tap-spec": "^4.1.1", - "tape": "^4.6.0" + "tap-spec": "^5.0.0", + "tape": "^4.9.1" }, "engines": { "node": ">=4" diff --git a/tests/fixtures/clean.md b/tests/fixtures/clean.md index 992848f..3cc2fa8 100644 --- a/tests/fixtures/clean.md +++ b/tests/fixtures/clean.md @@ -23,7 +23,7 @@ It should allow creation of unused variables ```js // `BrowserWindow` is declared but not used -const {BrowserWindow} = require('electron') +const { BrowserWindow } = require('electron') ``` It should allow orphan objects: @@ -60,7 +60,7 @@ and wrapped arrays: Electron docs have a bunch of non-node-style callbacks that don't have `err` as the first arg: ```javascript -const {app} = require('electron') +const { app } = require('electron') app.on('certificate-error', (event, webContents, url, error, certificate, callback) => { if (url === 'https://github.com') {