39 lines
871 B
JavaScript
Raw Normal View History

module.exports = {
2022-08-08 15:42:42 +02:00
extends: '@strapi/eslint-config/back',
2022-08-24 12:56:28 +02:00
parserOptions: {
ecmaVersion: 2021,
2022-08-24 12:56:28 +02:00
},
globals: {
strapi: false,
},
rules: {
'prettier/prettier': 'off',
2022-08-08 23:33:39 +02:00
'import/no-dynamic-require': 'off',
'global-require': 'off',
'import/no-extraneous-dependencies': [
'error',
{
devDependencies: [
'**/test/**/*.js',
'**/tests/**/*.js',
'**/__tests__/**/*.js',
'**/__mocks__/**/*.js',
],
},
],
'prefer-destructuring': ['error', { AssignmentExpression: { array: false } }],
2022-09-05 15:02:36 +02:00
'no-underscore-dangle': 'off',
'no-use-before-define': 'off',
2022-08-08 23:33:39 +02:00
'no-continue': 'warn',
'no-process-exit': 'off',
2022-09-05 15:02:36 +02:00
'no-loop-func': 'off',
'max-classes-per-file': 'off',
2022-09-05 15:07:36 +02:00
'no-param-reassign': [
'error',
{
props: false,
},
],
},
};