@salesforce-ux/slds-linter 1.0.4-internal → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -34,8 +34,8 @@ async function generateEnhancedESLintConfig(sourceConfigPath) {
34
34
  if (rules) {
35
35
  const formattedRules = formatRulesForConfig(rules);
36
36
  return config.replace(
37
- /extends:\s*\["@salesforce-ux\/slds\/recommended"\]/,
38
- `extends: ["@salesforce-ux/slds/recommended"],
37
+ /(extends:\s*\[[^\]]*"@salesforce-ux\/slds\/recommended"[^\]]*\])/,
38
+ `$1,
39
39
  rules: ${formattedRules}`
40
40
  );
41
41
  }
package/build/index.js CHANGED
@@ -19,7 +19,7 @@ process.on("uncaughtException", (error) => {
19
19
  var program = new Command();
20
20
  program.name("npx @salesforce-ux/slds-linter@latest").showHelpAfterError();
21
21
  function registerVersion() {
22
- program.description("SLDS Linter CLI tool for linting styles and components").version("1.0.4-internal");
22
+ program.description("SLDS Linter CLI tool for linting styles and components").version("1.0.4");
23
23
  }
24
24
  registerLintCommand(program);
25
25
  registerReportCommand(program);
@@ -156,8 +156,8 @@ var rule_messages_default = {
156
156
 
157
157
  // src/services/config.resolver.ts
158
158
  var DEFAULT_ESLINT_CONFIG_PATH = resolvePath("@salesforce-ux/eslint-plugin-slds/config", import.meta);
159
- var ESLINT_VERSION = "9.37.0";
160
- var LINTER_CLI_VERSION = "1.0.4-internal";
159
+ var ESLINT_VERSION = "9.36.0";
160
+ var LINTER_CLI_VERSION = "1.0.4";
161
161
  var getRuleDescription = (ruleId) => {
162
162
  const ruleIdWithoutNameSpace = `${ruleId}`.replace(/\@salesforce-ux\//, "").replace(/^slds\//, "");
163
163
  return rule_messages_default[ruleIdWithoutNameSpace]?.description || "--";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce-ux/slds-linter",
3
- "version": "1.0.4-internal",
3
+ "version": "1.0.4",
4
4
  "description": "SLDS Linter CLI tool for linting styles and components",
5
5
  "keywords": [
6
6
  "lightning design system linter",
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "bin": "build/index.js",
31
31
  "dependencies": {
32
- "@salesforce-ux/eslint-plugin-slds": "1.0.4-internal",
32
+ "@salesforce-ux/eslint-plugin-slds": "1.0.4",
33
33
  "@typescript-eslint/eslint-plugin": "^8.36.0",
34
34
  "@typescript-eslint/parser": "^8.36.0",
35
35
  "chalk": "^4.1.2",