Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'extends': [
'../rules/jest',
].map(require.resolve),
'plugins': [
'jest',
],
'overrides': [{
'env': {
'jest/globals': false,
},
'files': [
'**/*.js',
],
'excludedFiles': testFilePatterns,
// Disable all rules provided by Jest plugin
'rules': Object.keys(jestPlugin.rules).reduce(function (rules, rule) {
rules['jest/' + rule] = 0;
return rules;
}, {}),
}, {
'files': testFilePatterns,
'rules': {
'prefer-import/prefer-import-over-require': 0,
},
}],
};