@salesforce-ux/slds-linter 0.1.2-alpha.0 → 0.1.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/build/index.js CHANGED
@@ -9,7 +9,7 @@ var require_package = __commonJS({
9
9
  "package.json"(exports, module) {
10
10
  module.exports = {
11
11
  name: "@salesforce-ux/slds-linter",
12
- version: "0.1.1",
12
+ version: "0.1.2-alpha.0",
13
13
  description: "SLDS Linter CLI tool for linting styles and components",
14
14
  keywords: [
15
15
  "lightning design system linter",
@@ -36,8 +36,8 @@ var require_package = __commonJS({
36
36
  lint: "eslint src/**/*.ts"
37
37
  },
38
38
  dependencies: {
39
- "@salesforce-ux/eslint-plugin-slds": "0.1.1",
40
- "@salesforce-ux/stylelint-plugin-slds": "0.1.1",
39
+ "@salesforce-ux/eslint-plugin-slds": "0.1.2-alpha.0",
40
+ "@salesforce-ux/stylelint-plugin-slds": "0.1.2-alpha.0",
41
41
  "@typescript-eslint/eslint-plugin": "^5.0.0",
42
42
  "@typescript-eslint/parser": "^5.0.0",
43
43
  chalk: "^4.1.2",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../package.json", "../src/index.ts"],
4
- "sourcesContent": ["{\n \"name\": \"@salesforce-ux/slds-linter\",\n \"version\": \"0.1.1\",\n \"description\": \"SLDS Linter CLI tool for linting styles and components\",\n \"keywords\": [\n \"lightning design system linter\",\n \"SLDS Linter\",\n \"SLDS2 Linter\",\n \"SLDS Stylelint\",\n \"SLDS ESLint\"\n ],\n \"author\": \"UXF Tooling Team\",\n \"type\": \"module\",\n \"main\": \"build/index.js\",\n \"files\": [\n \"build/**\",\n \"README.md\"\n ],\n \"bin\": {\n \"slds-linter\": \"./build/index.js\"\n },\n \"scripts\": {\n \"prepublishOnly\": \"clean-pkg-json\",\n \"build\": \"gulp build\",\n \"dev\": \"gulp dev\",\n \"test\": \"NODE_OPTIONS=\\\"$NODE_OPTIONS --experimental-vm-modules\\\" npx jest\",\n \"lint\": \"eslint src/**/*.ts\"\n },\n \"dependencies\": {\n \"@salesforce-ux/eslint-plugin-slds\": \"0.1.1\",\n \"@salesforce-ux/stylelint-plugin-slds\": \"0.1.1\",\n \"@typescript-eslint/eslint-plugin\": \"^5.0.0\",\n \"@typescript-eslint/parser\": \"^5.0.0\",\n \"chalk\": \"^4.1.2\",\n \"commander\": \"^13.1.0\",\n \"eslint\": \"^8.0.0\",\n \"glob\": \"^11.0.0\",\n \"json-stream-stringify\": \"^3.1.6\",\n \"node-sarif-builder\": \"^3.2.0\",\n \"ora\": \"^5.4.1\",\n \"semver\": \"^7.7.1\",\n \"stylelint\": \"^16.10.0\"\n },\n \"devDependencies\": {\n \"@types/jest\": \"^29.5.14\",\n \"jest\": \"^29.7.0\",\n \"ts-jest\": \"^29.2.5\"\n },\n \"license\": \"ISC\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/salesforce-ux/slds-linter.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/salesforce-ux/slds-linter/issues\"\n },\n \"homepage\": \"https://github.com/salesforce-ux/slds-linter/tree/main/packages/cli#slds-linter\",\n \"publishConfig\": {\n \"registry\": \"https://registry.npmjs.org\"\n }\n}\n", "#!/usr/bin/env node\n\nimport { Command } from 'commander';\nimport { registerLintStylesCommand } from './commands/lint-styles';\nimport { registerLintComponentsCommand } from './commands/lint-components';\nimport { registerLintCommand } from './commands/lint';\nimport { registerReportCommand } from './commands/report';\nimport { registerEmitCommand } from './commands/emit';\nimport { Logger } from './utils/logger';\nimport { validateNodeVersion } from './utils/nodeVersionUtil';\n\n// Validate Node.js version before proceeding\nvalidateNodeVersion();\n\nprocess.on('unhandledRejection', (error) => {\n Logger.error(`Unhandled rejection: ${error}`);\n process.exit(1);\n});\n\nprocess.on('uncaughtException', (error) => {\n Logger.error(`Uncaught exception: ${error}`);\n process.exit(1);\n});\n\nconst program = new Command();\n\nprogram\n .name('npx @salesforce-ux/slds-linter@latest')\n .showHelpAfterError();\n\nfunction registerVersion(){\n //TODO: Not an optimised way of doing. will review later\n let pkg = {description:'', version:''};\n try{\n pkg = require(\"../package.json\")\n }catch(e){}\n program.description(pkg.description)\n .version(pkg.version);\n}\n\nregisterLintStylesCommand(program);\nregisterLintComponentsCommand(program);\nregisterLintCommand(program);\nregisterReportCommand(program);\nregisterEmitCommand(program);\nregisterVersion();\n\nprogram.parse(process.argv); "],
4
+ "sourcesContent": ["{\n \"name\": \"@salesforce-ux/slds-linter\",\n \"version\": \"0.1.2-alpha.0\",\n \"description\": \"SLDS Linter CLI tool for linting styles and components\",\n \"keywords\": [\n \"lightning design system linter\",\n \"SLDS Linter\",\n \"SLDS2 Linter\",\n \"SLDS Stylelint\",\n \"SLDS ESLint\"\n ],\n \"author\": \"UXF Tooling Team\",\n \"type\": \"module\",\n \"main\": \"build/index.js\",\n \"files\": [\n \"build/**\",\n \"README.md\"\n ],\n \"bin\": {\n \"slds-linter\": \"./build/index.js\"\n },\n \"scripts\": {\n \"prepublishOnly\": \"clean-pkg-json\",\n \"build\": \"gulp build\",\n \"dev\": \"gulp dev\",\n \"test\": \"NODE_OPTIONS=\\\"$NODE_OPTIONS --experimental-vm-modules\\\" npx jest\",\n \"lint\": \"eslint src/**/*.ts\"\n },\n \"dependencies\": {\n \"@salesforce-ux/eslint-plugin-slds\": \"0.1.2-alpha.0\",\n \"@salesforce-ux/stylelint-plugin-slds\": \"0.1.2-alpha.0\",\n \"@typescript-eslint/eslint-plugin\": \"^5.0.0\",\n \"@typescript-eslint/parser\": \"^5.0.0\",\n \"chalk\": \"^4.1.2\",\n \"commander\": \"^13.1.0\",\n \"eslint\": \"^8.0.0\",\n \"glob\": \"^11.0.0\",\n \"json-stream-stringify\": \"^3.1.6\",\n \"node-sarif-builder\": \"^3.2.0\",\n \"ora\": \"^5.4.1\",\n \"semver\": \"^7.7.1\",\n \"stylelint\": \"^16.10.0\"\n },\n \"devDependencies\": {\n \"@types/jest\": \"^29.5.14\",\n \"jest\": \"^29.7.0\",\n \"ts-jest\": \"^29.2.5\"\n },\n \"license\": \"ISC\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/salesforce-ux/slds-linter.git\"\n },\n \"bugs\": {\n \"url\": \"https://github.com/salesforce-ux/slds-linter/issues\"\n },\n \"homepage\": \"https://github.com/salesforce-ux/slds-linter/tree/main/packages/cli#slds-linter\",\n \"publishConfig\": {\n \"registry\": \"https://registry.npmjs.org\"\n }\n}\n", "#!/usr/bin/env node\n\nimport { Command } from 'commander';\nimport { registerLintStylesCommand } from './commands/lint-styles';\nimport { registerLintComponentsCommand } from './commands/lint-components';\nimport { registerLintCommand } from './commands/lint';\nimport { registerReportCommand } from './commands/report';\nimport { registerEmitCommand } from './commands/emit';\nimport { Logger } from './utils/logger';\nimport { validateNodeVersion } from './utils/nodeVersionUtil';\n\n// Validate Node.js version before proceeding\nvalidateNodeVersion();\n\nprocess.on('unhandledRejection', (error) => {\n Logger.error(`Unhandled rejection: ${error}`);\n process.exit(1);\n});\n\nprocess.on('uncaughtException', (error) => {\n Logger.error(`Uncaught exception: ${error}`);\n process.exit(1);\n});\n\nconst program = new Command();\n\nprogram\n .name('npx @salesforce-ux/slds-linter@latest')\n .showHelpAfterError();\n\nfunction registerVersion(){\n //TODO: Not an optimised way of doing. will review later\n let pkg = {description:'', version:''};\n try{\n pkg = require(\"../package.json\")\n }catch(e){}\n program.description(pkg.description)\n .version(pkg.version);\n}\n\nregisterLintStylesCommand(program);\nregisterLintComponentsCommand(program);\nregisterLintCommand(program);\nregisterReportCommand(program);\nregisterEmitCommand(program);\nregisterVersion();\n\nprogram.parse(process.argv); "],
5
5
  "mappings": ";;;;;;;AAAA;AAAA;AAAA;AAAA,MACE,MAAQ;AAAA,MACR,SAAW;AAAA,MACX,aAAe;AAAA,MACf,UAAY;AAAA,QACV;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,MACF;AAAA,MACA,QAAU;AAAA,M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AM,UAAU,IAAI,QAAQ;AAE5B,QACG,KAAK,uCAAuC,EAC5C,mBAAmB;AAEtB,SAAS,kBAAiB;AAExB,MAAI,MAAM,EAAC,aAAY,IAAI,SAAQ,GAAE;AACrC,MAAG;AACD,UAAM;AAAA,EACR,SAAO,GAAE;AAAA,EAAC;AACV,UAAQ,YAAY,IAAI,WAAW,EAClC,QAAQ,IAAI,OAAO;AACtB;AAEA,0BAA0B,OAAO;AACjC,8BAA8B,OAAO;AACrC,oBAAoB,OAAO;AAC3B,sBAAsB,OAAO;AAC7B,oBAAoB,OAAO;AAC3B,gBAAgB;AAEhB,QAAQ,MAAM,QAAQ,IAAI;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce-ux/slds-linter",
3
- "version": "0.1.2-alpha.0",
3
+ "version": "0.1.2",
4
4
  "description": "SLDS Linter CLI tool for linting styles and components",
5
5
  "keywords": [
6
6
  "lightning design system linter",
@@ -20,8 +20,8 @@
20
20
  "slds-linter": "./build/index.js"
21
21
  },
22
22
  "dependencies": {
23
- "@salesforce-ux/eslint-plugin-slds": "0.1.2-alpha.0",
24
- "@salesforce-ux/stylelint-plugin-slds": "0.1.2-alpha.0",
23
+ "@salesforce-ux/eslint-plugin-slds": "0.1.2",
24
+ "@salesforce-ux/stylelint-plugin-slds": "0.1.2",
25
25
  "@typescript-eslint/eslint-plugin": "^5.0.0",
26
26
  "@typescript-eslint/parser": "^5.0.0",
27
27
  "chalk": "^4.1.2",