Skip to content

Commit 6211992

Browse files
authoredMay 8, 2024··
Upgrade to Foundry v8 (#2509)

32 files changed

+3507
-3116
lines changed
 

‎.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = require('@sumup/foundry/eslint')({
1+
module.exports = require('@sumup-oss/foundry/eslint')({
22
extends: [
33
'plugin:storybook/recommended',
44
'plugin:react-server-components/recommended',

‎.huskyrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
* limitations under the License.
1414
*/
1515

16-
module.exports = require('@sumup/foundry/husky')();
16+
module.exports = require('@sumup-oss/foundry/husky')();

‎.stylelintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = require('@sumup/foundry/stylelint')({
1+
module.exports = require('@sumup-oss/foundry/stylelint')({
22
rules: {
33
'selector-class-pattern': [
44
'^([a-z][a-z0-9]*)(-[a-z0-9]+)*$',

‎lint-staged.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* limitations under the License.
1414
*/
1515

16-
module.exports = require('@sumup/foundry/lint-staged')({
16+
module.exports = require('@sumup-oss/foundry/lint-staged')({
1717
'*.svg': ['svgo --config svgo.config.js --pretty'],
1818
'*.css': ['stylelint'],
1919
});

‎package-lock.json

+3,473-3,086
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,14 @@
5959
"@storybook/source-loader": "^8.0.2",
6060
"@storybook/test": "^8.0.2",
6161
"@storybook/theming": "^8.0.2",
62+
"@sumup-oss/foundry": "^8.0.0",
6263
"@sumup/eslint-plugin-circuit-ui": "^4.0.0",
63-
"@sumup/foundry": "^7.1.1",
6464
"@sumup/stylelint-plugin-circuit-ui": "^2.0.0",
6565
"@types/node": "^18.16.19",
6666
"@vitest/coverage-v8": "^1.3.1",
6767
"audit-ci": "^6.6.1",
6868
"chromatic": "^11.0.8",
69+
"eslint-config-airbnb-typescript": "^18.0.0",
6970
"eslint-import-resolver-typescript": "^3.6.1",
7071
"eslint-plugin-prettier": "^5.1.3",
7172
"eslint-plugin-react-server-components": "^1.1.2",

‎packages/astro-template/.eslintrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@sumup/foundry/eslint')();
1+
module.exports = require('@sumup-oss/foundry/eslint')();

‎packages/astro-template/.huskyrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@sumup/foundry/husky')();
1+
module.exports = require('@sumup-oss/foundry/husky')();
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@sumup/foundry/stylelint')();
1+
module.exports = require('@sumup-oss/foundry/stylelint')();
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@sumup/foundry/lint-staged')();
1+
module.exports = require('@sumup-oss/foundry/lint-staged')();

‎packages/astro-template/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
},
2929
"devDependencies": {
3030
"@sumup/eslint-plugin-circuit-ui": "^4.0.0",
31-
"@sumup/foundry": "^7.1.1",
31+
"@sumup-oss/foundry": "^8.0.0",
3232
"@sumup/stylelint-plugin-circuit-ui": "^2.0.0",
3333
"prettier-plugin-astro": "^0.13.0"
3434
}

‎packages/astro-template/prettier.config.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = require('@sumup/foundry/prettier')({
1+
module.exports = require('@sumup-oss/foundry/prettier')({
22
plugins: ['prettier-plugin-astro'],
33
overrides: [
44
{

‎packages/circuit-ui/components/Button/Button.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ export type ButtonProps = SharedButtonProps & {
6363
* to a different screen.
6464
*/
6565
export const Button: ForwardRefExoticComponent<
66+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6667
PropsWithoutRef<ButtonProps> & RefAttributes<any>
6768
> = createButtonComponent<ButtonProps>(
6869
'Button',

‎packages/circuit-ui/components/Button/IconButton.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export type IconButtonProps = SharedButtonProps & {
6161
* to a different screen.
6262
*/
6363
export const IconButton: ForwardRefExoticComponent<
64+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
6465
PropsWithoutRef<IconButtonProps> & RefAttributes<any>
6566
> = createButtonComponent<IconButtonProps>(
6667
'IconButton',

‎packages/circuit-ui/components/Button/base.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export function createButtonComponent<Props>(
127127
// TODO: Refactor to `mapClassName` once the deprecations have been removed.
128128
mapProps: (props: Props) => CreateButtonComponentProps,
129129
) {
130+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
130131
const Button = forwardRef<any, Props>((props, ref) => {
131132
const {
132133
children,

‎packages/circuit-ui/components/CloseButton/CloseButton.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export type CloseButtonProps = Omit<IconButtonProps, 'icon'>;
2323
/**
2424
* A generic close button.
2525
*/
26+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
2627
export const CloseButton = forwardRef<any, CloseButtonProps>(
2728
({ label = 'Close', children = label, ...props }, ref) => (
2829
<IconButton

‎packages/circuit-ui/components/Hamburger/Hamburger.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export interface HamburgerProps
5050
/**
5151
* A hamburger button for menus. Morphs into a close icon when active.
5252
*/
53+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
5354
export const Hamburger = forwardRef<any, HamburgerProps>(
5455
(
5556
{

‎packages/circuit-ui/types/prop-types.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
import type { ElementType } from 'react';
1818

1919
// This is how we should type the `as` prop in Circuit components, because the
20-
// prop should accept either a Component or a string (for an element)
21-
export type AsPropType = ElementType<any> | string;
20+
// prop should accept either a Component or an HTMLElement name.
21+
export type AsPropType = ElementType<any>;
2222

2323
// This is the type that Emotion expects
2424
export type EmotionAsPropType = ElementType<any> & string;
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@sumup/foundry/eslint')();
1+
module.exports = require('@sumup-oss/foundry/eslint')();
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@sumup/foundry/husky')();
1+
module.exports = require('@sumup-oss/foundry/husky')();
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@sumup/foundry/stylelint')();
1+
module.exports = require('@sumup-oss/foundry/stylelint')();
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@sumup/foundry/lint-staged')();
1+
module.exports = require('@sumup-oss/foundry/lint-staged')();

‎packages/cna-template/template/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
},
2525
"devDependencies": {
2626
"@sumup/eslint-plugin-circuit-ui": "^4.0.0",
27-
"@sumup/foundry": "^7.1.1",
27+
"@sumup-oss/foundry": "^8.0.0",
2828
"@sumup/stylelint-plugin-circuit-ui": "^2.0.0",
2929
"@testing-library/jest-dom": "^6.2.0",
3030
"@testing-library/react": "^14.1.2",
@@ -35,7 +35,7 @@
3535
"@types/react": "^18.3.1",
3636
"@types/react-dom": "^18.2.18",
3737
"eslint-config-next": "^14.1.1",
38-
"eslint-plugin-jest": "^27.9.0",
38+
"eslint-plugin-jest": "^28.5.0",
3939
"eslint-plugin-testing-library": "^6.2.2",
4040
"jest": "^29.7.0",
4141
"jest-axe": "^8.0.0",
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@sumup/foundry/prettier')();
1+
module.exports = require('@sumup-oss/foundry/prettier')();

‎packages/remix-template/.eslintrc.cjs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
module.exports = require('@sumup/foundry/eslint')({
2-
extends: ['@remix-run/eslint-config', '@remix-run/eslint-config/node'],
1+
module.exports = require('@sumup-oss/foundry/eslint')({
32
rules: {
43
'notice/notice': 'off',
54
},

‎packages/remix-template/.huskyrc.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@sumup/foundry/husky')();
1+
module.exports = require('@sumup-oss/foundry/husky')();
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@sumup/foundry/stylelint')();
1+
module.exports = require('@sumup-oss/foundry/stylelint')();
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@sumup/foundry/lint-staged')();
1+
module.exports = require('@sumup-oss/foundry/lint-staged')();

‎packages/remix-template/package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,8 @@
2828
},
2929
"devDependencies": {
3030
"@remix-run/dev": "^2.4.1",
31-
"@remix-run/eslint-config": "^2.4.1",
3231
"@sumup/eslint-plugin-circuit-ui": "^4.0.0",
33-
"@sumup/foundry": "^7.1.1",
32+
"@sumup-oss/foundry": "^8.0.0",
3433
"@sumup/stylelint-plugin-circuit-ui": "^2.0.0",
3534
"@types/react": "^18.3.1",
3635
"@types/react-dom": "^18.2.18",
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = require('@sumup/foundry/prettier')();
1+
module.exports = require('@sumup-oss/foundry/prettier')();

‎prettier.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* limitations under the License.
1414
*/
1515

16-
module.exports = require('@sumup/foundry/prettier')({
16+
module.exports = require('@sumup-oss/foundry/prettier')({
1717
overrides: [
1818
{
1919
files: '*.css',

‎scripts/.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
*/
1515

1616
// eslint-disable-next-line import/no-extraneous-dependencies
17-
module.exports = require('@sumup/foundry/eslint')({
17+
module.exports = require('@sumup-oss/foundry/eslint')({
1818
rules: {
1919
'arrow-parens': 'off',
2020
'no-console': 'off',

0 commit comments

Comments
 (0)
Please sign in to comment.