@gitlab/eslint-plugin 10.0.1 → 10.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [10.0.2](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v10.0.1...v10.0.2) (2022-01-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * rule require-i18n-strings reports mailto false positive ([5b3397e](https://gitlab.com/gitlab-org/frontend/eslint-plugin/commit/5b3397e929e6693be507e84742e1b35563ff87aa))
7
+
1
8
  ## [10.0.1](https://gitlab.com/gitlab-org/frontend/eslint-plugin/compare/v10.0.0...v10.0.1) (2022-01-10)
2
9
 
3
10
 
@@ -181,6 +181,15 @@ type AgentMetadata {
181
181
  version: String
182
182
  }
183
183
 
184
+ """Agent token statuses"""
185
+ enum AgentTokenStatus {
186
+ """Active agent token."""
187
+ ACTIVE
188
+
189
+ """Revoked agent token."""
190
+ REVOKED
191
+ }
192
+
184
193
  """Describes an alert from the project's Alert Management"""
185
194
  type AlertManagementAlert implements NoteableInterface {
186
195
  """Assignees of the alert."""
@@ -2907,6 +2916,9 @@ type CiRunner {
2907
2916
  """Description of the runner."""
2908
2917
  description: String
2909
2918
 
2919
+ """Admin form URL of the runner. Only available for administrators."""
2920
+ editAdminUrl: String
2921
+
2910
2922
  """ID of the runner."""
2911
2923
  id: CiRunnerID!
2912
2924
 
@@ -2974,6 +2986,9 @@ enum CiRunnerAccessLevel {
2974
2986
 
2975
2987
  """The connection type for CiRunner."""
2976
2988
  type CiRunnerConnection {
2989
+ """Total count of collection."""
2990
+ count: Int!
2991
+
2977
2992
  """A list of edges."""
2978
2993
  edges: [CiRunnerEdge]
2979
2994
 
@@ -3198,6 +3213,9 @@ type ClusterAgent {
3198
3213
 
3199
3214
  """Tokens associated with the cluster agent."""
3200
3215
  tokens(
3216
+ """Status of the token."""
3217
+ status: AgentTokenStatus
3218
+
3201
3219
  """Returns the elements in the list that come after the specified cursor."""
3202
3220
  after: String
3203
3221
 
@@ -3326,7 +3344,7 @@ type ClusterAgentToken {
3326
3344
  name: String
3327
3345
 
3328
3346
  """Current status of the token."""
3329
- status: String
3347
+ status: AgentTokenStatus
3330
3348
  }
3331
3349
 
3332
3350
  """The connection type for ClusterAgentToken."""
@@ -3405,6 +3423,24 @@ type ClusterAgentTokenEdge {
3405
3423
  node: ClusterAgentToken
3406
3424
  }
3407
3425
 
3426
+ """Autogenerated input type of ClusterAgentTokenRevoke"""
3427
+ input ClusterAgentTokenRevokeInput {
3428
+ """Global ID of the agent token that will be revoked."""
3429
+ id: ClustersAgentTokenID!
3430
+
3431
+ """A unique identifier for the client performing the mutation."""
3432
+ clientMutationId: String
3433
+ }
3434
+
3435
+ """Autogenerated return type of ClusterAgentTokenRevoke"""
3436
+ type ClusterAgentTokenRevokePayload {
3437
+ """A unique identifier for the client performing the mutation."""
3438
+ clientMutationId: String
3439
+
3440
+ """Errors encountered during execution of the mutation."""
3441
+ errors: [String!]!
3442
+ }
3443
+
3408
3444
  """
3409
3445
  A `ClustersAgentID` is a global ID. It is encoded as a string.
3410
3446
 
@@ -3587,9 +3623,7 @@ type Commit {
3587
3623
  """Filter pipelines by the sha of the commit they are run for."""
3588
3624
  sha: String
3589
3625
 
3590
- """
3591
- Filter pipelines by their source. Will be ignored if `dast_view_scans` feature flag is disabled.
3592
- """
3626
+ """Filter pipelines by their source."""
3593
3627
  source: String
3594
3628
 
3595
3629
  """Returns the elements in the list that come after the specified cursor."""
@@ -12739,6 +12773,11 @@ type Iteration implements TimeboxReportInterface {
12739
12773
  """
12740
12774
  scopedUrl: String
12741
12775
 
12776
+ """
12777
+ Sequence number for the iteration when you sort the containing cadence's iterations by the start and end date. The earliest starting and ending iteration is assigned 1.
12778
+ """
12779
+ sequence: Int!
12780
+
12742
12781
  """Timestamp of the iteration start date."""
12743
12782
  startDate: Time
12744
12783
 
@@ -14106,9 +14145,7 @@ type MergeRequest implements NoteableInterface & CurrentUserTodos {
14106
14145
  """Filter pipelines by the sha of the commit they are run for."""
14107
14146
  sha: String
14108
14147
 
14109
- """
14110
- Filter pipelines by their source. Will be ignored if `dast_view_scans` feature flag is disabled.
14111
- """
14148
+ """Filter pipelines by their source."""
14112
14149
  source: String
14113
14150
 
14114
14151
  """Returns the elements in the list that come after the specified cursor."""
@@ -16271,7 +16308,11 @@ type Mutation {
16271
16308
  clusterAgentTokenDelete(
16272
16309
  """Parameters for ClusterAgentTokenDelete"""
16273
16310
  input: ClusterAgentTokenDeleteInput!
16274
- ): ClusterAgentTokenDeletePayload
16311
+ ): ClusterAgentTokenDeletePayload @deprecated(reason: "Tokens must be revoked with ClusterAgentTokenRevoke. Deprecated in 14.7.")
16312
+ clusterAgentTokenRevoke(
16313
+ """Parameters for ClusterAgentTokenRevoke"""
16314
+ input: ClusterAgentTokenRevokeInput!
16315
+ ): ClusterAgentTokenRevokePayload
16275
16316
  commitCreate(
16276
16317
  """Parameters for CommitCreate"""
16277
16318
  input: CommitCreateInput!
@@ -17071,6 +17112,10 @@ type Mutation {
17071
17112
  """Parameters for VulnerabilityExternalIssueLinkDestroy"""
17072
17113
  input: VulnerabilityExternalIssueLinkDestroyInput!
17073
17114
  ): VulnerabilityExternalIssueLinkDestroyPayload
17115
+ vulnerabilityFindingDismiss(
17116
+ """Parameters for VulnerabilityFindingDismiss"""
17117
+ input: VulnerabilityFindingDismissInput!
17118
+ ): VulnerabilityFindingDismissPayload
17074
17119
  vulnerabilityResolve(
17075
17120
  """Parameters for VulnerabilityResolve"""
17076
17121
  input: VulnerabilityResolveInput!
@@ -18181,6 +18226,15 @@ type PackageDetailsType {
18181
18226
  """Whether the user can destroy the package."""
18182
18227
  canDestroy: Boolean!
18183
18228
 
18229
+ """Url of the Composer setup endpoint."""
18230
+ composerConfigRepositoryUrl: String
18231
+
18232
+ """Url of the Composer endpoint."""
18233
+ composerUrl: String
18234
+
18235
+ """Url of the Conan project endpoint."""
18236
+ conanUrl: String
18237
+
18184
18238
  """Date of creation."""
18185
18239
  createdAt: Time!
18186
18240
 
@@ -18204,12 +18258,21 @@ type PackageDetailsType {
18204
18258
  """ID of the package."""
18205
18259
  id: PackagesPackageID!
18206
18260
 
18261
+ """Url of the Maven project endpoint."""
18262
+ mavenUrl: String
18263
+
18207
18264
  """Package metadata."""
18208
18265
  metadata: PackageMetadata
18209
18266
 
18210
18267
  """Name of the package."""
18211
18268
  name: String!
18212
18269
 
18270
+ """Url of the NPM project endpoint."""
18271
+ npmUrl: String
18272
+
18273
+ """Url of the Nuget project endpoint."""
18274
+ nugetUrl: String
18275
+
18213
18276
  """Package files."""
18214
18277
  packageFiles(
18215
18278
  """Returns the elements in the list that come after the specified cursor."""
@@ -18252,6 +18315,12 @@ type PackageDetailsType {
18252
18315
  """Project where the package is stored."""
18253
18316
  project: Project!
18254
18317
 
18318
+ """Url of the PyPi project setup endpoint."""
18319
+ pypiSetupUrl: String
18320
+
18321
+ """Url of the PyPi project endpoint."""
18322
+ pypiUrl: String
18323
+
18255
18324
  """Package status."""
18256
18325
  status: PackageStatus!
18257
18326
 
@@ -18919,9 +18988,7 @@ type Pipeline {
18919
18988
  """Timestamp of the pipeline's creation."""
18920
18989
  createdAt: Time!
18921
18990
 
18922
- """
18923
- DAST profile associated with the pipeline. Returns `null`if `dast_view_scans` feature flag is disabled.
18924
- """
18991
+ """DAST profile associated with the pipeline."""
18925
18992
  dastProfile: DastProfile
18926
18993
 
18927
18994
  """Detailed status of the pipeline."""
@@ -19706,9 +19773,7 @@ type Project {
19706
19773
 
19707
19774
  """DAST Profile associated with the project."""
19708
19775
  dastProfile(
19709
- """
19710
- Filter DAST Profiles by whether or not they have a schedule. Will be ignored if `dast_view_scans` feature flag is disabled.
19711
- """
19776
+ """Filter DAST Profiles by whether or not they have a schedule."""
19712
19777
  hasDastProfileSchedule: Boolean
19713
19778
 
19714
19779
  """ID of the DAST Profile."""
@@ -19717,9 +19782,7 @@ type Project {
19717
19782
 
19718
19783
  """DAST Profiles associated with the project."""
19719
19784
  dastProfiles(
19720
- """
19721
- Filter DAST Profiles by whether or not they have a schedule. Will be ignored if `dast_view_scans` feature flag is disabled.
19722
- """
19785
+ """Filter DAST Profiles by whether or not they have a schedule."""
19723
19786
  hasDastProfileSchedule: Boolean
19724
19787
 
19725
19788
  """Returns the elements in the list that come after the specified cursor."""
@@ -20631,9 +20694,7 @@ type Project {
20631
20694
  """Filter pipelines by the sha of the commit they are run for."""
20632
20695
  sha: String
20633
20696
 
20634
- """
20635
- Filter pipelines by their source. Will be ignored if `dast_view_scans` feature flag is disabled.
20636
- """
20697
+ """Filter pipelines by their source."""
20637
20698
  source: String
20638
20699
 
20639
20700
  """Returns the elements in the list that come after the specified cursor."""
@@ -28041,6 +28102,13 @@ An example `VulnerabilitiesExternalIssueLinkID` is: `"gid://gitlab/Vulnerabiliti
28041
28102
  """
28042
28103
  scalar VulnerabilitiesExternalIssueLinkID
28043
28104
 
28105
+ """
28106
+ A `VulnerabilitiesFindingID` is a global ID. It is encoded as a string.
28107
+
28108
+ An example `VulnerabilitiesFindingID` is: `"gid://gitlab/Vulnerabilities::Finding/1"`.
28109
+ """
28110
+ scalar VulnerabilitiesFindingID
28111
+
28044
28112
  """
28045
28113
  A `VulnerabilitiesScannerID` is a global ID. It is encoded as a string.
28046
28114
 
@@ -28726,6 +28794,33 @@ enum VulnerabilityExternalIssueLinkType {
28726
28794
  CREATED
28727
28795
  }
28728
28796
 
28797
+ """Autogenerated input type of VulnerabilityFindingDismiss"""
28798
+ input VulnerabilityFindingDismissInput {
28799
+ """ID of the finding to be dismissed."""
28800
+ id: VulnerabilitiesFindingID!
28801
+
28802
+ """Comment why finding should be dismissed."""
28803
+ comment: String
28804
+
28805
+ """Reason why finding should be dismissed."""
28806
+ dismissalReason: VulnerabilityDismissalReason
28807
+
28808
+ """A unique identifier for the client performing the mutation."""
28809
+ clientMutationId: String
28810
+ }
28811
+
28812
+ """Autogenerated return type of VulnerabilityFindingDismiss"""
28813
+ type VulnerabilityFindingDismissPayload {
28814
+ """A unique identifier for the client performing the mutation."""
28815
+ clientMutationId: String
28816
+
28817
+ """Errors encountered during execution of the mutation."""
28818
+ errors: [String!]!
28819
+
28820
+ """Finding after dismissal."""
28821
+ finding: PipelineSecurityReportFinding
28822
+ }
28823
+
28729
28824
  """The grade of the vulnerable project"""
28730
28825
  enum VulnerabilityGrade {
28731
28826
  """A grade"""
@@ -115,6 +115,10 @@ module.exports = {
115
115
  );
116
116
  }
117
117
 
118
+ function isMailto(str) {
119
+ return (str || '').startsWith('mailto:');
120
+ }
121
+
118
122
  function isPlaceholder(value) {
119
123
  return /^{?{\w+}}?$/.test(value);
120
124
  }
@@ -253,6 +257,7 @@ module.exports = {
253
257
  !isNumber(value) &&
254
258
  !isPath(value) &&
255
259
  !isUrl(value) &&
260
+ !isMailto(value) &&
256
261
  !isHtml(value) &&
257
262
  !isCssSelector(value) &&
258
263
  !isCssValue(value) &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gitlab/eslint-plugin",
3
- "version": "10.0.1",
3
+ "version": "10.0.2",
4
4
  "description": "GitLab package for our custom eslint rules",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {