tools: enable linter in test/fixtures/errors

PR-URL: https://github.com/nodejs/node/pull/57701
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
This commit is contained in:
Antoine du Hamel 2025-04-04 15:41:48 +02:00 committed by GitHub
parent 274898af4c
commit caf478b72e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 9 additions and 7 deletions

View File

@ -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/*',

View File

@ -1 +1,2 @@
throw new Error('Should include grayed stack trace')
'use strict';
throw new Error('Should include grayed stack trace');

View File

@ -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 *

View File

@ -6,4 +6,4 @@ eval(`
throw new Error('error in anonymous script');
`)
`);

View File

@ -6,4 +6,4 @@ eval(`
throw new Error('error in named script');
//# sourceURL=evalscript.js`)
//# sourceURL=evalscript.js`);

View File

@ -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');