1
0
mirror of synced 2025-12-21 10:57:10 -05:00

Remove remaining JSON requires (#20110)

* Remove remaining JSON requires

* Lint

* Update feature-flags.js
This commit is contained in:
Kevin Heis
2021-06-23 14:57:50 -07:00
committed by GitHub
parent 6f4439a631
commit a92d820888
21 changed files with 63 additions and 34 deletions

View File

@@ -1,15 +1,17 @@
const path = require('path')
const visit = require('unist-util-visit')
const externalRedirects = Object.keys(require('../../redirects/external-sites'))
const { getPathWithoutLanguage, getVersionStringFromPath } = require('../../path-utils')
const { getNewVersionedPath } = require('../../old-versions-utils')
const patterns = require('../../patterns')
const { deprecated, latest } = require('../../enterprise-server-releases')
const nonEnterpriseDefaultVersion = require('../../non-enterprise-default-version')
const allVersions = require('../../all-versions')
const removeFPTFromPath = require('../../remove-fpt-from-path')
const supportedVersions = Object.keys(allVersions)
const supportedPlans = Object.values(allVersions).map(v => v.plan)
const removeFPTFromPath = require('../../remove-fpt-from-path')
const readJsonFile = require('../../read-json-file')
const externalRedirects = Object.keys(readJsonFile('./lib/redirects/external-sites.json'))
// Matches any <a> tags with an href that starts with `/`
const matcher = node => (