-
Notifications
You must be signed in to change notification settings - Fork 309
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
upgrade eslint, eslint-plugin-n, eslint-config-standard (VULN-5530) #4032
Changes from all commits
e322386
ae880e6
1659d55
0b0300a
229be3e
4496613
a4e4b0b
bb1d518
a3cac90
57c2f6c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,4 +6,4 @@ node_modules | |
versions | ||
acmeair-nodejs | ||
vendor | ||
integration-tests/esbuild/out.js | ||
integration-tests/esbuild/*out*.js |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
const crypto = require('crypto') | ||
const app = require('express')() | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
const { | ||
DD_TRACE_SCOPE, | ||
COUNT | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,5 @@ require('dd-trace').init({ | |
service: 'dd-trace-bad-init' | ||
}) | ||
|
||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similarly, if this is allowed in the project, why not add it as a global rule? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's some junk for a test that we otherwise wouldn't want i real tracer code There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could always add a .eslintrc override at the root folder of the tests. |
||
module.exports = require('jest-environment-node') |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
const jest = require('jest') | ||
|
||
const options = { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
const jest = require('jest') | ||
|
||
const options = { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,12 +115,11 @@ | |
"cli-table3": "^0.6.3", | ||
"dotenv": "16.3.1", | ||
"esbuild": "0.16.12", | ||
"eslint": "^8.23.0", | ||
"eslint-config-standard": "^11.0.0-beta.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-standard": "^17", | ||
"eslint-plugin-import": "^2.8.0", | ||
"eslint-plugin-mocha": "^10.1.0", | ||
"eslint-plugin-n": "^15.7.0", | ||
"eslint-plugin-node": "^5.2.1", | ||
"eslint-plugin-n": "^16.6.2", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This version doesn't support older versions of Node. Security fixes should be backportable to all release lines. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm... Do we run the linter with every supported version of Node? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In some cases yes. |
||
"eslint-plugin-promise": "^3.6.0", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"express": "^4.18.2", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
'use strict' | ||
|
||
const { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
const fs = require('fs') | ||
const path = require('path') | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
function configWithFallback ({ tracerService, pluginConfig }) { | ||
return pluginConfig.service || tracerService | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,7 @@ class SpanProcessor { | |
} | ||
|
||
if (this._killAll) { | ||
// eslint-disable-next-line array-callback-return | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is it a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Looks like the author intended to use a forEach? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Then I'd say to change the code instead of adding an eslint rule. |
||
started.map(startedSpan => { | ||
if (!startedSpan._finished) { | ||
startedSpan.finish() | ||
|
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.
If we allow this, why not add it as a global rule?
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.
It's some junk for a test that we otherwise wouldn't want i real tracer code