Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'node/shebang': 'warn',
// Disallow deprecated API
// Node has many deprecated API. The community is going to remove those API from Node in future,
// so we should not use those.
'node/no-deprecated-api': 'warn',
},
overrides: [{
files: globs.javascripts,
parserOptions: {
sourceType: 'script',
},
}, {
files: globs.esmodules,
parserOptions: {
sourceType: 'module',
},
env: {
es6: true,
},
rules: {
// Report modules without any exports & individual exports not being statically imported or
// requireed from other modules in the same project
'import/no-unused-modules': ['warn', {
missingExports: true,
unusedExports: true,
}],