Skip to content

Commit f7edd77

Browse files
author
Tiko
committed
added object-curly-spacing to linter for import linting
1 parent b972fe8 commit f7edd77

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+163
-153
lines changed

components/.eslintrc.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ module.exports = {
3838
"error",
3939
"always"
4040
],
41+
"object-curly-spacing": [
42+
2,
43+
"always",
44+
{ "objectsInObjects": false }
45+
],
4146
"react/prop-types": "off"
4247
}
4348
};

components/src/components/ArrowLink/ArrowLink.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from "react";
22
import styled from "styled-components";
3-
import {Paragraph} from "../Typography";
4-
import {DiagonalArrow} from "../../icons";
5-
import {WithStyle} from "../../types/utils";
3+
import { Paragraph } from "../Typography";
4+
import { DiagonalArrow } from "../../icons";
5+
import { WithStyle } from "../../types/utils";
66

77
type ArrowLinkProps = {
88
onClick: () => void;
@@ -24,7 +24,7 @@ const StyledParagraph = styled(Paragraph)`
2424
padding-right: 5px;
2525
`;
2626

27-
const ArrowLink = ({onClick, text, className}: WithStyle<ArrowLinkProps>) => (
27+
const ArrowLink = ({ onClick, text, className }: WithStyle<ArrowLinkProps>) => (
2828
<ArrowLinkContainer onClick={onClick} className={className}>
2929
<StyledParagraph fontWeight="bold" text={text} />
3030
<DiagonalArrow color="black" size={24} />

components/src/components/Branding/Branding.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from "react";
2-
import {theme, ThemeColors} from "../../theme";
2+
import { theme, ThemeColors } from "../../theme";
33

44
interface Logo {
55
color: ThemeColors;

components/src/components/Button/Button.styling.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {theme} from "../../theme";
1+
import { theme } from "../../theme";
22
import styled from "styled-components";
33
import { ButtonStylingProps } from "../../types/Button.types";
44

components/src/components/Button/Button.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React, { useState } from "react";
2-
import {theme} from "../../theme";
2+
import { theme } from "../../theme";
33
import { ButtonStyled } from "./Button.styling";
44
import { ButtonProps } from "../../types/Button.types";
5-
import {WithStyle} from "../../types/utils";
5+
import { WithStyle } from "../../types/utils";
66

7-
const Button = ({ text, type, icon, onClick , className}: WithStyle<ButtonProps>) => {
7+
const Button = ({ text, type, icon, onClick , className }: WithStyle<ButtonProps>) => {
88

99
const [isHovered, setIshovered] = useState<boolean>(false);
1010

components/src/components/Container/Container.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import styled from "styled-components";
22
import { layout }from "../../theme";
3-
import {breakpointNameToPx, responsiveValuesCSS} from "../../helpers/responsiveCss";
3+
import { breakpointNameToPx, responsiveValuesCSS } from "../../helpers/responsiveCss";
44

55
const marginLeft = responsiveValuesCSS("padding-left", "px", breakpointNameToPx(layout.container.margin));
66
const marginRight = responsiveValuesCSS("padding-right", "px", breakpointNameToPx(layout.container.margin));

components/src/components/IconTitle/IconTitle.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from "react";
22
import styled from "styled-components";
3-
import {Heading} from "../../components/Typography";
3+
import { Heading } from "../../components/Typography";
44
import { IconComponent } from "../../icons";
5-
import {ThemeColors} from "../../theme";
5+
import { ThemeColors } from "../../theme";
66

77
const StyledTitle = styled.div`
88
display: flex;
@@ -20,7 +20,7 @@ type IconTitleProps = {
2020
color?: ThemeColors;
2121
}
2222

23-
const IconTitle = ({icon, text, color="black"}: IconTitleProps) => {
23+
const IconTitle = ({ icon, text, color="black" }: IconTitleProps) => {
2424
const Icon = icon;
2525
return (
2626
<StyledTitle>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export {default } from "./IconTitle";
1+
export { default } from "./IconTitle";
22
export * from "./IconTitle";

components/src/components/SocialButton/SocialButton.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import React, {FunctionComponent, useState} from "react";
2-
import {theme} from "../../theme";
3-
import {IconType} from "../../icons";
1+
import React, { FunctionComponent, useState } from "react";
2+
import { theme } from "../../theme";
3+
import { IconType } from "../../icons";
44
import styled from "styled-components";
5-
import {WithStyle} from "../../types/utils";
5+
import { WithStyle } from "../../types/utils";
66

77
const StyledButton = styled.div<{solid?: boolean, className?: string}>`
88
background-color: ${props => props.solid ? `${theme.colors.buttons.primary.background}` : ""};
@@ -31,7 +31,7 @@ interface SocialButtonProps {
3131
mail?: boolean,
3232
}
3333
// TODO: create proper styling for non-solid social hoven and click
34-
const SocialButton = ({Icon, link, solid, mail, className}: WithStyle<SocialButtonProps>) =>{
34+
const SocialButton = ({ Icon, link, solid, mail, className }: WithStyle<SocialButtonProps>) =>{
3535
const [isHovered, setIsHovered] = useState<boolean>(false);
3636
const handleHover = () => setIsHovered(!isHovered);
3737
const onClick = () => {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export {default } from "./SocialButton";
1+
export { default } from "./SocialButton";
22
export * from "./SocialButton";

0 commit comments

Comments
 (0)