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

front: turn on eslint recommended type checked hints #8772

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

emersion
Copy link
Member

@emersion emersion commented Sep 5, 2024

See https://typescript-eslint.io/getting-started/typed-linting/

@emersion emersion self-assigned this Sep 5, 2024
@emersion emersion force-pushed the emr/eslint-typed-linting branch from 40a425a to e85e81b Compare September 6, 2024 06:35
emersion added a commit that referenced this pull request Sep 6, 2024
First part of #8772

Enable typed hinting so that ESLint has information about types
and can provide more feedback. Only enable a single typed lint
rule for now (rest will be a lot more work to fix).

The rule @typescript-eslint/no-unnecessary-type-assertion prevents
unnecessary type assertions (casting a string to a string).
Reducing type assertions is nice because type assertions override
type checking and thus may hide type mismatchs.
emersion added a commit that referenced this pull request Sep 6, 2024
First part of #8772

Enable typed hinting so that ESLint has information about types
and can provide more feedback. Only enable a single typed lint
rule for now (rest will be a lot more work to fix).

The rule @typescript-eslint/no-unnecessary-type-assertion prevents
unnecessary type assertions (casting a string to a string).
Reducing type assertions is nice because type assertions override
type checking and thus may hide type mismatches.
emersion added a commit that referenced this pull request Sep 10, 2024
First part of #8772

Enable typed hinting so that ESLint has information about types
and can provide more feedback. Only enable a single typed lint
rule for now (rest will be a lot more work to fix).

The rule @typescript-eslint/no-unnecessary-type-assertion prevents
unnecessary type assertions (casting a string to a string).
Reducing type assertions is nice because type assertions override
type checking and thus may hide type mismatches.
emersion added a commit that referenced this pull request Sep 10, 2024
First part of #8772

Enable typed hinting so that ESLint has information about types
and can provide more feedback. Only enable a single typed lint
rule for now (rest will be a lot more work to fix).

The rule @typescript-eslint/no-unnecessary-type-assertion prevents
unnecessary type assertions (casting a string to a string).
Reducing type assertions is nice because type assertions override
type checking and thus may hide type mismatches.

Signed-off-by: Simon Ser <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Sep 10, 2024
First part of #8772

Enable typed hinting so that ESLint has information about types
and can provide more feedback. Only enable a single typed lint
rule for now (rest will be a lot more work to fix).

The rule @typescript-eslint/no-unnecessary-type-assertion prevents
unnecessary type assertions (casting a string to a string).
Reducing type assertions is nice because type assertions override
type checking and thus may hide type mismatches.

Signed-off-by: Simon Ser <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Sep 10, 2024
First part of #8772

Enable typed hinting so that ESLint has information about types
and can provide more feedback. Only enable a single typed lint
rule for now (rest will be a lot more work to fix).

The rule @typescript-eslint/no-unnecessary-type-assertion prevents
unnecessary type assertions (casting a string to a string).
Reducing type assertions is nice because type assertions override
type checking and thus may hide type mismatches.

Signed-off-by: Simon Ser <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Sep 10, 2024
First part of #8772

Enable typed hinting so that ESLint has information about types
and can provide more feedback. Only enable a single typed lint
rule for now (rest will be a lot more work to fix).

The rule @typescript-eslint/no-unnecessary-type-assertion prevents
unnecessary type assertions (casting a string to a string).
Reducing type assertions is nice because type assertions override
type checking and thus may hide type mismatches.

Signed-off-by: Simon Ser <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Sep 10, 2024
First part of #8772

Enable typed hinting so that ESLint has information about types
and can provide more feedback. Only enable a single typed lint
rule for now (rest will be a lot more work to fix).

The rule @typescript-eslint/no-unnecessary-type-assertion prevents
unnecessary type assertions (casting a string to a string).
Reducing type assertions is nice because type assertions override
type checking and thus may hide type mismatches.

Signed-off-by: Simon Ser <[email protected]>
github-merge-queue bot pushed a commit that referenced this pull request Sep 10, 2024
First part of #8772

Enable typed hinting so that ESLint has information about types
and can provide more feedback. Only enable a single typed lint
rule for now (rest will be a lot more work to fix).

The rule @typescript-eslint/no-unnecessary-type-assertion prevents
unnecessary type assertions (casting a string to a string).
Reducing type assertions is nice because type assertions override
type checking and thus may hide type mismatches.

Signed-off-by: Simon Ser <[email protected]>
@emersion emersion force-pushed the emr/eslint-typed-linting branch from e85e81b to 7c13bfd Compare September 10, 2024 14:08
@emersion emersion changed the title front: turn on eslint typed linting front: turn on eslint recommended type checked hints Sep 10, 2024
@emersion emersion force-pushed the emr/eslint-typed-linting branch from 7c13bfd to f3a2ff0 Compare September 10, 2024 14:08
@emersion emersion force-pushed the emr/eslint-typed-linting branch from f3a2ff0 to 6cc5e98 Compare December 5, 2024 14:29
@github-actions github-actions bot added the area:front Work on Standard OSRD Interface modules label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:front Work on Standard OSRD Interface modules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant