Streaming: replace npmlog with pino & pino-http (#27828)

This commit is contained in:
Emelia Smith 2024-01-18 19:40:25 +01:00 committed by GitHub
parent f866413e72
commit 1335083bed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 593 additions and 252 deletions

View file

@ -15,7 +15,18 @@ module.exports = defineConfig({
ecmaVersion: 2021,
},
rules: {
// In the streaming server we need to delete some variables to ensure
// garbage collection takes place on the values referenced by those objects;
// The alternative is to declare the variable as nullable, but then we need
// to assert it's in existence before every use, which becomes much harder
// to maintain.
'no-delete-var': 'off',
// The streaming server is written in commonjs, not ESM for now:
'import/no-commonjs': 'off',
// This overrides the base configuration for this rule to pick up
// dependencies for the streaming server from the correct package.json file.
'import/no-extraneous-dependencies': [
'error',
{