Skip to content

Commit feddbec

Browse files
FIX(eslint): @W-18718589@: Fix config message for eslint_config_file field (#309)
1 parent b68b5e3 commit feddbec

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/code-analyzer-eslint-engine/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@salesforce/code-analyzer-eslint-engine",
33
"description": "Plugin package that adds 'eslint' as an engine into Salesforce Code Analyzer",
4-
"version": "0.26.0",
4+
"version": "0.26.1-SNAPSHOT",
55
"author": "The Salesforce Code Analyzer Team",
66
"license": "BSD-3-Clause",
77
"homepage": "https://developer.salesforce.com/docs/platform/salesforce-code-analyzer/overview",
@@ -76,4 +76,4 @@
7676
"!src/index.ts"
7777
]
7878
}
79-
}
79+
}

packages/code-analyzer-eslint-engine/src/config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import {makeUnique} from "./utils";
1010
export type ESLintEngineConfig = {
1111
// Your project's main ESLint configuration file. May be provided as a path relative to the config_root.
1212
// If not supplied, and auto_discover_eslint_config=true, then Code Analyzer will attempt to find and apply it automatically.
13-
// Currently, only support legacy config files are supported.
1413
eslint_config_file?: string
1514

1615
// Your project's ".eslintignore" file. May be provided as a path relative to the config_root.

packages/code-analyzer-eslint-engine/src/messages.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ const MESSAGE_CATALOG : { [key: string]: string } = {
99
ConfigFieldDescription_eslint_config_file:
1010
`Your project's main ESLint configuration file. May be an absolute path or a path relative to the config_root.\n` +
1111
`If null and auto_discover_eslint_config is true, then Code Analyzer will attempt to discover/apply it automatically.\n` +
12-
`Currently only legacy ESLInt config files are supported.\n` +
13-
`See https://eslint.org/docs/v8.x/use/configure/configuration-files to learn more.`,
12+
`We currently support both flat and legacy ESLint configuration files, but will be removing support for legacy eslintrc\n` +
13+
`ESLint configuration files in the coming months.\n` +
14+
`See https://eslint.org/docs/latest/use/configure/configuration-files to learn more.`,
1415

1516
ConfigFieldDescription_eslint_ignore_file:
1617
`Your project's ".eslintignore" file. May be an absolute path or a path relative to the config_root.\n` +
@@ -84,7 +85,7 @@ const MESSAGE_CATALOG : { [key: string]: string } = {
8485

8586
DetectedLegacyConfig:
8687
`Using ESLint v8 instead of ESLint v9 because we detected the use of a legacy eslintrc ESLint configuration file or ignore file was detected: %s.\n` +
87-
`Because ESLint v8 is no longer supported, Code Analyzer will be removing support for legacy eslint ESLint configuration files in the coming months.\n` +
88+
`Because ESLint v8 is no longer supported, Code Analyzer will be removing support for legacy eslintrc ESLint configuration files in the coming months.\n` +
8889
`Therefore, we highly recommend that you migrate your legacy eslintrc configuration to the new flat configuration format as soon as possible.\n` +
8990
`Learn how at: https://eslint.org/docs/latest/use/configure/migration-guide`,
9091

0 commit comments

Comments
 (0)