Enable ESLint react/recommended ruleset (#22460)
This commit is contained in:
		
							parent
							
								
									131e6403cc
								
							
						
					
					
						commit
						cbf5ea39d0
					
				
							
								
								
									
										12
									
								
								.eslintrc.js
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								.eslintrc.js
									
									
									
									
									
								
							@ -3,6 +3,7 @@ module.exports = {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  extends: [
 | 
					  extends: [
 | 
				
			||||||
    'eslint:recommended',
 | 
					    'eslint:recommended',
 | 
				
			||||||
 | 
					    'plugin:react/recommended',
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  env: {
 | 
					  env: {
 | 
				
			||||||
@ -112,19 +113,16 @@ module.exports = {
 | 
				
			|||||||
    'react/jsx-boolean-value': 'error',
 | 
					    'react/jsx-boolean-value': 'error',
 | 
				
			||||||
    'react/jsx-closing-bracket-location': ['error', 'line-aligned'],
 | 
					    'react/jsx-closing-bracket-location': ['error', 'line-aligned'],
 | 
				
			||||||
    'react/jsx-curly-spacing': 'error',
 | 
					    'react/jsx-curly-spacing': 'error',
 | 
				
			||||||
 | 
					    'react/display-name': 'off',
 | 
				
			||||||
    'react/jsx-equals-spacing': 'error',
 | 
					    'react/jsx-equals-spacing': 'error',
 | 
				
			||||||
    'react/jsx-first-prop-new-line': ['error', 'multiline-multiprop'],
 | 
					    'react/jsx-first-prop-new-line': ['error', 'multiline-multiprop'],
 | 
				
			||||||
    'react/jsx-indent': ['error', 2],
 | 
					    'react/jsx-indent': ['error', 2],
 | 
				
			||||||
    'react/jsx-no-bind': 'error',
 | 
					    'react/jsx-no-bind': 'error',
 | 
				
			||||||
    'react/jsx-no-duplicate-props': 'error',
 | 
					    'react/jsx-no-target-blank': 'off',
 | 
				
			||||||
    'react/jsx-no-undef': 'error',
 | 
					 | 
				
			||||||
    'react/jsx-tag-spacing': 'error',
 | 
					    'react/jsx-tag-spacing': 'error',
 | 
				
			||||||
    'react/jsx-uses-react': 'error',
 | 
					 | 
				
			||||||
    'react/jsx-uses-vars': 'error',
 | 
					 | 
				
			||||||
    'react/jsx-wrap-multilines': 'error',
 | 
					    'react/jsx-wrap-multilines': 'error',
 | 
				
			||||||
    'react/no-multi-comp': 'off',
 | 
					    'react/no-deprecated': 'off',
 | 
				
			||||||
    'react/no-string-refs': 'error',
 | 
					    'react/no-unknown-property': 'off',
 | 
				
			||||||
    'react/prop-types': 'error',
 | 
					 | 
				
			||||||
    'react/self-closing-comp': 'error',
 | 
					    'react/self-closing-comp': 'error',
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    'jsx-a11y/accessible-emoji': 'warn',
 | 
					    'jsx-a11y/accessible-emoji': 'warn',
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user