Skip to content

Commit

Permalink
Merge pull request #530 from amtrack/chore/deps
Browse files Browse the repository at this point in the history
chore(deps): update dependencies and project
  • Loading branch information
amtrack authored Oct 23, 2022
2 parents 8353bbd + 0c07b31 commit db3c856
Show file tree
Hide file tree
Showing 20 changed files with 16 additions and 476 deletions.
13 changes: 0 additions & 13 deletions .eslintrc.js

This file was deleted.

11 changes: 0 additions & 11 deletions .mocharc.json

This file was deleted.

2 changes: 1 addition & 1 deletion _templates/plugin/new/index.ejs.t
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
to: src/plugins/<%= h.changeCase.paramCase(name) %>/index.ts
sh: "npx eslint --fix 'src/plugins/<%= h.changeCase.paramCase(name) %>/*' 'src/plugins/index.ts' && npx prettier --write 'src/plugins/<%= h.changeCase.paramCase(name) %>/*' 'src/plugins/index.ts'"
sh: "npx prettier --write 'src/plugins/<%= h.changeCase.paramCase(name) %>/*' 'src/plugins/index.ts'"
---
import { BrowserforcePlugin } from '../../plugin';

Expand Down
15 changes: 4 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,9 @@
"devDependencies": {
"@types/mocha": "10.0.0",
"@types/node": "16.11.68",
"@typescript-eslint/eslint-plugin": "5.40.1",
"@typescript-eslint/parser": "5.40.1",
"eslint": "8.26.0",
"eslint-config-prettier": "8.5.0",
"mocha": "10.1.0",
"nyc": "15.1.0",
"oclif": "3.2.21",
"tmp": "0.2.1",
"ts-node": "10.9.1",
"typescript": "4.8.4"
},
Expand Down Expand Up @@ -57,15 +52,13 @@
},
"repository": "amtrack/sfdx-browserforce-plugin",
"scripts": {
"build": "rm -rf lib && tsc -b && oclif manifest",
"build": "rm -rf lib && tsc -p . && oclif manifest",
"develop": "bash scripts/develop.sh",
"format": "prettier --write \"+(src|test)/**/*.+(ts|js|json)\"",
"format": "npx prettier --write \"+(src|test)/**/*.+(ts|js|json)\"",
"generate:plugin": "npx hygen plugin new",
"lint": "tsc -p . --noEmit && eslint \"src/**/*.ts\" \"test/**/*.ts\"",
"postpack": "rm -f oclif.manifest.json",
"prepack": "yarn build",
"prepare": "yarn build",
"test": "nyc --extension .ts mocha --forbid-only \"test/**/*.test.ts\" \"src/**/*.test.ts\"",
"test:e2e": "mocha --forbid-only \"test/**/*.e2e-spec.ts\" \"src/**/*.e2e-spec.ts\""
"test": "nyc --reporter=lcov --reporter=text mocha --require ts-node/register \"test/**/*.test.ts\" \"src/**/*.test.ts\"",
"test:e2e": "mocha --require ts-node/register \"test/**/*.e2e-spec.ts\" \"src/**/*.e2e-spec.ts\""
}
}
2 changes: 1 addition & 1 deletion sfdx-project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "55.0"
"sourceApiVersion": "56.0"
}
2 changes: 0 additions & 2 deletions src/browserforce-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ export class BrowserforceCommand extends SfdxCommand {
};

protected bf: Browserforce;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
protected settings: any[];

public async init(): Promise<void> {
Expand All @@ -60,7 +59,6 @@ export class BrowserforceCommand extends SfdxCommand {
throw new Error('BrowserforceCommand should not be run directly');
}

// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async finally(err: Error): Promise<void> {
this.ux.stopSpinner();
if (this.bf) {
Expand Down
1 change: 0 additions & 1 deletion src/jsforce-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* @param prop result of a Metadata API call (array or object)
*/
export function ensureArray<T>(
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
prop: T
): Array<T> {
if (Array.isArray(prop)) {
Expand Down
1 change: 0 additions & 1 deletion src/plugins/customer-portal/enabled/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ const SELECTORS = {
export type Config = boolean;

export class CustomerPortalEnable extends BrowserforcePlugin {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async retrieve(definition?: Config): Promise<Config> {
const conn = await this.browserforce.org.getConnection();
const orgSettings = await conn.metadata.read('OrgSettings', 'Org');
Expand Down
1 change: 0 additions & 1 deletion src/plugins/customer-portal/portals/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ type PortalProfileMembership = {
};

export class CustomerPortalSetup extends BrowserforcePlugin {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async retrieve(definition?: Config): Promise<Config> {
const page = await this.browserforce.openPage(PATHS.LIST_VIEW);
await page.waitForXPath(SELECTORS.LIST_VIEW_PORTAL_LINKS_XPATH);
Expand Down
1 change: 0 additions & 1 deletion src/plugins/defer-sharing-calculation/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ type Config = {
};

export class DeferSharingCalculation extends BrowserforcePlugin {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async retrieve(definition?: Config): Promise<Config> {
const page = await this.browserforce.openPage(PATHS.BASE);
await page.waitForSelector(SELECTORS.SUSPEND_BUTTON);
Expand Down
1 change: 0 additions & 1 deletion src/plugins/high-velocity-sales-settings/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ type Config = {
};

export class HighVelocitySalesSettings extends BrowserforcePlugin {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async retrieve(definition?: Config): Promise<Config> {
const conn = this.org.getConnection();
const result = { setUpAndEnable: false };
Expand Down
1 change: 0 additions & 1 deletion src/plugins/home-page-layouts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ type HomePageLayoutAssignment = {
};

export class HomePageLayouts extends BrowserforcePlugin {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async retrieve(definition?: Config): Promise<Config> {
const page = await this.browserforce.openPage(PATHS.BASE);
await page.waitForSelector(SELECTORS.BASE);
Expand Down
1 change: 0 additions & 1 deletion src/plugins/reports-and-dashboards/folder-sharing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export type Config = {
};

export class FolderSharing extends BrowserforcePlugin {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async retrieve(definition?: Config): Promise<Config> {
const response = {
enableEnhancedFolderSharing: true
Expand Down
1 change: 0 additions & 1 deletion src/plugins/security/identity-provider/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ export type Config = {
};

export class IdentityProvider extends BrowserforcePlugin {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async retrieve(definition?: Config): Promise<Config> {
const page = await this.browserforce.openPage(PATHS.EDIT_VIEW);
await page.waitForSelector(SELECTORS.EDIT_BUTTON);
Expand Down
1 change: 0 additions & 1 deletion src/plugins/security/login-access-policies/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export type Config = {
};

export class LoginAccessPolicies extends BrowserforcePlugin {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async retrieve(definition?: Config): Promise<Config> {
const page = await this.browserforce.openPage(PATHS.BASE);
await page.waitForSelector(SELECTORS.ENABLED);
Expand Down
1 change: 0 additions & 1 deletion src/plugins/security/sharing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export type Config = {
};

export class Sharing extends BrowserforcePlugin {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
public async retrieve(definition?: Config): Promise<Config> {
const page = await this.browserforce.openPage(PATHS.BASE);
await page.waitForSelector(SELECTORS.EXTERNAL_SHARING_MODEL_BUTTON);
Expand Down
3 changes: 0 additions & 3 deletions src/plugins/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/* eslint-disable @typescript-eslint/explicit-module-boundary-types */
/* eslint-disable @typescript-eslint/no-explicit-any */

export function removeEmptyValues(obj: any): any {
if (!obj) {
obj = {};
Expand Down
2 changes: 0 additions & 2 deletions test/helpers/init.js

This file was deleted.

3 changes: 0 additions & 3 deletions test/tsconfig.json

This file was deleted.

Loading

0 comments on commit db3c856

Please sign in to comment.