Skip to content

Commit

Permalink
Fixing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliecarey committed Jan 21, 2024
1 parent 956afeb commit 1e4e69c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions features/support/global/initKit.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const path = require('path')
const events = require('events')

const { startingPort, verboseLogging, baseDir } = require('./config')
const fse = require('fs-extra')

let nextPort = startingPort

Expand Down Expand Up @@ -77,7 +76,7 @@ function initKit (config) {
})
}

async function setUsageDataPermission(config) {
async function setUsageDataPermission (config) {
// const filePath = path.join(config.directory, 'usage-data-config.json')
// console.log('Writing usage data file', filePath)
// await fse.writeJson(filePath, { collectUsageData: false })
Expand Down
3 changes: 1 addition & 2 deletions lib/plugins/plugin-validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ function validateConfigurationValues (pluginConfig, executionPath) {

async function validatePlugin (executionPath, argv) {
console.log()
let configFileName = 'nowprototypeit.config.json or govuk-prototype-kit.config.json'
let configFileName = 'nowprototypeit.config.json or govuk-prototype-kit.config.json'
await Promise.all([
path.join(executionPath, 'nowprototypeit.config.json'),
path.join(executionPath, 'govuk-prototype-kit.config.json')
Expand Down Expand Up @@ -237,7 +237,6 @@ async function validatePlugin (executionPath, argv) {
const caveat = meta ? ' other than the metadata' : ''
errors.push(`There are no contents in your govuk-prototype.config file${caveat}!`)
} else {

console.log(`Config file ${configFileName} exists, validating contents.`)
// Perform the rest of the checks if the config file has contents
const validKeysPluginConfig = validateConfigKeys(pluginConfig, argv)
Expand Down

0 comments on commit 1e4e69c

Please sign in to comment.