diff --git a/eslint.config.mjs b/eslint.config.mjs index 5bc223481a3..2dbd8afabe7 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -60,6 +60,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/test-runner', 'test/fixtures/test-runner/*', diff --git a/test/fixtures/errors/force_colors.js b/test/fixtures/errors/force_colors.js index 0f3c92c6f86..a19a78f0929 100644 --- a/test/fixtures/errors/force_colors.js +++ b/test/fixtures/errors/force_colors.js @@ -1 +1,2 @@ -throw new Error('Should include grayed stack trace') +'use strict'; +throw new Error('Should include grayed stack trace'); diff --git a/test/fixtures/errors/force_colors.snapshot b/test/fixtures/errors/force_colors.snapshot index e5a03ca6094..93ac005e833 100644 --- a/test/fixtures/errors/force_colors.snapshot +++ b/test/fixtures/errors/force_colors.snapshot @@ -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. (/test*force_colors.js:1:7) + at Object. (/test*force_colors.js:2:7)  at *  at *  at * diff --git a/test/fixtures/errors/throw_in_eval_anonymous.js b/test/fixtures/errors/throw_in_eval_anonymous.js index aa9ab6a0580..e325841f4be 100644 --- a/test/fixtures/errors/throw_in_eval_anonymous.js +++ b/test/fixtures/errors/throw_in_eval_anonymous.js @@ -6,4 +6,4 @@ eval(` throw new Error('error in anonymous script'); -`) +`); diff --git a/test/fixtures/errors/throw_in_eval_named.js b/test/fixtures/errors/throw_in_eval_named.js index 0d33fcf4d05..e04d8f7f296 100644 --- a/test/fixtures/errors/throw_in_eval_named.js +++ b/test/fixtures/errors/throw_in_eval_named.js @@ -6,4 +6,4 @@ eval(` throw new Error('error in named script'); -//# sourceURL=evalscript.js`) +//# sourceURL=evalscript.js`); diff --git a/test/fixtures/errors/throw_in_line_with_tabs.js b/test/fixtures/errors/throw_in_line_with_tabs.js index b62d4225979..f38ebfbb324 100644 --- a/test/fixtures/errors/throw_in_line_with_tabs.js +++ b/test/fixtures/errors/throw_in_line_with_tabs.js @@ -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');