uilint 0.2.103 → 0.2.105

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/dist/index.js CHANGED
@@ -2663,7 +2663,7 @@ async function serve(options) {
2663
2663
  rules: ruleRegistry.filter((rule) => currentRuleConfigs.has(rule.id)).map((rule) => {
2664
2664
  const currentConfig = currentRuleConfigs.get(rule.id);
2665
2665
  return {
2666
- id: rule.id,
2666
+ id: `uilint/${rule.id}`,
2667
2667
  name: rule.name,
2668
2668
  description: rule.description,
2669
2669
  category: rule.category,
@@ -3962,10 +3962,11 @@ function getGitInfo(cwd) {
3962
3962
  function buildRuleMetadata(appRoot) {
3963
3963
  const eslintConfigPath = findEslintConfigFile(appRoot);
3964
3964
  const currentRuleConfigs = eslintConfigPath ? readRuleConfigsFromConfig(eslintConfigPath) : /* @__PURE__ */ new Map();
3965
- return ruleRegistry2.filter((rule) => currentRuleConfigs.has(rule.id)).map((rule) => {
3966
- const currentConfig = currentRuleConfigs.get(rule.id);
3965
+ return ruleRegistry2.filter((rule) => currentRuleConfigs.has(`uilint/${rule.id}`)).map((rule) => {
3966
+ const fullId = `uilint/${rule.id}`;
3967
+ const currentConfig = currentRuleConfigs.get(fullId);
3967
3968
  return {
3968
- id: rule.id,
3969
+ id: fullId,
3969
3970
  name: rule.name,
3970
3971
  description: rule.description,
3971
3972
  category: rule.category,
@@ -4037,7 +4038,7 @@ async function generateManifest(options = {}) {
4037
4038
  }
4038
4039
  for (const issue of manifestIssues) {
4039
4040
  if (issue.ruleId) {
4040
- const rule = rules.find((r) => `uilint/${r.id}` === issue.ruleId || r.id === issue.ruleId);
4041
+ const rule = rules.find((r) => r.id === issue.ruleId);
4041
4042
  const severity = rule?.currentSeverity ?? rule?.defaultSeverity ?? "warn";
4042
4043
  if (severity === "error") {
4043
4044
  errorCount++;