Skip to content

Commit

Permalink
Merge branch 'develop' into daphne/W-14196710-verify-cli-version
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales authored Nov 9, 2023
2 parents d6ddd1b + 69508ca commit 8bcf1a7
Show file tree
Hide file tree
Showing 128 changed files with 2,491 additions and 5,890 deletions.
13 changes: 0 additions & 13 deletions .eslintrc.json

This file was deleted.

1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"donjayamanne.githistory",
// Linter
"dbaeumer.vscode-eslint",
"eg2.tslint",
// Formatting
"esbenp.prettier-vscode",
"stkb.rewrap",
Expand Down
22 changes: 21 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,25 @@
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.tabSize": 2,
"editor.formatOnSave": true,
"rewrap.wrappingColumn": 80
"rewrap.wrappingColumn": 80,
"eslint.workingDirectories": [
"./packages/salesforcedx-apex-replay-debugger",
"./packages/salesforcedx-vscode-visualforce",
"./packages/salesforcedx-vscode-apex-replay-debugger",
"./packages/salesforcedx-vscode-core",
"./packages/salesforcedx-vscode-apex",
"./packages/salesforcedx-utils-vscode",
"./packages/salesforcedx-visualforce-markup-language-server",
"./packages/salesforcedx-visualforce-language-server",
"./@typescript-eslint/no-unsafe-return",
"./packages/salesforcedx-test-utils-vscode",
"./packages/system-tests",
"./packages/salesforcedx-vscode-apex-debugger",
"./packages/salesforcedx-vscode-lwc",
"./packages/salesforcedx-apex-debugger",
"./packages/salesforcedx-vscode-soql",
"./packages/salesforcedx-utils",
"./packages/salesforcedx-vscode-lightning",
"./packages/salesforcedx-sobjects-faux-generator"
]
}
22 changes: 11 additions & 11 deletions SHA256.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ make sure that their SHA values match the values in the list below.
following the instructions at
https://code.visualstudio.com/docs/editor/extension-gallery#_common-questions.
For example, download,
https://salesforce.gallery.vsassets.io/_apis/public/gallery/publisher/salesforce/extension/salesforcedx-vscode-core/59.3.1/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage.
https://salesforce.gallery.vsassets.io/_apis/public/gallery/publisher/salesforce/extension/salesforcedx-vscode-core/59.4.0/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage.

2. From a terminal, run:

shasum -a 256 <location_of_the_downloaded_file>

3. Confirm that the SHA in your output matches the value in this list of SHAs.

06dc07986cd5673eac01688bf2297bd662fb40075f00156a57cdcb0c709b81ba salesforcedx-vscode-59.3.1.vsix
0edc205ce47b52f9d7ae1f3799bcbefbd8c7696af5be7df4b772b7b16efe2b8e salesforcedx-vscode-apex-59.3.1.vsix
c33ba4b84cd86a7ed840fd12490bcd1f70c3a645067ccc79a8d59001aa1c4c31 salesforcedx-vscode-apex-debugger-59.3.1.vsix
327eedb3205a4637d585778740e7a9ea86750530dd3234145248e57e182367b6 salesforcedx-vscode-apex-replay-debugger-59.3.1.vsix
5bd36cafe4e4c1231fe9582b6b4be942d3987008a25b64a316bab9457bd3d751 salesforcedx-vscode-core-59.3.1.vsix
faeef5a29bda40c9f09e8878b20addeab521f4b0dc90db30e30b02fe0d811faa salesforcedx-vscode-expanded-59.3.1.vsix
adb84062394488087a13ca1191477e2db1594f1398283191b95b4f41fcfcbad5 salesforcedx-vscode-lightning-59.3.1.vsix
1c2310c430ac8dd1f0de0313b026ba83520dc0bcba7828258fc4afc5d8cd6dd7 salesforcedx-vscode-lwc-59.3.1.vsix
588cb72a9e763e9623afafff74d88389f22274fa4b441dc926063f233f6dd277 salesforcedx-vscode-soql-59.3.1.vsix
a7df26f98c5994d5dddd056a959379f7c96b509542e3287350ad2705af05f808 salesforcedx-vscode-visualforce-59.3.1.vsix
b507418cff493a2c4f1e9506ecdd109dc0d1c7cd510a75f125b8545e8a600785 salesforcedx-vscode-59.4.0.vsix
e16183fc322295702c1c1db0613ca323c0c62d0dd707f1359a88ae9ab654c30f salesforcedx-vscode-apex-59.4.0.vsix
906cce6ac5f3643adf51593c4c37ff4effddd3e9cdc2954a60c64487fc148221 salesforcedx-vscode-apex-debugger-59.4.0.vsix
1dbb5627b4fd580dad4d101ea12fa368754d9a4e2588b036ae9515e7ac5afe83 salesforcedx-vscode-apex-replay-debugger-59.4.0.vsix
a3a118e955696da71f7985ff68f8ff1192665cb7d03285cf8a7cee6b79888d03 salesforcedx-vscode-core-59.4.0.vsix
698915537b5819bfce4cc52df129209392a72c5c7f4a59450458e5653076f413 salesforcedx-vscode-expanded-59.4.0.vsix
ca923e946330bbf7392289b209014a81a82b35172789f15d919a774c128f7469 salesforcedx-vscode-lightning-59.4.0.vsix
825113659d790e9c08c710ae310b29e503313763cb7b2d7730075a41baaac496 salesforcedx-vscode-lwc-59.4.0.vsix
dab8b4031ec97b998f7704878b65e0d88db3032facc0c7a2513bd3f56d7373db salesforcedx-vscode-soql-59.4.0.vsix
51cc889474a13d85ae9a656aa1a0f2b702e9cdbe5312ca2e3ab682cbf330cb46 salesforcedx-vscode-visualforce-59.4.0.vsix


