@codacy/tools-eslint-9 0.1.0 → 0.1.1

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 +16 -12
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -25561,9 +25561,7 @@ var BLACKLISTED_RULES = /* @__PURE__ */ new Set([
25561
25561
  "@typescript-eslint/brace-style",
25562
25562
  "@typescript-eslint/indent"
25563
25563
  ]);
25564
- var BLACKLISTED_RULE_PATTERNS = [
25565
- /^unused-imports\/.*-ts$/
25566
- ];
25564
+ var BLACKLISTED_RULE_PATTERNS = [/^unused-imports\/.*-ts$/];
25567
25565
  function isBlacklisted(ruleId) {
25568
25566
  if (BLACKLISTED_RULES.has(ruleId)) return true;
25569
25567
  return BLACKLISTED_RULE_PATTERNS.some((re) => re.test(ruleId));
@@ -25655,7 +25653,10 @@ var KNOWN_PLUGINS = [
25655
25653
  { prefix: "security-node", load: () => loadPlugin("eslint-plugin-security-node") },
25656
25654
  { prefix: "sonarjs", load: () => loadPlugin("eslint-plugin-sonarjs") },
25657
25655
  { prefix: "sort", load: () => loadPlugin("eslint-plugin-sort") },
25658
- { prefix: "sort-destructure-keys", load: () => loadPlugin("eslint-plugin-sort-destructure-keys") },
25656
+ {
25657
+ prefix: "sort-destructure-keys",
25658
+ load: () => loadPlugin("eslint-plugin-sort-destructure-keys")
25659
+ },
25659
25660
  { prefix: "storybook", load: () => loadPlugin("eslint-plugin-storybook") },
25660
25661
  { prefix: "suitescript", load: () => loadPlugin("eslint-plugin-suitescript") },
25661
25662
  { prefix: "svelte", load: () => loadPlugin("eslint-plugin-svelte") },
@@ -25673,9 +25674,7 @@ var KNOWN_PLUGINS = [
25673
25674
  { prefix: "xss", load: () => loadPlugin("eslint-plugin-xss") },
25674
25675
  { prefix: "yml", load: () => loadPlugin("eslint-plugin-yml") }
25675
25676
  ];
25676
- var PLUGIN_INDEX = new Map(
25677
- KNOWN_PLUGINS.map((p) => [p.prefix, p])
25678
- );
25677
+ var PLUGIN_INDEX = new Map(KNOWN_PLUGINS.map((p) => [p.prefix, p]));
25679
25678
  async function loadRequiredPlugins(ruleIds) {
25680
25679
  const neededPrefixes = /* @__PURE__ */ new Set();
25681
25680
  for (const id of ruleIds) {
@@ -25897,7 +25896,9 @@ var adapter = {
25897
25896
  */
25898
25897
  async install(ctx) {
25899
25898
  ctx.logger.info("Starting install", { toolId: TOOL_ID2 });
25900
- ctx.logger.info("ESLint is bundled as an npm dependency \u2014 no installation needed", { toolId: TOOL_ID2 });
25899
+ ctx.logger.info("ESLint is bundled as an npm dependency \u2014 no installation needed", {
25900
+ toolId: TOOL_ID2
25901
+ });
25901
25902
  return { success: true, installedVersion: adapter.preferredVersion };
25902
25903
  },
25903
25904
  /**
@@ -25930,9 +25931,7 @@ var adapter = {
25930
25931
  const startedAt = /* @__PURE__ */ new Date();
25931
25932
  const issues = [];
25932
25933
  const errors = [];
25933
- const absoluteFiles = ctx.targetFiles.map(
25934
- (f) => import_path.default.resolve(ctx.repositoryRoot, f)
25935
- );
25934
+ const absoluteFiles = ctx.targetFiles.map((f) => import_path.default.resolve(ctx.repositoryRoot, f));
25936
25935
  if (absoluteFiles.length === 0) {
25937
25936
  const completedAt2 = /* @__PURE__ */ new Date();
25938
25937
  return buildResult(startedAt, completedAt2, issues, errors, ctx.targetFiles.length);
@@ -26024,7 +26023,12 @@ var adapter = {
26024
26023
  }
26025
26024
  const completedAt = /* @__PURE__ */ new Date();
26026
26025
  const durationMs = Date.now() - startMs;
26027
- ctx.logger.info("Analysis complete", { toolId: TOOL_ID2, issueCount: issues.length, errorCount: errors.length, durationMs });
26026
+ ctx.logger.info("Analysis complete", {
26027
+ toolId: TOOL_ID2,
26028
+ issueCount: issues.length,
26029
+ errorCount: errors.length,
26030
+ durationMs
26031
+ });
26028
26032
  return buildResult(startedAt, completedAt, issues, errors, ctx.targetFiles.length);
26029
26033
  }
26030
26034
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/tools-eslint-9",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "ESLint 9 adapter — Library-mode JavaScript/TypeScript linter",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "eslint": "^9.0.0",
12
12
  "@eslint/js": "^9.0.0",
13
13
  "typescript-eslint": "^8.0.0",
14
- "globals": "^15.0.0",
14
+ "globals": "^16.5.0",
15
15
  "@angular-eslint/eslint-plugin": "^19.0.0",
16
16
  "@lwc/eslint-plugin-lwc": "^1.0.0",
17
17
  "@salesforce/eslint-plugin-lightning": "^1.0.0",
@@ -79,7 +79,7 @@
79
79
  "eslint-plugin-wdio": "^9.0.0",
80
80
  "eslint-plugin-xss": "^0.1.0",
81
81
  "eslint-plugin-yml": "^1.0.0",
82
- "@codacy/tooling": "0.1.0"
82
+ "@codacy/tooling": "0.1.1"
83
83
  },
84
84
  "license": "MIT",
85
85
  "author": "Codacy <support@codacy.com> (https://www.codacy.com)",