Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion build/features.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class FeatureFile {
return existsSync(this.path);
}

// eslint-disable-next-line node/prefer-global/buffer, ts/no-restricted-types -- Just passing it
// eslint-disable-next-line @typescript-eslint/no-restricted-types, n/prefer-global/buffer -- Just passing it
contents(): Buffer {
return readFileSync(this.path);
}
Expand Down Expand Up @@ -163,6 +163,7 @@ function validateTsx(file: FeatureFile): void {
`${file.id} uses the v4 API, so it should include \`await expectToken()\` in its init function or, if the token is optional, \`hasToken\` anywhere`,
);
}

if (file.contents().includes('.addCssFeature')) {
assert(
file.css.exists(),
Expand Down
2 changes: 1 addition & 1 deletion build/readme-parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function extractDataFromMatch(match: RegExpMatchArray): FeatureMeta {
description: parseMarkdown(linkLessMarkdownDescription),
// `undefined` hides the key when CSS is missing
css: existsSync(`source/features/${simpleId}.css`) || undefined,
// eslint-disable-next-line unicorn/no-null -- `null` makes the keys visible in the JSON file
// `null` makes the keys visible in the JSON file
screenshot: urls.find(url => screenshotRegex.test(url)) ?? null,
};
}
Expand Down
212 changes: 212 additions & 0 deletions eslint-suppressions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
{
"source/background.ts": {
"@typescript-eslint/naming-convention": {
"count": 1

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

./source/background.ts
  53:8  error  Object Literal Method name `fetchJSON` must match one of the following formats: strictCamelCase  @typescript-eslint/naming-convention

./source/features/action-pr-link.tsx
  20:16  error  Function name `addForPR` must match one of the following formats: strictCamelCase, StrictPascalCase       @typescript-eslint/naming-convention
  28:16  error  Function name `initForPRPage` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/action-used-by-link.tsx
   9:10  error  Function name `getActionURL` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention
  14:8   error  Variable name `actionURL` must match one of the following formats: strictCamelCase, StrictPascalCase     @typescript-eslint/naming-convention
  26:8   error  Variable name `actionURL` must match one of the following formats: strictCamelCase, StrictPascalCase     @typescript-eslint/naming-convention

./source/features/clean-conversation-headers.tsx
  25:16  error  Function name `highlightNonDefaultBranchPRs` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/comments-time-machine-links.tsx
  27:16  error  Function name `updateURLtoDatedSha` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/deep-reblame.tsx
  29:8  error  Variable name `associatedPR` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/embed-gist-inline.tsx
  21:19  error  Object Literal Property name `fetchJSON` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/html-preview-link.tsx
  7:7  error  Variable name `isSingleHTMLFile` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/linkify-branch-references.tsx
  11:10  error  Function name `linkifyQuickPR` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention
  44:16  error  Function name `quickPRInit` must match one of the following formats: strictCamelCase, StrictPascalCase     @typescript-eslint/naming-convention

./source/features/list-prs-for-branch.tsx
  14:2  error  Object Literal Property name `OPEN` must match one of the following formats: strictCamelCase, StrictPascalCase    @typescript-eslint/naming-convention
  15:2  error  Object Literal Property name `CLOSED` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention
  16:2  error  Object Literal Property name `MERGED` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention
  17:2  error  Object Literal Property name `DRAFT` must match one of the following formats: strictCamelCase, StrictPascalCase   @typescript-eslint/naming-convention

./source/features/list-prs-for-file.tsx
   17:10  error  Function name `getPRUrl` must match one of the following formats: strictCamelCase, StrictPascalCase         @typescript-eslint/naming-convention
  117:8   error  Variable name `editingPRNumber` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/mark-merge-commits-in-list.tsx
  58:8  error  Variable name `isPRConversation` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/new-repo-disable-projects-and-wikis.tsx
  22:4  error  Object Literal Property name `has_projects` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention
  23:4  error  Object Literal Property name `has_wiki` must match one of the following formats: strictCamelCase, StrictPascalCase      @typescript-eslint/naming-convention

./source/features/one-click-diff-options.tsx
  40:10  error  Function name `attachPRButtons` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention
  98:10  error  Function name `initPR` must match one of the following formats: strictCamelCase, StrictPascalCase           @typescript-eslint/naming-convention

./source/features/pagination-hotkey.tsx
  28:3  error  Object Literal Property name `→` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention
  29:3  error  Object Literal Property name `←` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/pr-first-commit-title.tsx
  76:10  error  Function name `hasUserAlteredThePR` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/pr-notification-link.tsx
  8:17  error  Function name `removeLinkToPRFilesTab` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/prevent-link-loss.tsx
  39:10  error  Function name `getUI` must match one of the following formats: strictCamelCase, StrictPascalCase              @typescript-eslint/naming-convention
  69:10  error  Function name `updateUI` must match one of the following formats: strictCamelCase, StrictPascalCase           @typescript-eslint/naming-convention
  83:7   error  Variable name `updateUIDebounced` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/quick-mention.tsx
  147:8  error  Variable name `isPROrOldView` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/quick-repo-deletion.tsx
  36:16  error  Function name `modifyUIAfterSuccessfulDeletion` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention
  39:8   error  Variable name `restoreURL` must match one of the following formats: strictCamelCase, StrictPascalCase                       @typescript-eslint/naming-convention
  42:8   error  Variable name `otherForksURL` must match one of the following formats: strictCamelCase, StrictPascalCase                    @typescript-eslint/naming-convention

./source/features/show-associated-branch-prs-on-fork.tsx
  53:2  error  Object Literal Property name `OPEN` must match one of the following formats: strictCamelCase, StrictPascalCase    @typescript-eslint/naming-convention
  54:2  error  Object Literal Property name `CLOSED` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention
  55:2  error  Object Literal Property name `MERGED` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention
  56:2  error  Object Literal Property name `DRAFT` must match one of the following formats: strictCamelCase, StrictPascalCase   @typescript-eslint/naming-convention

./source/features/show-open-prs-of-forks.tsx
  17:7   error  Variable name `countPRs` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention
  41:16  error  Function name `getPRs` must match one of the following formats: strictCamelCase, StrictPascalCase    @typescript-eslint/naming-convention

./source/features/sort-conversations-by-update-time.tsx
  17:8  error  Variable name `currentSearchURL` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/sync-pr-commit-title.tsx
  38:10  error  Function name `getUI` must match one of the following formats: strictCamelCase, StrictPascalCase          @typescript-eslint/naming-convention
  47:10  error  Function name `updateUI` must match one of the following formats: strictCamelCase, StrictPascalCase       @typescript-eslint/naming-convention
  55:16  error  Function name `updatePRTitle` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/update-pr-from-base-branch.tsx
  52:3  error  Object Literal Property name `ignoreHTTPStatus` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/useful-not-found-page.tsx
   46:10  error  Function name `parseCurrentURL` must match one of the following formats: strictCamelCase, StrictPascalCase   @typescript-eslint/naming-convention
  195:16  error  Function name `initPRCommitOnce` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/features/user-profile-follower-badge.tsx
  15:4  error  Object Literal Property name `ignoreHTTPStatus` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/github-helpers/api.ts
   40:6   error  Type Alias name `GraphQLResponse` must match one of the following formats: StrictPascalCase               @typescript-eslint/naming-convention
   54:14  error  Class name `RefinedGitHubAPIError` must match one of the following formats: StrictPascalCase              @typescript-eslint/naming-convention
   69:6   error  Type Alias name `GHRestApiOptions` must match one of the following formats: StrictPascalCase              @typescript-eslint/naming-convention
   77:6   error  Type Alias name `GHGraphQLApiOptions` must match one of the following formats: StrictPascalCase           @typescript-eslint/naming-convention
   83:2   error  Object Literal Property name `ignoreHTTPStatus` must match one of the following formats: strictCamelCase  @typescript-eslint/naming-convention
   97:9   error  Variable name `ignoreHTTPStatus` must match one of the following formats: strictCamelCase                 @typescript-eslint/naming-convention
  111:4   error  Object Literal Property name `Accept` must match one of the following formats: strictCamelCase            @typescript-eslint/naming-convention
  113:25  error  Object Literal Property name `Authorization` must match one of the following formats: strictCamelCase     @typescript-eslint/naming-convention
  208:4   error  Object Literal Property name `Authorization` must match one of the following formats: strictCamelCase     @typescript-eslint/naming-convention

./source/github-helpers/dom-formatters.tsx
  13:14  error  Variable name `linkifiedURLClass` must match one of the following formats: strictCamelCase, StrictPascalCase     @typescript-eslint/naming-convention
  14:7   error  Variable name `linkifiedURLSelector` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention
  66:17  error  Function name `linkifyURLs` must match one of the following formats: strictCamelCase, StrictPascalCase           @typescript-eslint/naming-convention

./source/github-helpers/get-default-branch.ts
  13:16  error  Function name `fromDOM` must match one of the following formats: strictCamelCase  @typescript-eslint/naming-convention
  30:16  error  Function name `fromAPI` must match one of the following formats: strictCamelCase  @typescript-eslint/naming-convention

./source/github-helpers/github-file-url.ts
  5:22  error  Class name `GitHubFileURL` must match one of the following formats: StrictPascalCase  @typescript-eslint/naming-convention

./source/github-helpers/github-token.ts
  25:5  error  Object Literal Property name `Accept` must match one of the following formats: strictCamelCase         @typescript-eslint/naming-convention
  26:5  error  Object Literal Property name `Authorization` must match one of the following formats: strictCamelCase  @typescript-eslint/naming-convention

./source/github-helpers/index.ts
   24:17  error  Function name `buildRepoURL` must match one of the following formats: strictCamelCase          @typescript-eslint/naming-convention
  128:14  error  Variable name `userCanLikelyMergePR` must match one of the following formats: strictCamelCase  @typescript-eslint/naming-convention

./source/github-helpers/selectors.test.ts
  44:4  error  Object Literal Property name `Accept` must match one of the following formats: strictCamelCase  @typescript-eslint/naming-convention

./source/globals.d.ts
  17:6  error  Type Alias name `FeatureID` must match one of the following formats: StrictPascalCase                   @typescript-eslint/naming-convention
  81:6  error  Type Alias name `HTMLFormControlsCollection` must match one of the following formats: StrictPascalCase  @typescript-eslint/naming-convention

./source/helpers/caller-id.ts
  8:25  error  Function name `getCallerID` must match one of the following formats: strictCamelCase  @typescript-eslint/naming-convention

./source/helpers/feature-helpers.ts
  3:14  error  Variable name `getFeatureID` must match one of the following formats: strictCamelCase  @typescript-eslint/naming-convention

./source/helpers/fetch-dom.ts
   8:50  error  Type Parameter name `TElement` must match one of the following formats: StrictPascalCase  @typescript-eslint/naming-convention
  11:8   error  Variable name `absoluteURL` must match one of the following formats: strictCamelCase      @typescript-eslint/naming-convention

./source/helpers/hotfix.tsx
  42:15  error  Variable name `featureID` must match one of the following formats: strictCamelCase, StrictPascalCase  @typescript-eslint/naming-convention

./source/helpers/show-whitespace-on-line.test.ts
  11:10  error  Function name `serializeDOM` must match one of the following formats: strictCamelCase  @typescript-eslint/naming-convention

./source/options-storage.ts
   5:13  error  Type Alias name `RGHOptions` must match one of the following formats: StrictPascalCase             @typescript-eslint/naming-convention
   9:2   error  Object Literal Property name `customCSS` must match one of the following formats: strictCamelCase  @typescript-eslint/naming-convention
  12:2   error  Object Literal Property name `logHTTP` must match one of the following formats: strictCamelCase    @typescript-eslint/naming-convention

./source/resolve-conflicts.ts
  58:5  error  Object Literal Property name `noHScroll` must match one of the following formats: strictCamelCase  @typescript-eslint/naming-convention

}
},
"source/features/action-pr-link.tsx": {
"@typescript-eslint/naming-convention": {
"count": 2
}
},
"source/features/action-used-by-link.tsx": {
"@typescript-eslint/naming-convention": {
"count": 3
}
},
"source/features/clean-conversation-headers.tsx": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/features/comments-time-machine-links.tsx": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/features/deep-reblame.tsx": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/features/embed-gist-inline.tsx": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/features/html-preview-link.tsx": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/features/linkify-branch-references.tsx": {
"@typescript-eslint/naming-convention": {
"count": 2
}
},
"source/features/list-prs-for-branch.tsx": {
"@typescript-eslint/naming-convention": {
"count": 4
}
},
"source/features/list-prs-for-file.tsx": {
"@typescript-eslint/naming-convention": {
"count": 2
}
},
"source/features/mark-merge-commits-in-list.tsx": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/features/new-repo-disable-projects-and-wikis.tsx": {
"@typescript-eslint/naming-convention": {
"count": 2
}
},
"source/features/one-click-diff-options.tsx": {
"@typescript-eslint/naming-convention": {
"count": 2
}
},
"source/features/pagination-hotkey.tsx": {
"@typescript-eslint/naming-convention": {
"count": 2
}
},
"source/features/pr-first-commit-title.tsx": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/features/pr-notification-link.tsx": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/features/prevent-link-loss.tsx": {
"@typescript-eslint/naming-convention": {
"count": 3
}
},
"source/features/quick-mention.tsx": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/features/quick-repo-deletion.tsx": {
"@typescript-eslint/naming-convention": {
"count": 3
}
},
"source/features/show-associated-branch-prs-on-fork.tsx": {
"@typescript-eslint/naming-convention": {
"count": 4
}
},
"source/features/show-open-prs-of-forks.tsx": {
"@typescript-eslint/naming-convention": {
"count": 2
}
},
"source/features/sort-conversations-by-update-time.tsx": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/features/sync-pr-commit-title.tsx": {
"@typescript-eslint/naming-convention": {
"count": 3
}
},
"source/features/update-pr-from-base-branch.tsx": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/features/useful-not-found-page.tsx": {
"@typescript-eslint/naming-convention": {
"count": 2
}
},
"source/features/user-profile-follower-badge.tsx": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/github-helpers/api.ts": {
"@typescript-eslint/naming-convention": {
"count": 9
}
},
"source/github-helpers/dom-formatters.tsx": {
"@typescript-eslint/naming-convention": {
"count": 3
}
},
"source/github-helpers/get-default-branch.ts": {
"@typescript-eslint/naming-convention": {
"count": 2
}
},
"source/github-helpers/github-file-url.ts": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/github-helpers/github-token.ts": {
"@typescript-eslint/naming-convention": {
"count": 2
}
},
"source/github-helpers/index.ts": {
"@typescript-eslint/naming-convention": {
"count": 2
}
},
"source/github-helpers/selectors.test.ts": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/globals.d.ts": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/helpers/caller-id.ts": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/helpers/feature-helpers.ts": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/helpers/fetch-dom.ts": {
"@typescript-eslint/naming-convention": {
"count": 2
}
},
"source/helpers/hotfix.tsx": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/helpers/show-whitespace-on-line.test.ts": {
"@typescript-eslint/naming-convention": {
"count": 1
}
},
"source/options-storage.ts": {
"@typescript-eslint/naming-convention": {
"count": 3
}
},
"source/resolve-conflicts.ts": {
"@typescript-eslint/naming-convention": {
"count": 1
}
}
}
Loading