Skip to content

tools: enable linter in test/fixtures/errors #57701

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Apr 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default [
// We want to lint only a few specific fixtures folders
'test/fixtures/*',
'!test/fixtures/console',
'!test/fixtures/errors',
'!test/fixtures/eval',
'!test/fixtures/v8',
'!test/fixtures/vm',
Expand Down
3 changes: 2 additions & 1 deletion test/fixtures/errors/force_colors.js
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
throw new Error('Should include grayed stack trace')
'use strict';
throw new Error('Should include grayed stack trace');
6 changes: 3 additions & 3 deletions test/fixtures/errors/force_colors.snapshot
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
*force_colors.js:1
throw new Error('Should include grayed stack trace')
*force_colors.js:2
throw new Error('Should include grayed stack trace');
^

Error: Should include grayed stack trace
at Object.<anonymous> (/test*force_colors.js:1:7)
at Object.<anonymous> (/test*force_colors.js:2:7)
 at *
 at *
 at *
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/errors/throw_in_eval_anonymous.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ eval(`

throw new Error('error in anonymous script');

`)
`);
2 changes: 1 addition & 1 deletion test/fixtures/errors/throw_in_eval_named.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/fixtures/errors/throw_in_line_with_tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
// USE OR OTHER DEALINGS IN THE SOFTWARE.

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

Expand Down
Loading