Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'node/process-exit-as-throw': 'error',
// Suggest correct usage of shebang
// This rule checks bin field of package.json, then if a target file matches one of bin files,
// it checks whether or not there is a correct shebang. Otherwise it checks whether or not there
// is not a shebang.
'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: {