Skip to content

Commit

Permalink
Disable n/no-missing-require in benchmark folder
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Feb 13, 2025
1 parent 9a4365f commit 286701a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion benchmark/sirun/appsec-iast/insecure-bank.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const http = require('http')
const app = require('/opt/insecure-bank-js/app') // eslint-disable-line import/no-absolute-path, n/no-missing-require
const app = require('/opt/insecure-bank-js/app') // eslint-disable-line import/no-absolute-path

const { port } = require('./common')

Expand Down
2 changes: 1 addition & 1 deletion benchmark/sirun/appsec/insecure-bank.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const http = require('http')
const app = require('/opt/insecure-bank-js/app') // eslint-disable-line import/no-absolute-path, n/no-missing-require
const app = require('/opt/insecure-bank-js/app') // eslint-disable-line import/no-absolute-path

const { port } = require('./common')

Expand Down
1 change: 0 additions & 1 deletion benchmark/sirun/plugin-bluebird/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ if (Number(process.env.USE_TRACER)) {
require('../../..').init()
}

// eslint-disable-next-line n/no-missing-require
const Promise = require('../../../versions/bluebird/node_modules/bluebird/js/release/bluebird')

const count = process.env.COUNT ? Number(process.env.COUNT) : 50000
Expand Down
9 changes: 9 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,15 @@ export default [
]]
}
},
{
name: 'dd-trace/benchmarks',
files: [
'benchmark/**/*'
],
rules: {
'n/no-missing-require': 'off'
}
},
{
name: 'dd-trace/tests/all',
files: TEST_FILES,
Expand Down

0 comments on commit 286701a

Please sign in to comment.