You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
494 B

module.exports = {
description: 'warns about use of eval',
warnings: [
{
code: 'EVAL',
message: `Use of eval is strongly discouraged, as it poses security risks and may cause issues with minification`,
pos: 13,
loc: {
column: 13,
file: require( 'path' ).resolve( __dirname, 'main.js' ),
line: 1
},
frame: `
1: var result = eval( '1 + 1' );
^
`,
url: 'https://github.com/rollup/rollup/wiki/Troubleshooting#avoiding-eval'
}
]
};