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

Add an ESLint rule requiring the names of interfaces to be prefixed with "I" #411

Merged
merged 1 commit into from
Jul 10, 2019

Conversation

tiffon
Copy link
Member

@tiffon tiffon commented Jul 10, 2019

Which problem is this PR solving?

Make it an error to have an interface without I instead of the current functionality which is to error if it is prefixed with an I.

Short description of the changes

Add an eslint rule and rename existing interfaces.

Signed-off-by: Joe Farro <joef@uber.com>
@tiffon tiffon requested a review from everett980 July 10, 2019 18:54
@tiffon tiffon changed the title Add an ESLint rule requiring interfaces to be prefaces with "I" Add an ESLint rule requiring the names of interfaces to be prefaced with "I" Jul 10, 2019
@tiffon tiffon changed the title Add an ESLint rule requiring the names of interfaces to be prefaced with "I" Add an ESLint rule requiring the names of interfaces to be prefixed with "I" Jul 10, 2019
@codecov
Copy link

codecov bot commented Jul 10, 2019

Codecov Report

Merging #411 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #411   +/-   ##
=======================================
  Coverage   91.47%   91.47%           
=======================================
  Files         173      173           
  Lines        3904     3904           
  Branches      892      892           
=======================================
  Hits         3571     3571           
  Misses        297      297           
  Partials       36       36
Impacted Files Coverage Δ
...ents/TracePage/TracePageHeader/TracePageHeader.tsx 100% <ø> (ø) ⬆️
...ents/TracePage/TraceTimelineViewer/TimelineRow.tsx 77.77% <ø> (ø) ⬆️
...acePage/TracePageHeader/SpanGraph/ViewingLayer.tsx 88.88% <ø> (ø) ⬆️
...eViewer/TimelineHeaderRow/TimelineViewingLayer.tsx 89.83% <ø> (ø) ⬆️
...kages/jaeger-ui/src/components/TracePage/index.tsx 100% <ø> (ø) ⬆️
...ents/TracePage/TracePageHeader/SpanGraph/index.tsx 70.58% <ø> (ø) ⬆️
...components/TracePage/TraceTimelineViewer/index.tsx 100% <ø> (ø) ⬆️
...lineViewer/TimelineHeaderRow/TimelineHeaderRow.tsx 100% <ø> (ø) ⬆️
...eger-ui/src/components/TracePage/ScrollManager.tsx 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e5b81f8...11c5ede. Read the comment docs.

Copy link
Collaborator

@everett980 everett980 left a comment

Choose a reason for hiding this comment

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

Nice! 👍 Great to have this automatically checked.

@@ -16,19 +16,19 @@ import * as React from 'react';

import './TimelineRow.css';

type TimelineRowProps = {
type TTimelineRowProps = {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Are leading Ts for types being enforced along with Is for interfaces or was this just because you caught it?
If not, we should find a rule for that as well.

@everett980 everett980 merged commit b8ca41d into jaegertracing:master Jul 10, 2019
vvvprabhakar pushed a commit to vvvprabhakar/jaeger-ui that referenced this pull request Jul 5, 2021
…th-i

Add an ESLint rule requiring the names of interfaces to be prefixed with "I"
Signed-off-by: vvvprabhakar <vvvprabhakar@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants