@enkidevs/eslint-config-backend
Version:
Backend Eslint Config for Enki
40 lines (38 loc) • 874 B
JavaScript
const NODE_VERSION = process.version.slice(1); // skip v in vA.B.C
module.exports = {
extends: [
'airbnb-base',
'@enkidevs/eslint-config-base',
'plugin:node/recommended',
'plugin:security/recommended',
],
plugins: ['node', 'security'],
env: {
node: true,
},
rules: {
'max-classes-per-file': 'off',
'node/no-missing-require': 'warn',
'node/no-unsupported-features/es-syntax': [
'error',
{
version: NODE_VERSION ? `>=${NODE_VERSION}` : '>=16.13.2',
ignores: [],
},
],
'node/no-unsupported-features/es-builtins': [
'error',
{
version: NODE_VERSION ? `>=${NODE_VERSION}` : '>=16.13.2',
ignores: [],
},
],
'no-underscore-dangle': [
'error',
{
allow: ['_id'],
},
],
'security/detect-object-injection': 'off',
},
};