Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let globals = require('globals')
let jest = { }
for (let i in globals.jest) {
if (i !== 'test' && i !== 'xtest') jest[i] = globals.jest[i]
}
module.exports = {
extends: 'standard',
plugins: [
'jest',
'security',
'node',
'unicorn'
],
rules: {
'standard/no-callback-literal': 'off',
'security/detect-possible-timing-attacks': 'error',
'security/detect-eval-with-expression': 'error',
'security/detect-non-literal-require': 'error',
},
mocha: {
globals: globals.mocha
},
jasmine: {
globals: globals.jasmine
},
jest: {
/*
* For backward compatibility.
* Remove those on the next major release.
*/
globals: Object.assign(
{ check: false, gen: false },
globals.jest
)
},
phantomjs: {
globals: globals.phantomjs
},
jquery: {
globals: globals.jquery
},
qunit: {
globals: globals.qunit
},
prototypejs: {
globals: globals.prototypejs
},
shelljs: {
globals: globals.shelljs
}
},
worker: {
globals: globals.worker
},
amd: {
globals: globals.amd
},
mocha: {
globals: globals.mocha
},
jasmine: {
globals: globals.jasmine
},
jest: {
globals: globals.jest
},
phantomjs: {
globals: globals.phantomjs
},
jquery: {
globals: globals.jquery
},
qunit: {
globals: globals.qunit
},
prototypejs: {
globals: globals.prototypejs
},
shelljs: {
globals: globals.shelljs
},
let globals = require('globals')
let jest = { }
for (let i in globals.jest) {
if (i !== 'test' && i !== 'xtest') jest[i] = globals.jest[i]
}
module.exports = {
extends: 'standard',
plugins: [
'jest',
'security',
'node',
'unicorn'
],
rules: {
'standard/no-callback-literal': 'off',
'security/detect-possible-timing-attacks': 'error',
'security/detect-eval-with-expression': 'error',
ecmaFeatures: {
globalReturn: true
}
}
},
amd: {
globals: globals.amd
},
mocha: {
globals: globals.mocha
},
jasmine: {
globals: globals.jasmine
},
jest: {
globals: globals.jest
},
phantomjs: {
globals: globals.phantomjs
},
jquery: {
globals: globals.jquery
},
qunit: {
globals: globals.qunit
},
prototypejs: {
globals: globals.prototypejs
},
shelljs: {
globals: globals.shelljs
},