From d04236a4e4d82692cd1876dbbd65747ea7d048e3 Mon Sep 17 00:00:00 2001 From: cpcwood Date: Wed, 18 Nov 2020 21:36:38 +0000 Subject: [PATCH] update lint command --- package.json | 2 +- test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 259a617..6a1b9d5 100755 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "scripts": { "test": "jest --no-cache --coverage", "coveralls": "cat ./coverage/lcov.info | coveralls", - "eslint": "eslint index.js" + "lint": "eslint index.js test.js --fix" }, "repository": { "type": "git", diff --git a/test.js b/test.js index fcb2f7e..36a9b86 100755 --- a/test.js +++ b/test.js @@ -1,3 +1,4 @@ +/* eslint no-undef: 0 */ const fs = require('fs') const { process } = require('./index') const path = require('path') @@ -105,7 +106,6 @@ test('user config - warning - could not be loaded', () => { expect(consoleSpy).toHaveBeenLastCalledWith('WARNING - User Configuration could not be loaded, please check configuration is correct and report to the maintainers!') }) - // Errors test('error - general failure of childProcess.spawnSync', () => { jest.spyOn(childProcess, 'spawnSync').mockImplementation(() => { return { status: 1, signal: 'test', error: 'test' } })