mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
766d9a8eac
commit
b9043c9e9b
6 files changed
+9
-7
No files matched your search
@@ -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/*',
|
||||
|
||||
Vendored
+2
-1
@@ -1 +1,2 @@
|
||||
throw new Error('Should include grayed stack trace')
|
||||
'use strict';
|
||||
throw new Error('Should include grayed stack trace');
|
||||
+3
-3
@@ -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> [90m(/[39mtest*force_colors.js:1:7[90m)[39m
|
||||
at Object.<anonymous> [90m(/[39mtest*force_colors.js:2:7[90m)[39m
|
||||
[90m at *[39m
|
||||
[90m at *[39m
|
||||
[90m at *[39m
|
||||
|
||||
+1
-1
@@ -6,4 +6,4 @@ eval(`
|
||||
|
||||
throw new Error('error in anonymous script');
|
||||
|
||||
`)
|
||||
`);
|
||||
+1
-1
@@ -6,4 +6,4 @@ eval(`
|
||||
|
||||
throw new Error('error in named script');
|
||||
|
||||
//# sourceURL=evalscript.js`)
|
||||
//# sourceURL=evalscript.js`);
|
||||
+1
-1
@@ -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');
|
||||
|
||||
|
||||
Reference in new issue
Block a user