Skip to content

Commit f471479

Browse files
authored
Merge pull request #396 from salesforcecli/dependabot-npm_and_yarn-typescript-eslint-eslint-plugin-5.50.0
chore(dev-deps): bump @typescript-eslint/eslint-plugin from 5.42.1 to 5.50.0
2 parents b081945 + adfb1f0 commit f471479

6 files changed

Lines changed: 54 additions & 137 deletions

File tree

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"@salesforce/prettier-config": "^0.0.2",
2222
"@salesforce/ts-sinon": "1.4.4",
2323
"@swc/core": "^1.3.32",
24-
"@typescript-eslint/eslint-plugin": "^5.42.1",
24+
"@typescript-eslint/eslint-plugin": "^5.50.0",
2525
"@typescript-eslint/parser": "^5.50.0",
2626
"chai": "^4.3.7",
2727
"eslint": "^8.32.0",
@@ -42,7 +42,7 @@
4242
"shx": "0.3.4",
4343
"sinon": "10.0.0",
4444
"ts-node": "^10.0.0",
45-
"typescript": "^4.9.3"
45+
"typescript": "^4.9.5"
4646
},
4747
"config": {},
4848
"engines": {
@@ -110,4 +110,4 @@
110110
"publishConfig": {
111111
"access": "public"
112112
}
113-
}
113+
}

test/commands/sobject/list.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ describe('force:schema:sobject:list', () => {
8181
sobjects: [],
8282
});
8383
}
84+
throw new Error('Unexpected request');
8485
};
8586
const cmd = new SObjectList(['-u', 'testUser@test.com'], config);
8687

test/schema.nut.ts

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
* For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause
66
*/
77
import * as path from 'path';
8+
import { strict as assert } from 'node:assert';
89
import { expect } from 'chai';
910
import { DescribeSObjectResult } from 'jsforce';
1011
import { TestSession, execCmd } from '@salesforce/cli-plugins-testkit';
12+
import { SObjectListResult } from '../src/commands/sobject/list';
1113

1214
let session: TestSession;
1315

