Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(eslint): use common config #382

Merged
merged 10 commits into from
Dec 23, 2021
Merged

chore(eslint): use common config #382

merged 10 commits into from
Dec 23, 2021

Conversation

atabel
Copy link
Contributor

@atabel atabel commented Dec 21, 2021

Telefonica/js-toolbox#21

const page = await openStoryPage({
id: 'components-forms-select--default',
device,
userAgent,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated. This was a TS error. I think CI doesn't check TS on test files

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm, I added a yarn ts-check in the ci target... it should check types in jenkins (at least in master)

@@ -4,7 +4,7 @@ import Popover from '../popover';
import {ThemeContextProvider} from '..';
import {makeTheme} from './test-utils';

type Props = Omit<React.ComponentProps<typeof Popover>, 'children' | 'description' | 'target'>;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated, ts error

src/list.tsx Outdated
@@ -246,6 +246,7 @@ interface SwitchRowContentProps extends CommonProps {
checkbox?: undefined;
radioValue?: undefined;
newTab?: undefined;
fullPageOnWebView?: undefined;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fixes a TS error in list-type-test.tsx

interface FontFace extends FontFaceDescriptors {
new (family: string, source: string | ArrayBuffer, descriptors?: FontFaceDescriptors): FontFace;
class FontFace extends FontFaceDescriptors {
constructor(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ts error

@github-actions
Copy link

github-actions bot commented Dec 21, 2021

Deploy preview for mistica-web ready!

✅ Preview
https://mistica-web-h9954chyk-tuentisre.vercel.app

Built with commit d8dc561.
This pull request is being automatically deployed with vercel-action

@github-actions
Copy link

github-actions bot commented Dec 21, 2021

Accessibility report
✔️ No issues found

ℹ️ You can run this locally by executing yarn audit-accessibility.

package.json Outdated
@@ -76,6 +76,7 @@
"@swc/core": "^1.2.93",
"@swc/jest": "^0.2.4",
"@telefonica/acceptance-testing": "^2.5.0",
"@telefonica/eslint-config": "^1.0.0-beta5",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@atabel atabel requested a review from pladaria December 21, 2021 14:50
@yceballost
Copy link
Contributor

welcome story is broken🤭

https://mistica-web-fqpjoiea1-tuentisre.vercel.app/?path=/story/welcome-welcome--mistica

@@ -1,4 +1,3 @@
/* eslint-disable filenames/match-regex */
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps the rule could allow any *.config.js files

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does

Comment on lines +10 to 14
"transform": {
"react": {
"runtime": "automatic"
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fixes the welcome story

@atabel
Copy link
Contributor Author

atabel commented Dec 23, 2021

welcome story is brokenhand_over_mouth

mistica-web-fqpjoiea1-tuentisre.vercel.app/?path=/story/welcome-welcome--mistica

Fixed

@atabel atabel merged commit 32a463b into master Dec 23, 2021
@atabel atabel deleted the atoledano-common-eslint branch December 23, 2021 16:26
@tuentisre
Copy link
Collaborator

🎉 This PR is included in version 10.14.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants