Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

9 changes: 0 additions & 9 deletions .eslintrc.cjs

This file was deleted.

1 change: 1 addition & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { default } from 'eslint-config-salesforce-typescript';
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,10 @@
"@oclif/core": "^4.13.3",
"@oclif/plugin-command-snapshot": "^5.3.34",
"@salesforce/cli-plugins-testkit": "^5.3.64",
"@salesforce/dev-scripts": "^11.0.4",
"@salesforce/dev-scripts": "^13.0.1",
"@salesforce/plugin-command-reference": "^3.1.131",
"eslint": "^10.4.0",
"eslint-config-salesforce-typescript": "^6.0.0",
"eslint-plugin-sf-plugin": "^1.20.33",
"oclif": "^4.23.29",
"ts-node": "^10.9.2",
Expand Down Expand Up @@ -162,6 +164,7 @@
"src/**/*.ts",
"test/**/*.ts",
"messages/**",
"**/eslint.config.*",
"**/.eslint*",
"**/tsconfig.json"
],
Expand Down
2 changes: 1 addition & 1 deletion src/shared/helpers/metadataUtil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const cleanQueryResponse = (sObjectRecord: Record, objectDescribe: Custom
const fieldDescribe = describeField(objectDescribe, fieldName);
// everything but location returns as is
if (fieldDescribe?.type !== 'Location') {
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return [[fieldName, value]];
}
const fieldValue = JSON.stringify(value);
Expand Down
4 changes: 2 additions & 2 deletions src/shared/templates/templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

/* eslint-disable class-methods-use-this */

import { SfError, Messages } from '@salesforce/core';
import type { CustomValue, CustomField } from '@jsforce/jsforce-node/lib/api/metadata.js';
Expand Down Expand Up @@ -251,4 +251,4 @@ const getPrecisionTag = (data: CustomField): string =>
const getScaleTag = (scale: NonNullable<CustomField['scale']>): string =>
// CustomField thinks this is a number. The UT had it as a string.
// This will work for either(filtering out null / undefined because only ==)
typeof scale !== null ? `\t<scale>${scale}</scale>\n` : '';
scale != null ? `\t<scale>${scale}</scale>\n` : '';
25 changes: 0 additions & 25 deletions test/.eslintrc.cjs

This file was deleted.

4 changes: 2 additions & 2 deletions test/nuts/generate.nut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/* eslint-disable camelcase */

import path from 'node:path';
import fs from 'node:fs';
Expand Down Expand Up @@ -54,7 +54,7 @@ describe('force:cmdt:generate', () => {
ensureExitCode: 0,
cli: 'sf',
});
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
mainFolder = path.join(session.project.dir, 'force-app', 'main', 'default');
objectsFolder = path.join(mainFolder, 'objects');
metadataFolder = path.join(mainFolder, 'customMetadata');
Expand Down
Loading
Loading