@@ -63,32 +65,35 @@ describe('verifies all commands run successfully ', () => {
6365

6466
describe('list command', () => {
6567
it('requests all objects by default', () => {
66-
const output = execCmd<string[]>('force:schema:sobject:list --json', { ensureExitCode: 0 }).jsonOutput;
67-
expect(output.result).to.have.length.greaterThan(1);
68-
allObjects = output.result;
68+
const result = execCmd<SObjectListResult>('force:schema:sobject:list --json', { ensureExitCode: 0 }).jsonOutput
69+
?.result;
70+
assert(result?.length);
71+
expect(result).to.have.length.greaterThan(1);
72+
allObjects = result;
6973
});
7074

7175
it('requests all objects explicity', () => {
72-
const output = execCmd<string[]>('force:schema:sobject:list --json --sobjecttypecategory ALL', {
76+
const result = execCmd<SObjectListResult>('force:schema:sobject:list --json --sobjecttypecategory ALL', {
7377
ensureExitCode: 0,
74-
}).jsonOutput;
75-
expect(output.result).to.have.length(allObjects.length);
76-
allObjects = output.result;
78+
}).jsonOutput?.result;
79+
assert(result);
80+
expect(result).to.have.length(allObjects.length);
81+
allObjects = result;
7782
});
7883

7984
it('requests standard objects', () => {
80-
const output = execCmd<string[]>('force:schema:sobject:list --json --sobjecttypecategory STANDARD', {
85+
const result = execCmd<SObjectListResult>('force:schema:sobject:list --json --sobjecttypecategory STANDARD', {
8186
ensureExitCode: 0,
82-
}).jsonOutput;
87+
}).jsonOutput?.result;
8388
// all the objects are standard in a vanilla scratch org
84-
expect(output.result).to.have.length(allObjects.length);
89+
expect(result).to.have.length(allObjects.length);
8590
});
8691

8792
it('requests custom objects but finds none in vanilla scratch org', () => {
88-
const output = execCmd<string[]>('force:schema:sobject:list --json --sobjecttypecategory CUSTOM', {
93+
const result = execCmd<SObjectListResult>('force:schema:sobject:list --json --sobjecttypecategory CUSTOM', {
8994
ensureExitCode: 0,
90-
}).jsonOutput;
91-
expect(output.result).to.have.length(0);
95+
}).jsonOutput?.result;
96+
expect(result).to.have.length(0);
9297
});
9398

9499
it('no errors on non-json commands', () => {
@@ -104,14 +109,14 @@ describe('verifies all commands run successfully ', () => {
104109
const output = execCmd<DescribeSObjectResult>('force:schema:sobject:describe --sobjecttype Account --json', {
105110
ensureExitCode: 0,
106111
}).jsonOutput;
107-
expect(output.result).to.include.keys(objectDescribeKeys);
112+
expect(output?.result).to.include.keys(objectDescribeKeys);
108113
});
109114

110115
it('describes ApexClass via toolingApi', () => {
111116
const output = execCmd<DescribeSObjectResult>('force:schema:sobject:describe --sobjecttype ApexClass -t --json', {
112117
ensureExitCode: 0,
113118
}).jsonOutput;
114-
expect(output.result).to.include.keys(objectDescribeKeys);
119+
expect(output?.result).to.include.keys(objectDescribeKeys);
115120
});
116121

117122
it('no errors on non-json commands', () => {

test/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "@salesforce/dev-config/tsconfig-test",
2+
"extends": "@salesforce/dev-config/tsconfig-test-strict",
33
"include": ["./**/*.ts"],
44
"compilerOptions": {
55
"skipLibCheck": true

tsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
{
2-
"extends": "@salesforce/dev-config/tsconfig",
2+
"extends": "@salesforce/dev-config/tsconfig-strict",
33
"compilerOptions": {
44
"outDir": "lib",
5-
"rootDir": "src"
5+
"rootDir": "src",
6+
"skipLibCheck": true
67
},
78
"include": ["./src/**/*.ts"]
89
}

yarn.lock

Lines changed: 26 additions & 116 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,16 +1095,7 @@
10951095
typedoc-plugin-missing-exports "0.23.0"
10961096
typescript "^4.1.3"
10971097

1098-
"@salesforce/kit@^1.7.1", "@salesforce/kit@^1.8.0", "@salesforce/kit@^1.8.2":
1099-
version "1.8.2"
1100-
resolved "https://registry.yarnpkg.com/@salesforce/kit/-/kit-1.8.2.tgz#97d652bef37d02a13dffd6e9b68050e779db2bc4"
1101-
integrity sha512-UoY1bgWjw198QMyLKYXlF1bdqBqVtffBgtIT1M/cEwBF/Es1Oz3HaF1TwF98CmyC1dr6rL08Hr2SE5zHGijcLw==
1102-
dependencies:
1103-
"@salesforce/ts-types" "^1.7.1"
1104-
shx "^0.3.3"
1105-
tslib "^2.2.0"
1106-
1107-
"@salesforce/kit@^1.8.3":
1098+
"@salesforce/kit@^1.7.1", "@salesforce/kit@^1.8.0", "@salesforce/kit@^1.8.2", "@salesforce/kit@^1.8.3":
11081099
version "1.8.4"
11091100
resolved "https://registry.yarnpkg.com/@salesforce/kit/-/kit-1.8.4.tgz#19918938d5f89ecb4e78a363b38605a529bcd7d4"
11101101
integrity sha512-H2KWT2soWEDf+QbcMLYBNt2iHEEDIihxoWufphu8FGySiAibEZcl2SPZJ87nbUW/Yu+dLqPEKTUZxvDEx7t3UQ==
@@ -1497,15 +1488,16 @@
14971488
"@types/expect" "^1.20.4"
14981489
"@types/node" "*"
14991490

1500-
"@typescript-eslint/eslint-plugin@^5.42.1":
1501-
version "5.42.1"
1502-
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.42.1.tgz#696b9cc21dfd4749c1c8ad1307f76a36a00aa0e3"
1503-
integrity sha512-LyR6x784JCiJ1j6sH5Y0K6cdExqCCm8DJUTcwG5ThNXJj/G8o5E56u5EdG4SLy+bZAwZBswC+GYn3eGdttBVCg==
1491+
"@typescript-eslint/eslint-plugin@^5.50.0":
1492+
version "5.50.0"
1493+
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.50.0.tgz#fb48c31cadc853ffc1dc35373f56b5e2a8908fe9"
1494+
integrity sha512-vwksQWSFZiUhgq3Kv7o1Jcj0DUNylwnIlGvKvLLYsq8pAWha6/WCnXUeaSoNNha/K7QSf2+jvmkxggC1u3pIwQ==
15041495
dependencies:
1505-
"@typescript-eslint/scope-manager" "5.42.1"
1506-
"@typescript-eslint/type-utils" "5.42.1"
1507-
"@typescript-eslint/utils" "5.42.1"
1496+
"@typescript-eslint/scope-manager" "5.50.0"
1497+
"@typescript-eslint/type-utils" "5.50.0"
1498+
"@typescript-eslint/utils" "5.50.0"
15081499
debug "^4.3.4"
1500+
grapheme-splitter "^1.0.4"
15091501
ignore "^5.2.0"
15101502
natural-compare-lite "^1.4.0"
15111503
regexpp "^3.2.0"
@@ -1522,22 +1514,6 @@
15221514
"@typescript-eslint/typescript-estree" "5.50.0"
15231515
debug "^4.3.4"
15241516

1525-
"@typescript-eslint/scope-manager@5.42.1":
1526-
version "5.42.1"
1527-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.42.1.tgz#05e5e1351485637d466464237e5259b49f609b18"
1528-
integrity sha512-QAZY/CBP1Emx4rzxurgqj3rUinfsh/6mvuKbLNMfJMMKYLRBfweus8brgXF8f64ABkIZ3zdj2/rYYtF8eiuksQ==
1529-
dependencies:
1530-
"@typescript-eslint/types" "5.42.1"
1531-
"@typescript-eslint/visitor-keys" "5.42.1"
1532-
1533-
"@typescript-eslint/scope-manager@5.48.0":
1534-
version "5.48.0"
1535-
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.48.0.tgz#607731cb0957fbc52fd754fd79507d1b6659cecf"
1536-
integrity sha512-0AA4LviDtVtZqlyUQnZMVHydDATpD9SAX/RC5qh6cBd3xmyWvmXYF+WT1oOmxkeMnWDlUVTwdODeucUnjz3gow==
1537-
dependencies:
1538-
"@typescript-eslint/types" "5.48.0"
1539-
"@typescript-eslint/visitor-keys" "5.48.0"
1540-
15411517
"@typescript-eslint/scope-manager@5.50.0":
15421518
version "5.50.0"
15431519
resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.50.0.tgz#90b8a3b337ad2c52bbfe4eac38f9164614e40584"
@@ -1546,57 +1522,21 @@
15461522
"@typescript-eslint/types" "5.50.0"
15471523
"@typescript-eslint/visitor-keys" "5.50.0"
15481524

1549-
"@typescript-eslint/type-utils@5.42.1":
1550-
version "5.42.1"
1551-
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.42.1.tgz#21328feb2d4b193c5852b35aabd241ccc1449daa"
1552-
integrity sha512-WWiMChneex5w4xPIX56SSnQQo0tEOy5ZV2dqmj8Z371LJ0E+aymWD25JQ/l4FOuuX+Q49A7pzh/CGIQflxMVXg==
1525+
"@typescript-eslint/type-utils@5.50.0":
1526+
version "5.50.0"
1527+
resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-5.50.0.tgz#509d5cc9728d520008f7157b116a42c5460e7341"
1528+
integrity sha512-dcnXfZ6OGrNCO7E5UY/i0ktHb7Yx1fV6fnQGGrlnfDhilcs6n19eIRcvLBqx6OQkrPaFlDPk3OJ0WlzQfrV0bQ==
15531529
dependencies:
1554-
"@typescript-eslint/typescript-estree" "5.42.1"
1555-
"@typescript-eslint/utils" "5.42.1"
1530+
"@typescript-eslint/typescript-estree" "5.50.0"
1531+
"@typescript-eslint/utils" "5.50.0"
15561532
debug "^4.3.4"
15571533
tsutils "^3.21.0"
15581534

1559-
"@typescript-eslint/types@5.42.1":
1560-
version "5.42.1"
1561-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.42.1.tgz#0d4283c30e9b70d2aa2391c36294413de9106df2"
1562-
integrity sha512-Qrco9dsFF5lhalz+lLFtxs3ui1/YfC6NdXu+RAGBa8uSfn01cjO7ssCsjIsUs484vny9Xm699FSKwpkCcqwWwA==
1563-
1564-
"@typescript-eslint/types@5.48.0":
1565-
version "5.48.0"
1566-
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.48.0.tgz#d725da8dfcff320aab2ac6f65c97b0df30058449"
1567-
integrity sha512-UTe67B0Ypius0fnEE518NB2N8gGutIlTojeTg4nt0GQvikReVkurqxd2LvYa9q9M5MQ6rtpNyWTBxdscw40Xhw==
1568-
15691535
"@typescript-eslint/types@5.50.0":
15701536
version "5.50.0"
15711537
resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.50.0.tgz#c461d3671a6bec6c2f41f38ed60bd87aa8a30093"
15721538
integrity sha512-atruOuJpir4OtyNdKahiHZobPKFvZnBnfDiyEaBf6d9vy9visE7gDjlmhl+y29uxZ2ZDgvXijcungGFjGGex7w==
15731539

1574-
"@typescript-eslint/typescript-estree@5.42.1":
1575-
version "5.42.1"
1576-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.42.1.tgz#f9a223ecb547a781d37e07a5ac6ba9ff681eaef0"
1577-
integrity sha512-qElc0bDOuO0B8wDhhW4mYVgi/LZL+igPwXtV87n69/kYC/7NG3MES0jHxJNCr4EP7kY1XVsRy8C/u3DYeTKQmw==
1578-
dependencies:
1579-
"@typescript-eslint/types" "5.42.1"
1580-
"@typescript-eslint/visitor-keys" "5.42.1"
1581-
debug "^4.3.4"
1582-
globby "^11.1.0"
1583-
is-glob "^4.0.3"
1584-
semver "^7.3.7"
1585-
tsutils "^3.21.0"
1586-
1587-
"@typescript-eslint/typescript-estree@5.48.0":
1588-
version "5.48.0"
1589-
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.48.0.tgz#a7f04bccb001003405bb5452d43953a382c2fac2"
1590-
integrity sha512-7pjd94vvIjI1zTz6aq/5wwE/YrfIyEPLtGJmRfyNR9NYIW+rOvzzUv3Cmq2hRKpvt6e9vpvPUQ7puzX7VSmsEw==
1591-
dependencies:
1592-
"@typescript-eslint/types" "5.48.0"
1593-
"@typescript-eslint/visitor-keys" "5.48.0"
1594-
debug "^4.3.4"
1595-
globby "^11.1.0"
1596-
is-glob "^4.0.3"
1597-
semver "^7.3.7"
1598-
tsutils "^3.21.0"
1599-
16001540
"@typescript-eslint/typescript-estree@5.50.0":
16011541
version "5.50.0"
16021542
resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.50.0.tgz#0b9b82975bdfa40db9a81fdabc7f93396867ea97"
@@ -1610,50 +1550,20 @@
16101550
semver "^7.3.7"
16111551
tsutils "^3.21.0"
16121552

1613-
"@typescript-eslint/utils@5.42.1":
1614-
version "5.42.1"
1615-
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.42.1.tgz#2789b1cd990f0c07aaa3e462dbe0f18d736d5071"
1616-
integrity sha512-Gxvf12xSp3iYZd/fLqiQRD4uKZjDNR01bQ+j8zvhPjpsZ4HmvEFL/tC4amGNyxN9Rq+iqvpHLhlqx6KTxz9ZyQ==
1617-
dependencies:
1618-
"@types/json-schema" "^7.0.9"
1619-
"@types/semver" "^7.3.12"
1620-
"@typescript-eslint/scope-manager" "5.42.1"
1621-
"@typescript-eslint/types" "5.42.1"
1622-
"@typescript-eslint/typescript-estree" "5.42.1"
1623-
eslint-scope "^5.1.1"
1624-
eslint-utils "^3.0.0"
1625-
semver "^7.3.7"
1626-
1627-
"@typescript-eslint/utils@^5.47.0":
1628-
version "5.48.0"
1629-
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.48.0.tgz#eee926af2733f7156ad8d15e51791e42ce300273"
1630-
integrity sha512-x2jrMcPaMfsHRRIkL+x96++xdzvrdBCnYRd5QiW5Wgo1OB4kDYPbC1XjWP/TNqlfK93K/lUL92erq5zPLgFScQ==
1553+
"@typescript-eslint/utils@5.50.0", "@typescript-eslint/utils@^5.47.0":
1554+
version "5.50.0"
1555+
resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.50.0.tgz#807105f5ffb860644d30d201eefad7017b020816"
1556+
integrity sha512-v/AnUFImmh8G4PH0NDkf6wA8hujNNcrwtecqW4vtQ1UOSNBaZl49zP1SHoZ/06e+UiwzHpgb5zP5+hwlYYWYAw==
16311557
dependencies:
16321558
"@types/json-schema" "^7.0.9"
16331559
"@types/semver" "^7.3.12"
1634-
"@typescript-eslint/scope-manager" "5.48.0"
1635-
"@typescript-eslint/types" "5.48.0"
1636-
"@typescript-eslint/typescript-estree" "5.48.0"
1560+
"@typescript-eslint/scope-manager" "5.50.0"
1561+
"@typescript-eslint/types" "5.50.0"
1562+
"@typescript-eslint/typescript-estree" "5.50.0"
16371563
eslint-scope "^5.1.1"
16381564
eslint-utils "^3.0.0"
16391565
semver "^7.3.7"
16401566

1641-
"@typescript-eslint/visitor-keys@5.42.1":
1642-
version "5.42.1"
1643-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.42.1.tgz#df10839adf6605e1cdb79174cf21e46df9be4872"
1644-
integrity sha512-LOQtSF4z+hejmpUvitPlc4hA7ERGoj2BVkesOcG91HCn8edLGUXbTrErmutmPbl8Bo9HjAvOO/zBKQHExXNA2A==
1645-
dependencies:
1646-
"@typescript-eslint/types" "5.42.1"
1647-
eslint-visitor-keys "^3.3.0"
1648-
1649-
"@typescript-eslint/visitor-keys@5.48.0":
1650-
version "5.48.0"
1651-
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.48.0.tgz#4446d5e7f6cadde7140390c0e284c8702d944904"
1652-
integrity sha512-5motVPz5EgxQ0bHjut3chzBkJ3Z3sheYVcSwS5BpHZpLqSptSmELNtGixmgj65+rIfhvtQTz5i9OP2vtzdDH7Q==
1653-
dependencies:
1654-
"@typescript-eslint/types" "5.48.0"
1655-
eslint-visitor-keys "^3.3.0"
1656-
16571567
"@typescript-eslint/visitor-keys@5.50.0":
16581568
version "5.50.0"
16591569
resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.50.0.tgz#b752ffc143841f3d7bc57d6dd01ac5c40f8c4903"
@@ -7279,10 +7189,10 @@ typedoc@0.22.18:
72797189
minimatch "^5.1.0"
72807190
shiki "^0.10.1"
72817191

7282-
typescript@^4.1.3, typescript@^4.6.4, typescript@^4.9.3, typescript@~4.9.3:
7283-
version "4.9.4"
7284-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78"
7285-
integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==
7192+
typescript@^4.1.3, typescript@^4.6.4, typescript@^4.9.5, typescript@~4.9.3:
7193+
version "4.9.5"
7194+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a"
7195+
integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==
72867196

72877197
uglify-js@^3.1.4:
72887198
version "3.15.3"

0 commit comments

Comments
 (0)