2020-10-27 11:27:17 +01:00
|
|
|
'use strict';
|
|
|
|
|
2020-01-24 15:39:14 +01:00
|
|
|
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: 2020,
|
|
|
|
},
|
2020-01-24 15:39:14 +01:00
|
|
|
globals: {
|
|
|
|
strapi: false,
|
|
|
|
},
|
|
|
|
rules: {
|
2022-08-08 23:33:39 +02:00
|
|
|
'import/no-dynamic-require': 'off',
|
|
|
|
'global-require': 'off',
|
|
|
|
'import/no-extraneous-dependencies': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
devDependencies: [
|
|
|
|
'packages/admin-test-utils/**/*.js',
|
|
|
|
'packages/generators/admin/**/*.js',
|
|
|
|
'scripts/**/*.js',
|
|
|
|
'**/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',
|
2022-08-18 09:35:08 +02:00
|
|
|
'no-process-exit': 'off',
|
2022-09-05 15:02:36 +02:00
|
|
|
'no-loop-func': 'off',
|
2022-09-05 15:07:36 +02:00
|
|
|
'no-param-reassign': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
props: false,
|
|
|
|
},
|
|
|
|
],
|
2020-01-24 15:39:14 +01:00
|
|
|
},
|
|
|
|
};
|