-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Tidy up node & config files including excepting them from import/no-nodejs-modules #83691
Conversation
…rt/no-nodejs-modules
🚨 Warning: This pull request contains Frontend and Backend changes! It's discouraged to make changes to Sentry's Frontend and Backend in a single pull request. The Frontend and Backend are not atomically deployed. If the changes are interdependent of each other, they must be separated into two pull requests and be made forward or backwards compatible, such that the Backend or Frontend can be safely deployed independently. Have questions? Please ask in the |
api-docs/index.ts
Outdated
for (const [k, v] of Object.entries(dict)) { | ||
res.push(`${k}: ${v}`); | ||
} | ||
return res.join('\n'); | ||
} | ||
|
||
function bundle(originalFile) { | ||
const root = yaml.safeLoad(fs.readFileSync(originalFile, 'utf8')); | ||
const root = yaml.load(fs.readFileSync(originalFile, 'utf8')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i don't think the types we have installed match the version of js-yaml we're using
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i rolled back the safeload
->load
change, and some of the ts-ignores went away too.
…rt/no-nodejs-modules (#83691)
No description provided.