mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-04 03:43:34 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			43 lines
		
	
	
		
			1009 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			43 lines
		
	
	
		
			1009 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
module.exports = {
 | 
						|
  extends: '@strapi/eslint-config/back/javascript',
 | 
						|
  parserOptions: {
 | 
						|
    ecmaVersion: 2021,
 | 
						|
  },
 | 
						|
  globals: {
 | 
						|
    strapi: false,
 | 
						|
  },
 | 
						|
  rules: {
 | 
						|
    'prettier/prettier': 'off',
 | 
						|
    'import/no-dynamic-require': 'off',
 | 
						|
    'global-require': 'off',
 | 
						|
    'import/no-extraneous-dependencies': [
 | 
						|
      'error',
 | 
						|
      {
 | 
						|
        devDependencies: [
 | 
						|
          '**/test/**/*.js',
 | 
						|
          '**/test/**/*.ts',
 | 
						|
          '**/tests/**/*.js',
 | 
						|
          '**/tests/**/*.ts',
 | 
						|
          '**/__tests__/**/*.js',
 | 
						|
          '**/__tests__/**/*.ts',
 | 
						|
          '**/__mocks__/**/*.js',
 | 
						|
          '**/__mocks__/**/*.ts',
 | 
						|
        ],
 | 
						|
      },
 | 
						|
    ],
 | 
						|
    '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,
 | 
						|
      },
 | 
						|
    ],
 | 
						|
  },
 | 
						|
};
 |