43 lines
1009 B
JavaScript
Raw Permalink Normal View History

module.exports = {
extends: '@strapi/eslint-config/back/javascript',
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',
2023-08-01 21:01:49 +02:00
'**/test/**/*.ts',
2022-08-08 23:33:39 +02:00
'**/tests/**/*.js',
2023-08-01 21:01:49 +02:00
'**/tests/**/*.ts',
2022-08-08 23:33:39 +02:00
'**/__tests__/**/*.js',
2023-08-01 21:01:49 +02:00
'**/__tests__/**/*.ts',
2022-08-08 23:33:39 +02:00
'**/__mocks__/**/*.js',
2023-08-01 21:01:49 +02:00
'**/__mocks__/**/*.ts',
2022-08-08 23:33:39 +02:00
],
},
],
'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,
},
],
},
};