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(lint): enable 'typescript-eslint/no-unnecessary-type-assertion' #11284

Merged
merged 15 commits into from
Aug 16, 2024

Conversation

Josh-Walker-GM
Copy link
Collaborator

Enables typescript-eslint/no-unnecessary-type-assertion and addresses points raised.

@Josh-Walker-GM Josh-Walker-GM added release:chore This PR is a chore (means nothing for users) changesets-ok Override the changesets check labels Aug 16, 2024
@Josh-Walker-GM Josh-Walker-GM added this to the chore milestone Aug 16, 2024
@Josh-Walker-GM Josh-Walker-GM self-assigned this Aug 16, 2024
Comment on lines -166 to +165
absoluteBase,
(value as string)[0].replace('/*', ''),
)
const aliasValue = path.join(absoluteBase, value[0].replace('/*', ''))
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think this highlights that the type definition above is a little wrong?

type CompilerOptionsForPaths = {
  compilerOptions: { baseUrl: string; paths: string }
}

I might have thought that paths would be a record of strings and not just a string itself?

@Josh-Walker-GM Josh-Walker-GM force-pushed the jgmw/chore-lint-no-unnecessary-type-assertion branch from cf04bbb to 0771cb6 Compare August 16, 2024 00:28
@Josh-Walker-GM Josh-Walker-GM merged commit 544e73c into main Aug 16, 2024
46 checks passed
@Josh-Walker-GM Josh-Walker-GM deleted the jgmw/chore-lint-no-unnecessary-type-assertion branch August 16, 2024 00:55
@Josh-Walker-GM Josh-Walker-GM modified the milestones: chore, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changesets-ok Override the changesets check release:chore This PR is a chore (means nothing for users)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant