Skip to content

Commit f245bfe

Browse files
committed
tools: enable linter in test/fixtures/errors
PR-URL: #57701 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
1 parent dc732b1 commit f245bfe

6 files changed

+9
-7
lines changed

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export default [
6060
// We want to lint only a few specific fixtures folders
6161
'test/fixtures/*',
6262
'!test/fixtures/console',
63+
'!test/fixtures/errors',
6364
'!test/fixtures/eval',
6465
'!test/fixtures/test-runner',
6566
'test/fixtures/test-runner/*',

test/fixtures/errors/force_colors.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
throw new Error('Should include grayed stack trace')
1+
'use strict';
2+
throw new Error('Should include grayed stack trace');

test/fixtures/errors/force_colors.snapshot

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
*force_colors.js:1
2-
throw new Error('Should include grayed stack trace')
1+
*force_colors.js:2
2+
throw new Error('Should include grayed stack trace');
33
^
44

55
Error: Should include grayed stack trace
6-
at Object.<anonymous> (/test*force_colors.js:1:7)
6+
at Object.<anonymous> (/test*force_colors.js:2:7)
77
 at *
88
 at *
99
 at *

test/fixtures/errors/throw_in_eval_anonymous.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ eval(`
66
77
throw new Error('error in anonymous script');
88
9-
`)
9+
`);

test/fixtures/errors/throw_in_eval_named.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/fixtures/errors/throw_in_line_with_tabs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
2020
// USE OR OTHER DEALINGS IN THE SOFTWARE.
2121

22-
/* eslint-disable indent, no-tabs */
22+
/* eslint-disable @stylistic/js/indent, @stylistic/js/no-tabs */
2323
'use strict';
2424
require('../../common');
2525

0 commit comments

Comments
 (0)