Skip to content

Commit a62226b

Browse files
committed
lint
1 parent 2088988 commit a62226b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

script/enterprise-server-releases/add-ghec-to-fpt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ allContentFiles
8080
const { data, content } = frontmatter(fs.readFileSync(file, 'utf8'))
8181

8282
// Return early if the current page frontmatter does not apply to either GHEC or the given fpt release
83-
if (!data.versions['fpt']) return
83+
if (!data.versions.fpt) return
8484

8585
const conditionalsToUpdate = getConditionalsToUpdate(content)
8686
if (!conditionalsToUpdate.length) return
@@ -89,7 +89,7 @@ allContentFiles
8989
const newContent = updateLiquid(conditionalsToUpdate, content)
9090

9191
// Add frontmatter version
92-
data.versions['ghec'] = '*'
92+
data.versions.ghec = '*'
9393

9494
// Update Liquid in frontmatter props
9595
Object.keys(data)

script/enterprise-server-releases/ghes-to-ghae-versioning.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ const fs = require('fs')
44
const path = require('path')
55
const walk = require('walk-sync')
66
const program = require('commander')
7+
const { escapeRegExp } = require('lodash')
78
const frontmatter = require('../../lib/read-frontmatter')
89
const contentPath = path.join(process.cwd(), 'content')
910
const dataPath = path.join(process.cwd(), 'data')

0 commit comments

Comments
 (0)