@salesforce-ux/slds-linter 0.3.1-internal-beta.1 → 0.3.1-internal-beta.2
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.
package/README.md
CHANGED
|
@@ -28,7 +28,7 @@ Install these items if they aren't installed already.
|
|
|
28
28
|
- [VS Code](https://code.visualstudio.com/)
|
|
29
29
|
- [SARIF Viewer](https://marketplace.visualstudio.com/items?itemName=MS-SarifVSCode.sarif-viewer) VS Code extension. This extension enables you to view SLDS Linter violation reports.
|
|
30
30
|
- [Node.js](https://nodejs.org/)
|
|
31
|
-
- The minimum supported version is **v18.
|
|
31
|
+
- The minimum supported version is **v18.18.0**
|
|
32
32
|
- We recommend using the latest [Active LTS](https://nodejs.org/en/about/previous-releases) version of Node.js.
|
|
33
33
|
|
|
34
34
|
## Install SLDS Linter
|
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("0.3.1-internal-beta.
|
|
22
|
+
program.description("SLDS Linter CLI tool for linting styles and components").version("0.3.1-internal-beta.2");
|
|
23
23
|
}
|
|
24
24
|
registerLintCommand(program);
|
|
25
25
|
registerReportCommand(program);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// src/services/config.resolver.ts
|
|
2
2
|
import { ruleMetadata } from "@salesforce-ux/stylelint-plugin-slds";
|
|
3
3
|
import { resolvePath } from "../utils/nodeVersionUtil.js";
|
|
4
|
-
var DEFAULT_ESLINT_CONFIG_PATH = resolvePath("@salesforce-ux/eslint-plugin-slds
|
|
4
|
+
var DEFAULT_ESLINT_CONFIG_PATH = resolvePath("@salesforce-ux/eslint-plugin-slds/config", import.meta);
|
|
5
5
|
var DEFAULT_STYLELINT_CONFIG_PATH = resolvePath("@salesforce-ux/stylelint-plugin-slds/.stylelintrc.yml", import.meta);
|
|
6
6
|
var STYLELINT_VERSION = "16.14.1";
|
|
7
|
-
var ESLINT_VERSION = "
|
|
8
|
-
var LINTER_CLI_VERSION = "0.3.1-internal-beta.
|
|
7
|
+
var ESLINT_VERSION = "9.30.1";
|
|
8
|
+
var LINTER_CLI_VERSION = "0.3.1-internal-beta.2";
|
|
9
9
|
var getRuleDescription = (ruleId) => {
|
|
10
10
|
const ruleIdWithoutNameSpace = `${ruleId}`.replace(/\@salesforce-ux\//, "");
|
|
11
11
|
return ruleMetadata(ruleIdWithoutNameSpace)?.ruleDesc || "--";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare const REQUIRED_NODE_VERSION = ">=18.
|
|
1
|
+
export declare const REQUIRED_NODE_VERSION = ">=18.18.0";
|
|
2
2
|
/**
|
|
3
3
|
* Checks if the current Node.js version meets the required version.
|
|
4
4
|
* @param {string} requiredVersion - The required Node.js version.
|
|
5
5
|
* @returns {boolean} - Returns true if the current version is valid.
|
|
6
6
|
*/
|
|
7
|
-
export declare function checkNodeVersion(requiredVersion: any):
|
|
7
|
+
export declare function checkNodeVersion(requiredVersion: any): any;
|
|
8
8
|
/**
|
|
9
9
|
* Validates the Node.js version and exits if it does not meet the requirement.
|
|
10
10
|
*/
|
|
@@ -4,7 +4,7 @@ import { fileURLToPath } from "url";
|
|
|
4
4
|
import { dirname } from "path";
|
|
5
5
|
import { resolve } from "import-meta-resolve";
|
|
6
6
|
import { Logger } from "./logger.js";
|
|
7
|
-
var REQUIRED_NODE_VERSION = ">=18.
|
|
7
|
+
var REQUIRED_NODE_VERSION = ">=18.18.0";
|
|
8
8
|
function checkNodeVersion(requiredVersion) {
|
|
9
9
|
return semver.satisfies(process.version, requiredVersion);
|
|
10
10
|
}
|
|
@@ -6,9 +6,8 @@ var ESLintWorker = class extends BaseWorker {
|
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
8
8
|
this.eslint = new ESLint({
|
|
9
|
-
|
|
10
|
-
fix: this.task.config.fix
|
|
11
|
-
overrideConfigFile: this.task.config.configPath
|
|
9
|
+
overrideConfigFile: this.task.config.configPath,
|
|
10
|
+
fix: this.task.config.fix
|
|
12
11
|
});
|
|
13
12
|
}
|
|
14
13
|
async processFile(filePath) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce-ux/slds-linter",
|
|
3
|
-
"version": "0.3.1-internal-beta.
|
|
3
|
+
"version": "0.3.1-internal-beta.2",
|
|
4
4
|
"description": "SLDS Linter CLI tool for linting styles and components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lightning design system linter",
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
],
|
|
30
30
|
"bin": "build/index.js",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@salesforce-ux/eslint-plugin-slds": "0.3.1-internal-beta.
|
|
33
|
-
"@salesforce-ux/stylelint-plugin-slds": "0.3.1-internal-beta.
|
|
34
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
35
|
-
"@typescript-eslint/parser": "^
|
|
32
|
+
"@salesforce-ux/eslint-plugin-slds": "0.3.1-internal-beta.2",
|
|
33
|
+
"@salesforce-ux/stylelint-plugin-slds": "0.3.1-internal-beta.2",
|
|
34
|
+
"@typescript-eslint/eslint-plugin": "^8.36.0",
|
|
35
|
+
"@typescript-eslint/parser": "^8.36.0",
|
|
36
36
|
"chalk": "^4.1.2",
|
|
37
37
|
"commander": "^13.1.0",
|
|
38
|
-
"eslint": "
|
|
38
|
+
"eslint": "^9.0.0",
|
|
39
39
|
"export-to-csv": "^1.4.0",
|
|
40
40
|
"globby": "^14.1.0",
|
|
41
41
|
"import-meta-resolve": "^4.1.0",
|
|
@@ -45,6 +45,9 @@
|
|
|
45
45
|
"semver": "^7.7.1",
|
|
46
46
|
"stylelint": "16.14.1"
|
|
47
47
|
},
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=18.18.0"
|
|
50
|
+
},
|
|
48
51
|
"license": "ISC",
|
|
49
52
|
"repository": {
|
|
50
53
|
"type": "git",
|