Skip to content

Comments

ref(ts): Fix lint issues that are being masked#28454

Merged
billyvg merged 2 commits intomasterfrom
feat/ui/upgrade-typescript-eslint-and-fix-lint-errors
Sep 9, 2021
Merged

ref(ts): Fix lint issues that are being masked#28454
billyvg merged 2 commits intomasterfrom
feat/ui/upgrade-typescript-eslint-and-fix-lint-errors

Conversation

@billyvg
Copy link
Member

@billyvg billyvg commented Sep 8, 2021

These are lint issues that will come up in a new version of @typescript-eslint. See getsentry/eslint-config-sentry#105

These are lint issues that will come up in a new version of `@typescript-eslint`. See getsentry/eslint-config-sentry#105
!.github
!.github/workflows/scripts/*
!.storybook
*.d.ts
Copy link
Member Author

Choose a reason for hiding this comment

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

No need to lint this

icon: React.ReactNode;
providerIds: string[];
commitUrl: (CommitFormatterParameters) => string;
commitUrl: (opts: CommitFormatterParameters) => string;
Copy link
Member Author

Choose a reason for hiding this comment

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

Wrong syntax here

Comment on lines +32 to +34
function getValueWithAnnotatedText(v: Value, meta?: Meta) {
return <AnnotatedText value={v} meta={meta} />;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

I pulled this out because of no-shadow

* Configure Emotion to use our theme
*/
declare module '@emotion/react' {
// eslint-disable-next-line @typescript-eslint/no-shadow
Copy link
Member Author

Choose a reason for hiding this comment

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

This only errors in the new version of @typescript-eslint

Comment on lines +103 to +104
getProps<Q extends ExperimentType>() {
return this.props as unknown as ExpectedProps<Q>;
Copy link
Member Author

Choose a reason for hiding this comment

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

no-shadow

const codeMapping = codeMappings.find(mapping => mapping.id === codeMappingId);
const {integrationId, provider} = codeMapping as RepositoryProjectPathConfig;
const errActors = errorJSON?.raw?.[0].split('\n').map(el => <p>{el}</p>);
const errActors = errorJSON?.raw?.[0].split('\n').map((el, i) => <p key={i}>{el}</p>);
Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure why this wasn't erroring... not great

@billyvg billyvg marked this pull request as ready for review September 8, 2021 23:38
@billyvg billyvg requested a review from a team September 8, 2021 23:38
@billyvg billyvg merged commit 6ddff6a into master Sep 9, 2021
@billyvg billyvg deleted the feat/ui/upgrade-typescript-eslint-and-fix-lint-errors branch September 9, 2021 13:43
@github-actions github-actions bot locked and limited conversation to collaborators Sep 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants