-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
_config.js
28 lines (27 loc) · 841 Bytes
/
_config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
const { assertStderrIncludes } = require('../../../utils.js');
module.exports = {
description: 'warns when eval is used multiple times',
command: 'rollup -c',
stderr: stderr =>
assertStderrIncludes(
stderr,
'(!) Use of eval is strongly discouraged\n' +
'https://rollupjs.org/guide/en/#avoiding-eval\n' +
'dep1.js\n' +
'1: eval(\'console.log("Hello");\');\n' +
' ^\n' +
'dep2.js\n' +
'1: eval(\'console.log("Hello");\');\n' +
' ^\n' +
'2: eval(\'console.log("Hello again");\');\n' +
'...and 1 other occurrence\n' +
'dep3.js\n' +
'1: eval(\'console.log("Hello");\');\n' +
' ^\n' +
'2: eval(\'console.log("Hello again");\');\n' +
'3: eval(\'console.log("Hello again and again");\');\n' +
'...and 2 other occurrences\n' +
'\n' +
'...and 3 other files'
)
};