forked from strapi/strapi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.back.js
42 lines (41 loc) · 977 Bytes
/
.eslintrc.back.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
'use strict';
module.exports = {
extends: '@strapi/eslint-config/back',
parserOptions: {
ecmaVersion: 2020,
},
globals: {
strapi: false,
},
rules: {
'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 } }],
'no-underscore-dangle': 'off',
'no-use-before-define': 'off',
'no-continue': 'warn',
'no-process-exit': 'off',
'no-loop-func': 'off',
'max-classes-per-file': 'off',
'no-param-reassign': [
'error',
{
props: false,
},
],
},
};