mirror of
				https://github.com/strapi/strapi.git
				synced 2025-11-03 19:36:20 +00:00 
			
		
		
		
	# Conflicts: # .eslintrc.js # package.json # packages/strapi-admin/admin/src/containers/HomePage/CommunityContent.js # packages/strapi-admin/admin/src/containers/HomePage/WelcomeContent.js # packages/strapi-helper-plugin/lib/src/components/InputTextWithErrors/index.js # packages/strapi-hook-bookshelf/lib/index.js # packages/strapi-hook-bookshelf/lib/utils/graphql.js # packages/strapi-hook-bookshelf/lib/utils/index.js # packages/strapi-plugin-content-manager/admin/src/components/FilterOptions/InputWithAutoFocus.js # packages/strapi-plugin-content-manager/admin/src/components/SelectMany/index.js # packages/strapi-plugin-content-manager/admin/src/components/SelectOne/index.js # packages/strapi-plugin-content-manager/admin/src/components/TableHeader/index.js # packages/strapi-plugin-content-manager/admin/src/containers/ListPage/index.js # packages/strapi-plugin-content-manager/admin/src/containers/SettingPage/index.js # packages/strapi-plugin-content-manager/config/policies/routing.js # packages/strapi-plugin-content-manager/services/ContentManager.js # packages/strapi-plugin-content-type-builder/admin/src/components/TableListRow/index.js # packages/strapi-plugin-content-type-builder/admin/src/containers/AttributesPickerModal/index.js # packages/strapi-utils/lib/models.js # yarn.lock
		
			
				
	
	
		
			55 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			55 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
module.exports = {
 | 
						|
  parser: 'babel-eslint',
 | 
						|
  extends: [
 | 
						|
    'eslint:recommended',
 | 
						|
    'plugin:react/recommended',
 | 
						|
    'plugin:redux-saga/recommended',
 | 
						|
 | 
						|
    'prettier',
 | 
						|
  ],
 | 
						|
  plugins: ['react', 'redux-saga', 'react-hooks'],
 | 
						|
  env: {
 | 
						|
    browser: true,
 | 
						|
    commonjs: true,
 | 
						|
    es6: true,
 | 
						|
    node: true,
 | 
						|
    jest: true,
 | 
						|
    mocha: true,
 | 
						|
  },
 | 
						|
  parserOptions: {
 | 
						|
    ecmaVersion: 2018,
 | 
						|
    ecmaFeatures: {
 | 
						|
      jsx: true,
 | 
						|
    },
 | 
						|
    sourceType: 'module',
 | 
						|
  },
 | 
						|
  // all readonly
 | 
						|
  globals: {
 | 
						|
    strapi: false,
 | 
						|
    window: false,
 | 
						|
    cy: false,
 | 
						|
    Cypress: false,
 | 
						|
    expect: false,
 | 
						|
    assert: false,
 | 
						|
    chai: false,
 | 
						|
    // TODO: put all this in process.env in webpack to avoid having to set them here
 | 
						|
    REMOTE_URL: true,
 | 
						|
    BACKEND_URL: true,
 | 
						|
    PUBLIC_PATH: true,
 | 
						|
    MODE: true,
 | 
						|
    NODE_ENV: true,
 | 
						|
  },
 | 
						|
  rules: {
 | 
						|
    'generator-star-spacing': 0,
 | 
						|
    'no-console': 0,
 | 
						|
    'require-atomic-updates': 0,
 | 
						|
    'react-hooks/rules-of-hooks': 'error',
 | 
						|
    'react-hooks/exhaustive-deps': 'warn',
 | 
						|
  },
 | 
						|
  settings: {
 | 
						|
    react: {
 | 
						|
      version: '16.5.2',
 | 
						|
    },
 | 
						|
  },
 | 
						|
};
 |