Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
style: formatted the code so the validate job can pass
Browse files Browse the repository at this point in the history
  • Loading branch information
glenngijsberts committed Mar 30, 2021
1 parent 78f9f96 commit 86538a4
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 8 deletions.
16 changes: 11 additions & 5 deletions src/Icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,19 @@ const InlineSvg = styled.svg`
`

export interface IconProps {
size?: number,
children?: ReactNode,
a11yTitle: string,
color?: string,
size?: number
children?: ReactNode
a11yTitle: string
color?: string
}

export const Icon: React.FC<IconProps> = ({ size = 32, children, a11yTitle, color, ...props }) => (
export const Icon: React.FC<IconProps> = ({
size = 32,
children,
a11yTitle,
color,
...props
}) => (
<SvgWrapper iconSize={size} className="icon" color={color} {...props}>
<InlineSvg
aria-label={a11yTitle}
Expand Down
13 changes: 10 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"allowJs": false,
"allowSyntheticDefaultImports": true,
"declaration": true,
"declarationDir": "dist/types",
"declarationDir": "dist",
"esModuleInterop": true,
"outDir": "./dist",
"outDir": "dist",
"jsx": "react",
"lib": ["es6", "dom", "es2016", "es2017"],
"module": "esnext",
Expand All @@ -18,5 +18,12 @@
"types": ["jest", "node"]
},
"include": ["src/**/*"],
"exclude": ["**/node_modules", "**/build", "**/dist", "**/*.md", "**/rollup.config.js", "**/*.stories.js"]
"exclude": [
"**/node_modules",
"**/build",
"**/dist",
"**/*.md",
"**/rollup.config.js",
"**/*.stories.js"
]
}

0 comments on commit 86538a4

Please sign in to comment.