mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-31 09:56:44 +00:00 
			
		
		
		
	Fix lint
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
		
							parent
							
								
									d71235a0c1
								
							
						
					
					
						commit
						81454df46f
					
				| @ -4,6 +4,7 @@ | |||||||
| **/OLD/** | **/OLD/** | ||||||
| testApp/** | testApp/** | ||||||
| examples/** | examples/** | ||||||
|  | cypress/** | ||||||
| packages/strapi-generate-plugin/files/admin/src/** | packages/strapi-generate-plugin/files/admin/src/** | ||||||
| packages/strapi-helper-plugin/** | packages/strapi-helper-plugin/** | ||||||
| packages/strapi-plugin-users-permissions/admin/** | packages/strapi-plugin-users-permissions/admin/** | ||||||
|  | |||||||
| @ -64,9 +64,14 @@ module.exports = { | |||||||
|       { |       { | ||||||
|         flatTernaryExpressions: false, |         flatTernaryExpressions: false, | ||||||
|         SwitchCase: 1, |         SwitchCase: 1, | ||||||
|         ignoredNodes: ['ConditionalExpression', "VariableDeclarator[kind='const']"], |         ignoredNodes: [ | ||||||
|  |           'ConditionalExpression', | ||||||
|  |           "VariableDeclarator[kind='const']", | ||||||
|  |           'TemplateLiteral', | ||||||
|  |         ], | ||||||
|       }, |       }, | ||||||
|     ], |     ], | ||||||
|  |     'template-curly-spacing': 0, | ||||||
|     'func-names': ['error', 'never'], |     'func-names': ['error', 'never'], | ||||||
|     'function-paren-newline': 0, |     'function-paren-newline': 0, | ||||||
|     'implicit-arrow-linebreak': 0, |     'implicit-arrow-linebreak': 0, | ||||||
|  | |||||||
| @ -19,7 +19,7 @@ const MenuDropdown = styled(DropdownMenu)` | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return ''; |   return ''; | ||||||
|   }} | }} | ||||||
| `;
 | `;
 | ||||||
| 
 | 
 | ||||||
| export default MenuDropdown; | export default MenuDropdown; | ||||||
|  | |||||||
| @ -81,7 +81,7 @@ const Toggle = styled(DropdownToggle)` | |||||||
|         border: 1px solid #e3e9f3; |         border: 1px solid #e3e9f3; | ||||||
|       } |       } | ||||||
|     `;
 |     `;
 | ||||||
|   }} | }} | ||||||
| `;
 | `;
 | ||||||
| 
 | 
 | ||||||
| export default Toggle; | export default Toggle; | ||||||
|  | |||||||
| @ -22,7 +22,7 @@ const NameWrapper = styled.div` | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return ''; |   return ''; | ||||||
|   }} | }} | ||||||
| `;
 | `;
 | ||||||
| 
 | 
 | ||||||
| export default NameWrapper; | export default NameWrapper; | ||||||
|  | |||||||
| @ -12,7 +12,7 @@ const Carret = styled.div` | |||||||
|   return ` |   return ` | ||||||
|       left: -1px; |       left: -1px; | ||||||
|     `;
 |     `;
 | ||||||
|   }} | }} | ||||||
|   height: 100%; |   height: 100%; | ||||||
|   width: 2px; |   width: 2px; | ||||||
|   margin-right: 3px; |   margin-right: 3px; | ||||||
|  | |||||||
| @ -24,7 +24,7 @@ const Button = styled(PlusButton)` | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return ''; |   return ''; | ||||||
|   }} | }} | ||||||
|   &.isOpen { |   &.isOpen { | ||||||
|     transform: rotate(-45deg); |     transform: rotate(-45deg); | ||||||
|   } |   } | ||||||
|  | |||||||
| @ -14,7 +14,7 @@ const Wrapper = styled.div` | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return ''; |   return ''; | ||||||
|   }} | }} | ||||||
| `;
 | `;
 | ||||||
| 
 | 
 | ||||||
| export default Wrapper; | export default Wrapper; | ||||||
|  | |||||||
| @ -37,8 +37,7 @@ const Flex = styled.div` | |||||||
| 
 | 
 | ||||||
| const Div = styled.div` | const Div = styled.div` | ||||||
|   width: calc(100% + 60px); |   width: calc(100% + 60px); | ||||||
|   margin: ${props => |   margin: ${props => (props.show ? '-100px -30px 30px' : `-${props.number}px -30px 103px`)}; | ||||||
|     props.show ? '-100px -30px 30px' : `-${props.number}px -30px 103px`}; |  | ||||||
|   background: #fff; |   background: #fff; | ||||||
|   box-shadow: 3px 2px 4px #e3e9f3; |   box-shadow: 3px 2px 4px #e3e9f3; | ||||||
|   padding: 18px 30px 0px 30px; |   padding: 18px 30px 0px 30px; | ||||||
| @ -50,7 +49,7 @@ const Div = styled.div` | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return ''; |   return ''; | ||||||
|   }}; | }}; | ||||||
| `;
 | `;
 | ||||||
| 
 | 
 | ||||||
| export { Div, Flex, Span, Wrapper }; | export { Div, Flex, Span, Wrapper }; | ||||||
|  | |||||||
| @ -60,7 +60,7 @@ const Label = styled.label` | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return ''; |   return ''; | ||||||
|   }} | }} | ||||||
| `;
 | `;
 | ||||||
| 
 | 
 | ||||||
| export { Div, Label }; | export { Div, Label }; | ||||||
|  | |||||||
| @ -58,7 +58,7 @@ const NonRepeatableWrapper = styled.div` | |||||||
|       background-color: #f7f8f8; |       background-color: #f7f8f8; | ||||||
|       margin-bottom: 18px !important; |       margin-bottom: 18px !important; | ||||||
|     `;
 |     `;
 | ||||||
|   }} | }} | ||||||
| `;
 | `;
 | ||||||
| 
 | 
 | ||||||
| export default NonRepeatableWrapper; | export default NonRepeatableWrapper; | ||||||
|  | |||||||
| @ -16,7 +16,7 @@ const Wrapper = styled.div` | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return ''; |   return ''; | ||||||
|   }} | }} | ||||||
|   border-radius: 2px; |   border-radius: 2px; | ||||||
|   > div { |   > div { | ||||||
|     width: 100%; |     width: 100%; | ||||||
|  | |||||||
| @ -9,9 +9,7 @@ const Button = styled.button` | |||||||
|   border: 1px solid rgba(227, 233, 243, 0.75); |   border: 1px solid rgba(227, 233, 243, 0.75); | ||||||
|   border-top: 1px solid |   border-top: 1px solid | ||||||
|     ${({ doesPreviousFieldContainErrorsAndIsClosed }) => |     ${({ doesPreviousFieldContainErrorsAndIsClosed }) => | ||||||
|       doesPreviousFieldContainErrorsAndIsClosed |       doesPreviousFieldContainErrorsAndIsClosed ? '#FFA784' : 'rgba(227, 233, 243, 0.75)'}; | ||||||
|         ? '#FFA784' |  | ||||||
|         : 'rgba(227, 233, 243, 0.75)'}; |  | ||||||
| 
 | 
 | ||||||
|   border-bottom-left-radius: 2px; |   border-bottom-left-radius: 2px; | ||||||
|   border-bottom-right-radius: 2px; |   border-bottom-right-radius: 2px; | ||||||
|  | |||||||
| @ -16,7 +16,7 @@ const EmptyComponent = styled.div` | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return ''; |   return ''; | ||||||
|   }} | }} | ||||||
| 
 | 
 | ||||||
|   > p { |   > p { | ||||||
|     color: #9ea7b8; |     color: #9ea7b8; | ||||||
|  | |||||||
| @ -25,8 +25,7 @@ const Button = styled.button` | |||||||
|     return css` |     return css` | ||||||
|         border: 0; |         border: 0; | ||||||
|         background: rgba(16, 22, 34, 0); |         background: rgba(16, 22, 34, 0); | ||||||
|         box-shadow: inset 0 -1px 0 0 rgba(16, 22, 34, 0.04), |         box-shadow: inset 0 -1px 0 0 rgba(16, 22, 34, 0.04), inset 0 1px 0 0 rgba(16, 22, 34, 0.04); | ||||||
|           inset 0 1px 0 0 rgba(16, 22, 34, 0.04); |  | ||||||
|       `;
 |       `;
 | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
| @ -38,7 +37,7 @@ const Button = styled.button` | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return ''; |   return ''; | ||||||
|   }} | }} | ||||||
| 
 | 
 | ||||||
|   > svg { |   > svg { | ||||||
|     margin: auto; |     margin: auto; | ||||||
|  | |||||||
| @ -27,7 +27,7 @@ const Cell = styled.div` | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return ''; |   return ''; | ||||||
|   }} | }} | ||||||
| 
 | 
 | ||||||
|   > svg { |   > svg { | ||||||
|     z-index: 9; |     z-index: 9; | ||||||
|  | |||||||
| @ -13,7 +13,7 @@ const Wrapper = styled.div` | |||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   return ''; |   return ''; | ||||||
|   }} | }} | ||||||
| `;
 | `;
 | ||||||
| 
 | 
 | ||||||
| export default Wrapper; | export default Wrapper; | ||||||
|  | |||||||
| @ -77,7 +77,7 @@ const StyledButton = styled(Button)` | |||||||
|       margin-left: 45px; |       margin-left: 45px; | ||||||
|       font-weight: 400; |       font-weight: 400; | ||||||
|     `;
 |     `;
 | ||||||
|   }} | }} | ||||||
| `;
 | `;
 | ||||||
| 
 | 
 | ||||||
| export { Wrapper, StyledButton }; | export { Wrapper, StyledButton }; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 soupette
						soupette