4. Change the filename extension for the file that you downloaded from .zip to
Expand Down
261 changes: 261 additions & 0 deletions config/base-eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,261 @@
{
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"eslint-plugin-header",
"eslint-plugin-import",
"eslint-plugin-jsdoc",
"eslint-plugin-jest-formatting",
"eslint-plugin-prefer-arrow"
],
"ignorePatterns": [
"out",
"dist",
"**/packages/**/coverage",
"**/*.d.ts",
"**/jest.config.js",
"jest.integration.config.js"
],
"rules": {
"header/header": [
"warn",
"block",
[
"*",
" * Copyright (c) 2023, salesforce.com, inc.",
" * All rights reserved.",
" * Licensed under the BSD 3-Clause license.",
" * For full license text, see LICENSE.txt file in the repo root or https://opensource.org/licenses/BSD-3-Clause",
" *"
]
],
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": [
"error",
{
"default": "array"
}
],
"@typescript-eslint/ban-types": [
"warn",
{
"types": {
"Object": {
"message": "Avoid using the `Object` type. Did you mean `object`?"
},
"Function": {
"message": "Avoid using the `Function` type. Prefer a specific function type, like `() => void`."
},
"Boolean": {
"message": "Avoid using the `Boolean` type. Did you mean `boolean`?"
},
"Number": {
"message": "Avoid using the `Number` type. Did you mean `number`?"
},
"String": {
"message": "Avoid using the `String` type. Did you mean `string`?"
},
"Symbol": {
"message": "Avoid using the `Symbol` type. Did you mean `symbol`?"
}
}
}
],
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/consistent-type-definitions": "off",
"@typescript-eslint/dot-notation": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/member-delimiter-style": [
"error",
{
"multiline": {
"delimiter": "semi",
"requireLast": true
},
"singleline": {
"delimiter": "semi",
"requireLast": false
}
}
],
"@typescript-eslint/member-ordering": "off",
"@typescript-eslint/naming-convention": [
"off",
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"],
"leadingUnderscore": "forbid",
"trailingUnderscore": "forbid"
}
],
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-shadow": [
"error",
{
"hoist": "all"
}
],
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/quotes": [
"error",
"single",
{
"avoidEscape": true
}
],
"@typescript-eslint/semi": ["error", "always"],
"@typescript-eslint/triple-slash-reference": [
"error",
{
"path": "always",
"types": "prefer-import",
"lib": "always"
}
],
"@typescript-eslint/typedef": "off",
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/restrict-template-expressions": [
"error",
{
"allowNumber": true,
"allowBoolean": true,
"allowAny": false,
"allowNullish": true
}
],
"arrow-parens": ["error", "as-needed"],
"comma-dangle": "error",
"complexity": "off",
"constructor-super": "error",
"curly": ["error", "multi-line"],
"dot-notation": "off",
"eqeqeq": ["error", "smart"],
"guard-for-in": "error",
"id-denylist": "error",
"id-match": "error",
"import/order": [
"error",
{
"alphabetize": {
"caseInsensitive": true,
"order": "asc"
},
"newlines-between": "ignore",
"groups": [
["builtin", "external", "internal", "unknown", "object", "type"],
"parent",
["sibling", "index"]
],
"distinctGroup": false,
"pathGroupsExcludedImportTypes": [],
"pathGroups": [
{
"pattern": "./",
"patternOptions": {
"nocomment": true,
"dot": true
},
"group": "sibling",
"position": "before"
},
{
"pattern": ".",
"patternOptions": {
"nocomment": true,
"dot": true
},
"group": "sibling",
"position": "before"
},
{
"pattern": "..",
"patternOptions": {
"nocomment": true,
"dot": true
},
"group": "parent",
"position": "before"
},
{
"pattern": "../",
"patternOptions": {
"nocomment": true,
"dot": true
},
"group": "parent",
"position": "before"
}
]
}
],
"jsdoc/check-alignment": "error",
"jsdoc/check-indentation": "error",
"jsdoc/newline-after-description": "off",
"max-classes-per-file": "off",
"max-len": "off",
"new-parens": "error",
"no-bitwise": "off",
"no-caller": "error",
"no-cond-assign": "error",
"no-console": "off",
"no-debugger": "error",
"no-empty": "off",
"no-empty-function": "off",
"no-eval": "error",
"no-fallthrough": "off",
"no-invalid-this": "off",
"no-new-wrappers": "error",
"no-shadow": "off",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-underscore-dangle": "off",
"no-unsafe-finally": "error",
"no-unused-expressions": "off",
"no-unused-labels": "error",
"no-use-before-define": "off",
"no-var": "error",
"object-shorthand": "error",
"one-var": ["error", "never"],
"prefer-arrow/prefer-arrow-functions": ["warn", {}],
"prefer-const": "error",
"quote-props": ["error", "as-needed"],
"quotes": "off",
"radix": "error",
"semi": "off",
"spaced-comment": [
"off",
"always",
{
"markers": ["/"]
}
],
"use-isnan": "error",
"valid-typeof": "off"
}
}
22 changes: 22 additions & 0 deletions config/common-test-lint-rules.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"rules": {
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-unsafe-assignment": "warn",
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-unsafe-return": "warn",
"@typescript-eslint/restrict-template-expressions": "warn"
},
"overrides": [
{
"files": ["jest/**"],
"plugins": ["jest"],
"rules": {
"@typescript-eslint/unbound-method": "off",
"jest/unbound-method": "error"
}
}
]
}
2 changes: 1 addition & 1 deletion contributing/coding-guidelines.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Coding Guidelines

When possible, the following are enforced through the code formatter
(Prettier.js) and tslint rules.
(Prettier.js) and eslint rules.

---

Expand Down
Loading

0 comments on commit 8bcf1a7

Please sign in to comment.