Skip to content

Commit 87f8d3c

Browse files
authored
tools: enable linter in test/fixtures/source-map/output
PR-URL: #57700 Reviewed-By: Moshe Atlow <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent caf478b commit 87f8d3c

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Diff for: eslint.config.mjs

+8
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,14 @@ export default [
6262
'!test/fixtures/console',
6363
'!test/fixtures/errors',
6464
'!test/fixtures/eval',
65+
'!test/fixtures/source-map',
66+
'test/fixtures/source-map/*',
67+
'!test/fixtures/source-map/output',
68+
...filterFilesInDir(
69+
'test/fixtures/source-map/output',
70+
// Filtering tsc output files (i.e. if there a foo.ts, we ignore foo.js):
71+
(f, _, files) => f.endsWith('js') && files.includes(f.replace(/(\.[cm]?)js$/, '$1ts')),
72+
),
6573
'!test/fixtures/test-runner',
6674
'test/fixtures/test-runner/*',
6775
'!test/fixtures/test-runner/output',

Diff for: test/fixtures/source-map/output/source_map_enabled_by_api_node_modules.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@ try {
4545
require('../node_modules/error-stack/enclosing-call-site-min.js').simpleErrorStack();
4646
} catch (e) {
4747
console.log(e);
48-
}
48+
}

Diff for: test/fixtures/source-map/output/source_map_prepare_stack_trace.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Error.stackTraceLimit = 5;
99
assert.strictEqual(typeof Error.prepareStackTrace, 'function');
1010
const defaultPrepareStackTrace = Error.prepareStackTrace;
1111
Error.prepareStackTrace = (error, trace) => {
12-
trace = trace.filter(it => {
12+
trace = trace.filter((it) => {
1313
return it.getFunctionName() !== 'functionC';
1414
});
1515
return defaultPrepareStackTrace(error, trace);

0 commit comments

Comments
 (0)