@strapi/eslint-config
Version:
Strapi eslint configurations
27 lines (26 loc) • 708 B
JavaScript
module.exports = {
extends: ['../base.js', 'plugin:node/recommended'],
rules: {
'node/no-unpublished-require': 'off',
'node/no-extraneous-require': 'off',
'node/exports-style': ['error', 'module.exports'],
'node/no-new-require': 'error',
'node/no-path-concat': 'error',
'node/no-callback-literal': 'error',
'node/handle-callback-err': 'error',
'no-restricted-syntax': 'off',
'no-await-in-loop': 'off',
'no-console': 'off',
'no-shadow': 'off',
'no-use-before-define': [
'error',
{
functions: false,
classes: true,
variables: true,
allowNamedExports: false,
},
],
'consistent-return': 'off',
},
};