@codacy/tools-stylelint-0 0.1.0 → 0.2.0

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -4
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3364,9 +3364,7 @@ var adapter = {
3364
3364
  const startedAt = /* @__PURE__ */ new Date();
3365
3365
  const issues = [];
3366
3366
  const errors = [];
3367
- const absoluteFiles = ctx.targetFiles.map(
3368
- (f) => import_path.default.resolve(ctx.repositoryRoot, f)
3369
- );
3367
+ const absoluteFiles = ctx.targetFiles.map((f) => import_path.default.resolve(ctx.repositoryRoot, f));
3370
3368
  if (absoluteFiles.length === 0) {
3371
3369
  const completedAt2 = /* @__PURE__ */ new Date();
3372
3370
  return buildResult(startedAt, completedAt2, issues, errors, ctx.targetFiles.length);
@@ -3437,7 +3435,12 @@ var adapter = {
3437
3435
  });
3438
3436
  }
3439
3437
  const completedAt = /* @__PURE__ */ new Date();
3440
- ctx.logger.info("Analysis complete", { toolId: TOOL_ID, issueCount: issues.length, errorCount: errors.length, durationMs: Date.now() - startMs });
3438
+ ctx.logger.info("Analysis complete", {
3439
+ toolId: TOOL_ID,
3440
+ issueCount: issues.length,
3441
+ errorCount: errors.length,
3442
+ durationMs: Date.now() - startMs
3443
+ });
3441
3444
  return buildResult(startedAt, completedAt, issues, errors, ctx.targetFiles.length);
3442
3445
  }
3443
3446
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/tools-stylelint-0",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Stylelint adapter — Library-mode CSS/SCSS/Less linter",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -10,7 +10,7 @@
10
10
  "dependencies": {
11
11
  "stylelint": "^16.0.0",
12
12
  "stylelint-config-standard": "^36.0.0",
13
- "@codacy/tooling": "0.1.0"
13
+ "@codacy/tooling": "0.2.0"
14
14
  },
15
15
  "license": "MIT",
16
16
  "author": "Codacy <support@codacy.com> (https://www.codacy.com)",