Skip to content

Commit 5703147

Browse files
committed
tools: enable linter in test/fixtures/source-map/output
PR-URL: #57700 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 80d58c3 commit 5703147

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

eslint.config.mjs

Lines changed: 8 additions & 0 deletions
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',

test/fixtures/source-map/output/source_map_enabled_by_api_node_modules.js

Lines changed: 1 addition & 1 deletion
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+
}

test/fixtures/source-map/output/source_map_prepare_stack_trace.js

Lines changed: 1 addition & 1 deletion
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)