@codacy/tools-stylelint-0 0.2.1 → 0.3.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 +4 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -3388,7 +3388,10 @@ var adapter = {
3388
3388
  } else if (codacyConfig.patterns.length > 0) {
3389
3389
  lintOptions.config = buildStylelintConfig(codacyConfig.patterns);
3390
3390
  } else {
3391
- lintOptions.config = { extends: ["stylelint-config-standard"] };
3391
+ ctx.logger.info("Skipping analysis: no local config and no patterns enabled", {
3392
+ toolId: TOOL_ID
3393
+ });
3394
+ return buildResult(startedAt, /* @__PURE__ */ new Date(), issues, errors, ctx.targetFiles.length);
3392
3395
  }
3393
3396
  try {
3394
3397
  const result = await stylelint.lint(lintOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/tools-stylelint-0",
3
- "version": "0.2.1",
3
+ "version": "0.3.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.2.1"
13
+ "@codacy/tooling": "0.3.0"
14
14
  },
15
15
  "license": "MIT",
16
16
  "author": "Codacy <support@codacy.com> (https://www.codacy.com)",