Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Timothy Johnson <[email protected]>
  • Loading branch information
t1m0thyj committed Aug 22, 2024
1 parent 29776af commit c37e3b0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
*
*/

import * as fs from "fs";
import * as T from "../../../TestUtil";
import { IImperativeConfig } from "../../../../../src/imperative/index";

Expand Down
3 changes: 3 additions & 0 deletions packages/imperative/src/cmd/src/profiles/CliProfileManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,13 @@ export class CliProfileManager {
ImperativeExpect.keysToBeDefined(typeConfiguration, ["schema"], `The profile type configuration document for ` +
`"${typeConfiguration.type}" does NOT contain a schema.`);
this.validateSchema(typeConfiguration.schema, typeConfiguration.type);
// eslint-disable-next-line deprecation/deprecation
if (!(typeConfiguration.dependencies == null)) {
// eslint-disable-next-line deprecation/deprecation
ImperativeExpect.toBeAnArray(typeConfiguration.dependencies,
`The profile type configuration for "${typeConfiguration.type}" contains a "dependencies" property, ` +
`but it is not an array (ill-formed)`);
// eslint-disable-next-line deprecation/deprecation
for (const dep of typeConfiguration.dependencies) {
ImperativeExpect.keysToBeDefinedAndNonBlank(dep, ["type"], "A dependency specified for the " +
"profile definitions did not contain a type.");
Expand Down
2 changes: 2 additions & 0 deletions packages/imperative/src/imperative/src/api/ImperativeApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ export class ImperativeApi {
* @internal
* @deprecated Use the `V1ProfileRead` class if you still need to read V1 profiles
*/
// eslint-disable-next-line deprecation/deprecation
public profileManager(type: string): CliProfileManager {
// eslint-disable-next-line deprecation/deprecation
return new CliProfileManager({
type,
typeConfigurations: this.mConfig.profiles,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* Copyright Contributors to the Zowe Project.
*
*/
/* eslint-disable deprecation/deprecation */

import { inspect } from "util";
import { TestLogger } from "../../../../../__tests__/src/TestLogger";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import { CliUtils } from "../../../../utilities/src/CliUtils";
* API for going through the full validation test for a Zowe CLI profile
* and producing validation report
* @internal
* @deprecated
* @deprecated Use the `V1ProfileRead` class if you still need to read V1 profiles
*/
export class ProfileValidator {

Expand Down

0 comments on commit c37e3b0

Please sign in to comment.