Skip to content

Commit

Permalink
chore(deps): update typescript (#1207)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: LekoArts <[email protected]>
  • Loading branch information
renovate[bot] and LekoArts authored Aug 29, 2023
1 parent 1f33b28 commit db7a2d7
Show file tree
Hide file tree
Showing 23 changed files with 4,358 additions and 3,014 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/unit-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ jobs:
run: yarn lint
- name: Run Vitest
run: yarn test:ci
- name: Run TypeScript
run: yarn typecheck:ci
# Don't run typechecking until Theme UI is updated to support new JSX syntax in 5.1
# see https://github.com/system-ui/theme-ui/pull/2432
# - name: Run TypeScript
# run: yarn typecheck:ci
4 changes: 2 additions & 2 deletions examples/cara/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^18.17.11",
"@types/node": "^18.17.12",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"cross-env": "^7.0.3",
"typescript": "^4.9.5"
"typescript": "^5.2.2"
}
}
4 changes: 2 additions & 2 deletions examples/emilia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^18.17.11",
"@types/node": "^18.17.12",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"cross-env": "^7.0.3",
"typescript": "^4.9.5"
"typescript": "^5.2.2"
}
}
4 changes: 2 additions & 2 deletions examples/emma/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^18.17.11",
"@types/node": "^18.17.12",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"cross-env": "^7.0.3",
"typescript": "^4.9.5"
"typescript": "^5.2.2"
}
}
4 changes: 2 additions & 2 deletions examples/graphql-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^18.17.11",
"@types/node": "^18.17.12",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"cross-env": "^7.0.3",
"typescript": "^4.9.5"
"typescript": "^5.2.2"
}
}
4 changes: 2 additions & 2 deletions examples/jodie/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^18.17.11",
"@types/node": "^18.17.12",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"cross-env": "^7.0.3",
"typescript": "^4.9.5"
"typescript": "^5.2.2"
}
}
4 changes: 2 additions & 2 deletions examples/minimal-blog/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^18.17.11",
"@types/node": "^18.17.12",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"cross-env": "^7.0.3",
"typescript": "^4.9.5"
"typescript": "^5.2.2"
}
}
4 changes: 2 additions & 2 deletions examples/specimens/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
"theme-ui": "~0.15.3"
},
"devDependencies": {
"@types/node": "^18.17.11",
"@types/node": "^18.17.12",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"cross-env": "^7.0.3",
"typescript": "^4.9.5"
"typescript": "^5.2.2"
}
}
14 changes: 7 additions & 7 deletions examples/specimens/src/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ render(
<Alert type="warning">Gentle warning :)</Alert>
<Alert type="info">Super helpful information goes here</Alert>
<Alert type="danger">nooooooooo, not this way</Alert>
</React.Fragment>
</React.Fragment>,
);
```

Expand Down Expand Up @@ -200,7 +200,7 @@ render(
<ColorSwatch color="#2d3748" name="Blueish" />
<ColorSwatch color="#667eea" name="Swift" minimal />
<ColorSwatch color="#4fd1c5" name="4" prefix="Teal - " />
</React.Fragment>
</React.Fragment>,
);
```

Expand Down Expand Up @@ -392,7 +392,7 @@ render(
allowed: [`h1`, `h2`],
})}
config={theme}
/>
/>,
);
```

Expand Down Expand Up @@ -440,7 +440,7 @@ render(
/>
<h4>Orange</h4>
<Palette colors={orange} />
</React.Fragment>
</React.Fragment>,
);
```

Expand Down Expand Up @@ -481,7 +481,7 @@ render(
colors={normalizeThemeUIColors({ colors: theme.colors })}
minimal
mode="swatch"
/>
/>,
);
```

Expand All @@ -497,7 +497,7 @@ This theme also exposes a `Table` component. It is used in this case to showcase

The `columns` prop is defining the `grid-template-columns` of the table in the fashion of Theme UI ([Responsive Styles](https://theme-ui.com/getting-started#responsive-styles)). The `titles` should be the same count as columns.

So you can define the style for every breakpoint, e.g. `` [`120px 1fr`, `150px 1fr`] `` (120px for everything below the smallest breakpoint, 150px for everything above smallest breakpoint).
So you can define the style for every breakpoint, e.g. ``[`120px 1fr`, `150px 1fr`]`` (120px for everything below the smallest breakpoint, 150px for everything above smallest breakpoint).

You can format the data you want to show how you like but in the end you should have the amount of columns as defined above.

Expand Down Expand Up @@ -530,7 +530,7 @@ render(
<div>{value}</div>
</div>
))}
</Table>
</Table>,
);
```

