Skip to content

Commit 78fde86

Browse files
committed
fix: migrate eslint ignores
1 parent b6f9a4e commit 78fde86

File tree

10 files changed

+12
-12
lines changed

10 files changed

+12
-12
lines changed

scripts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,6 @@ async function run(steps: string[]) {
8787

8888
run(steps).catch(err => {
8989
console.error(err);
90-
// eslint-disable-next-line no-process-exit
90+
// eslint-disable-next-line n/no-process-exit
9191
process.exit(1);
9292
});

src/plugins/plugin-connect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// limitations under the License.
1414

1515
import {IncomingMessage, ServerResponse} from 'http';
16-
// eslint-disable-next-line node/no-deprecated-api
16+
// eslint-disable-next-line n/no-deprecated-api
1717
import {parse as urlParse} from 'url';
1818

1919
import {PluginTypes} from '..';

src/plugins/plugin-hapi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import {ServerResponse} from 'http';
1616
import * as shimmer from 'shimmer';
17-
// eslint-disable-next-line node/no-deprecated-api
17+
// eslint-disable-next-line n/no-deprecated-api
1818
import {parse as urlParse} from 'url';
1919

2020
import {PluginTypes} from '..';

src/plugins/plugin-http2.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
// This is imported only for types. Generated .js file should NOT load 'http2'.
1717
// `http2` must be used only in type annotations, not in expressions.
18-
// eslint-disable-next-line node/no-unsupported-features/node-builtins
18+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
1919
import * as http2 from 'http2';
2020
import * as shimmer from 'shimmer';
2121
import {URL} from 'url';

src/plugins/plugin-koa.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import {ServerResponse} from 'http';
1616
import * as shimmer from 'shimmer';
17-
// eslint-disable-next-line node/no-deprecated-api
17+
// eslint-disable-next-line n/no-deprecated-api
1818
import {parse as urlParse} from 'url';
1919

2020
import {PluginTypes} from '..';

src/trace-writer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export class TraceWriter extends Service {
152152
this.flushBuffer();
153153
if (onUncaughtException === 'flushAndExit') {
154154
setTimeout(() => {
155-
// eslint-disable-next-line no-process-exit
155+
// eslint-disable-next-line n/no-process-exit
156156
process.exit(1);
157157
}, 2000);
158158
}

test/non-interference/http-e2e.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const testCommonPath = [
4444
});
4545
if (!testCommonPath) {
4646
console.error('No common.js or common/index.js found in test directory');
47-
// eslint-disable-next-line no-process-exit
47+
// eslint-disable-next-line n/no-process-exit
4848
process.exit(1);
4949
}
5050
cp.execFileSync('sed', [

test/non-interference/start-agent.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
'use strict';
1616

1717
const shimmer = require('shimmer');
18-
// eslint-disable-next-line node/no-missing-require
18+
// eslint-disable-next-line n/no-missing-require
1919
const util = require('../../build/src/util.js');
2020
// Stub generateTraceContext so that it always returns the same thing.
2121
// This is because web framework unit tests check that similar/identical
@@ -29,7 +29,7 @@ shimmer.wrap(util, 'generateTraceContext', () => {
2929
return 'ffeeddccbbaa99887766554433221100/0?o=1';
3030
};
3131
});
32-
// eslint-disable-next-line node/no-missing-require
32+
// eslint-disable-next-line n/no-missing-require
3333
require('../..').start({
3434
projectId: '0',
3535
logLevel: 1,

test/plugins/test-trace-http2.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import * as assert from 'assert';
1616
import {describe, it, after, afterEach, before} from 'mocha';
1717
// This is imported only for types. Generated .js file should NOT load 'http2'
1818
// in this place. It is dynamically loaded later from each test suite below.
19-
// eslint-disable-next-line node/no-unsupported-features/node-builtins
19+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
2020
import * as http2Types from 'http2';
2121
import * as semver from 'semver';
2222
import * as stream from 'stream';
@@ -46,7 +46,7 @@ maybeSkipHttp2('Trace Agent integration with http2', () => {
4646
traceTestModule.setPluginLoaderForTest();
4747
traceTestModule.setCLSForTest();
4848
traceTestModule.start();
49-
// eslint-disable-next-line node/no-unsupported-features/node-builtins
49+
// eslint-disable-next-line n/no-unsupported-features/node-builtins
5050
http2 = require('http2');
5151
});
5252

test/plugins/test-trace-node-fetch.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// eslint-disable-next-line node/no-extraneous-import
15+
// eslint-disable-next-line n/no-extraneous-import
1616
import * as fetchTypes from 'node-fetch'; // For types only.
1717
import * as testTraceModule from '../trace';
1818
import * as assert from 'assert';

0 commit comments

Comments
 (0)