Expand Down
4 changes: 2 additions & 2 deletions examples/status-dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/node": "^18.17.11",
"@types/node": "^18.17.12",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"cross-env": "^7.0.3",
"typescript": "^4.9.5"
"typescript": "^5.2.2"
}
}
4 changes: 2 additions & 2 deletions examples/styleguide/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@
"theme-ui": "~0.15.3"
},
"devDependencies": {
"@types/node": "^18.17.11",
"@types/node": "^18.17.12",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"cross-env": "^7.0.3",
"typescript": "^4.9.5"
"typescript": "^5.2.2"
}
}
39 changes: 19 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,42 +38,41 @@
"@swc-node/register": "^1.6.7",
"@swc/core": "^1.3.80",
"@testing-library/cypress": "^9.0.0",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/jest-dom": "^6.1.2",
"@testing-library/react": "^14.0.0",
"@types/chroma-js": "^2.4.0",
"@types/fs-extra": "^11.0.1",
"@types/loadable__component": "^5.13.4",
"@types/node": "^18.16.16",
"@types/react": "^18.2.7",
"@types/react-dom": "^18.2.4",
"@types/styled-system": "^5.1.16",
"@types/node": "^18.17.12",
"@types/react": "^18.2.21",
"@types/react-dom": "^18.2.7",
"@types/styled-system": "^5.1.17",
"@types/styled-system__css": "^5.0.17",
"@types/three": "^0.152.1",
"@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.8",
"@vitest/coverage-c8": "^0.33.0",
"c8": "^7.14.0",
"@types/three": "^0.155.1",
"@typescript-eslint/eslint-plugin": "^6.5.0",
"@typescript-eslint/parser": "^6.5.0",
"@vitest/coverage-v8": "^0.34.3",
"cross-env": "^7.0.3",
"cypress": "^12.17.4",
"eslint": "^8.42.0",
"eslint": "^8.48.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-mdx": "^2.1.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-mdx": "^2.2.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"fs-extra": "^11.1.1",
"gatsby-cypress": "^3.12.0",
"glob": "^10.3.3",
"happy-dom": "^9.20.3",
"husky": "^8.0.3",
"lint-staged": "^13.3.0",
"jsdom": "^22.1.0",
"lint-staged": "^14.0.1",
"plop": "^3.1.2",
"prettier": "^2.8.8",
"prettier": "^3.0.2",
"start-server-and-test": "^2.0.0",
"typescript": "^5.0.4",
"typescript": "^5.2.2",
"vitest": "^0.34.3"
},
"resolutions": {
Expand Down
24 changes: 12 additions & 12 deletions themes/gatsby-theme-emilia-core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,18 @@ npm install @lekoarts/gatsby-theme-emilia-core

### Theme options

| Key | Default Value | Description |
| ----------------- | ----------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `basePath` | `/` | Root url for the theme |
| `projectsPath` | `content/projects` | Location of projects |
| `assetsPath` | `content/assets` | Location of assets (such as the avatar in the header) |
| `mdx` | `true` | Configure `gatsby-plugin-mdx` (if your website already is using the plugin pass `false` to turn this off) |
| `sharp` | `true` | Configure `gatsby-plugin-sharp` (if your website already is using the plugin pass `false` to turn this off) |
| `name` | `LekoArts` | The name displayed as the title on the homepage, and the link to the homepage (top left corner) |
| `location` | `Germany` | Shown below the title |
| `socialMedia` | `` [{ title: `Twitter`, href: `https://twitter.com/lekoarts_de` }, { title: `Homepage`, href: `https://www.lekoarts.de` }] `` | An array of objects (with the keys "title" and "href" display on the homepage. Can of course hold any kind of links (not limited to social media) |
| `showThemeAuthor` | `true` | Show the "Theme by LekoArts" in the footer |
| `formatString` | `DD.MM.YYYY` | Configure the date format for Date fields |
| Key | Default Value | Description |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
| `basePath` | `/` | Root url for the theme |
| `projectsPath` | `content/projects` | Location of projects |
| `assetsPath` | `content/assets` | Location of assets (such as the avatar in the header) |
| `mdx` | `true` | Configure `gatsby-plugin-mdx` (if your website already is using the plugin pass `false` to turn this off) |
| `sharp` | `true` | Configure `gatsby-plugin-sharp` (if your website already is using the plugin pass `false` to turn this off) |
| `name` | `LekoArts` | The name displayed as the title on the homepage, and the link to the homepage (top left corner) |
| `location` | `Germany` | Shown below the title |
| `socialMedia` | ``[{ title: `Twitter`, href: `https://twitter.com/lekoarts_de` }, { title: `Homepage`, href: `https://www.lekoarts.de` }]`` | An array of objects (with the keys "title" and "href" display on the homepage. Can of course hold any kind of links (not limited to social media) |
| `showThemeAuthor` | `true` | Show the "Theme by LekoArts" in the footer |
| `formatString` | `DD.MM.YYYY` | Configure the date format for Date fields |

### Shadowing

Expand Down
Loading

0 comments on commit db7a2d7

Please sign in to comment.