pasika 0.3.7 → 0.3.8

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.
@@ -1,7 +1,7 @@
1
- // eslint/pasika/rules/filename-case.ts
1
+ // eslint/rules/filename-case.ts
2
2
  import path2 from "path";
3
3
 
4
- // eslint/pasika/rules/component-conventions.ts
4
+ // eslint/rules/component-conventions.ts
5
5
  import path from "path";
6
6
  import ts from "typescript";
7
7
  var isPascalCase = (name) => /^[A-Z][A-Za-z0-9]*$/.test(name);
@@ -128,7 +128,7 @@ function getTestId(root) {
128
128
  return { value: value.text, attribute };
129
129
  }
130
130
 
131
- // eslint/pasika/rules/filename-case.ts
131
+ // eslint/rules/filename-case.ts
132
132
  var NEXT_ROUTING_FILES = /* @__PURE__ */ new Set([
133
133
  "page",
134
134
  "layout",
@@ -221,7 +221,7 @@ function report(context, filename, ext) {
221
221
  };
222
222
  }
223
223
 
224
- // eslint/pasika/rules/import-boundaries.ts
224
+ // eslint/rules/import-boundaries.ts
225
225
  import path3 from "path";
226
226
  var sourceRoot = path3.resolve("src");
227
227
  var rootSupportFolders = /* @__PURE__ */ new Set(["config", "constants", "hooks", "locales", "schemas", "types", "utils"]);
@@ -344,7 +344,7 @@ var importBoundariesRule = {
344
344
  }
345
345
  };
346
346
 
347
- // eslint/pasika/rules/no-mixed-concerns.ts
347
+ // eslint/rules/no-mixed-concerns.ts
348
348
  function getExportName(declaration) {
349
349
  if (declaration?.type === "FunctionDeclaration" && declaration.id) {
350
350
  return declaration.id.name ?? null;
@@ -404,7 +404,7 @@ var noMixedConcernsRule = {
404
404
  }
405
405
  };
406
406
 
407
- // eslint/pasika/rules/no-arbitrary-tailwind.ts
407
+ // eslint/rules/no-arbitrary-tailwind.ts
408
408
  var ARBITRARY_VALUE_RE = /(?:^|(?<=\s))(?:[a-z]+(?:-[a-z]+)*)-\[[^\]]+\](?![-\w]*:)/g;
409
409
  var CLASS_HELPERS = /* @__PURE__ */ new Set(["cn", "clsx", "twMerge", "twJoin"]);
410
410
  var noArbitraryTailwindRule = {
@@ -473,7 +473,7 @@ var noArbitraryTailwindRule = {
473
473
  }
474
474
  };
475
475
 
476
- // eslint/pasika/rules/enforce-cn-merge.ts
476
+ // eslint/rules/enforce-cn-merge.ts
477
477
  function classCount(str) {
478
478
  return str.split(/\s+/).filter(Boolean).length;
479
479
  }
@@ -547,7 +547,7 @@ var enforceCnMergeRule = {
547
547
  }
548
548
  };
549
549
 
550
- // eslint/pasika/rules/enforce-cva-variant-props.ts
550
+ // eslint/rules/enforce-cva-variant-props.ts
551
551
  var enforceCvaVariantPropsRule = {
552
552
  meta: {
553
553
  schema: [],
@@ -610,7 +610,7 @@ var enforceCvaVariantPropsRule = {
610
610
  }
611
611
  };
612
612
 
613
- // eslint/pasika/rules/enforce-barrel-exports.ts
613
+ // eslint/rules/enforce-barrel-exports.ts
614
614
  import path4 from "path";
615
615
  import fs from "fs";
616
616
  function isPascalCase3(str) {
@@ -672,14 +672,14 @@ var enforceBarrelExportsRule = {
672
672
  }
673
673
  };
674
674
 
675
- // eslint/pasika/rules/component-placement.ts
675
+ // eslint/rules/component-placement.ts
676
676
  import path8 from "path";
677
677
 
678
- // eslint/pasika/project/index.ts
678
+ // eslint/project/index.ts
679
679
  import { readdirSync, statSync } from "fs";
680
680
  import path6 from "path";
681
681
 
682
- // eslint/pasika/project/parse-module.ts
682
+ // eslint/project/parse-module.ts
683
683
  import path5 from "path";
684
684
  import { readFileSync } from "fs";
685
685
  import ts2 from "typescript";
@@ -784,7 +784,7 @@ function parseModule(file) {
784
784
  return { file: path5.resolve(file), imports, exports };
785
785
  }
786
786
 
787
- // eslint/pasika/project/index.ts
787
+ // eslint/project/index.ts
788
788
  var MODULE_EXTENSIONS = [".ts", ".tsx", ".mts", ".cts", ".js", ".jsx", ".mjs", ".cjs"];
789
789
  var INDEX_BASENAMES = ["index.ts", "index.tsx", "index.mts", "index.cts", "index.js", "index.jsx"];
790
790
  var REVALIDATE_AFTER_MS = 2e3;
@@ -890,7 +890,7 @@ function getProjectIndex(sourceRoot2) {
890
890
  return index;
891
891
  }
892
892
 
893
- // eslint/pasika/project/ccf.ts
893
+ // eslint/project/ccf.ts
894
894
  import path7 from "path";
895
895
  var SUPPORT_FOLDERS2 = /* @__PURE__ */ new Set(["hooks", "types", "schemas", "constants", "utils"]);
896
896
  function segmentsOf(file, sourceRoot2) {
@@ -979,7 +979,7 @@ function describeConsumers(consumers, sourceRoot2) {
979
979
  return `${names.slice(0, shown).join(", ")} and ${String(names.length - shown)} more`;
980
980
  }
981
981
 
982
- // eslint/pasika/rules/component-placement.ts
982
+ // eslint/rules/component-placement.ts
983
983
  var REASON_TEXT = {
984
984
  ccf: "that is the closest folder its consumers share",
985
985
  "across-features": "its consumers span more than one feature, and no feature may import from another",
@@ -1032,7 +1032,7 @@ var componentPlacementRule = {
1032
1032
  }
1033
1033
  };
1034
1034
 
1035
- // eslint/pasika/rules/support-file-placement.ts
1035
+ // eslint/rules/support-file-placement.ts
1036
1036
  import path9 from "path";
1037
1037
  var CONFIG_OWNED_FOLDERS = /* @__PURE__ */ new Set(["types", "constants"]);
1038
1038
  var REASON_TEXT2 = {
@@ -1076,7 +1076,7 @@ var supportFilePlacementRule = {
1076
1076
  }
1077
1077
  };
1078
1078
 
1079
- // eslint/pasika/rules/application-structure.ts
1079
+ // eslint/rules/application-structure.ts
1080
1080
  import fs2 from "fs";
1081
1081
  import path10 from "path";
1082
1082
  var MODULE_EXTENSIONS2 = /* @__PURE__ */ new Set([".ts", ".tsx", ".mts", ".cts", ".js", ".jsx", ".mjs", ".cjs"]);
@@ -1260,7 +1260,7 @@ var applicationStructureRule = {
1260
1260
  }
1261
1261
  };
1262
1262
 
1263
- // eslint/pasika/rules/named-exports.ts
1263
+ // eslint/rules/named-exports.ts
1264
1264
  import path11 from "path";
1265
1265
  var FRAMEWORK_DEFAULT_EXPORT_FILES = /* @__PURE__ */ new Set([
1266
1266
  "default",
@@ -1299,7 +1299,7 @@ var namedExportsRule = {
1299
1299
  }
1300
1300
  };
1301
1301
 
1302
- // eslint/pasika/rules/data-testid-case.ts
1302
+ // eslint/rules/data-testid-case.ts
1303
1303
  import path12 from "path";
1304
1304
  var NEXT_ROUTING_FILES2 = /* @__PURE__ */ new Set([
1305
1305
  "page",
@@ -1366,7 +1366,7 @@ function toKebabCase(value) {
1366
1366
  return value.replace(/(?<lower>[a-z0-9])(?<upper>[A-Z])/g, "$<lower>-$<upper>").replace(/(?<first>[A-Z])(?<rest>[A-Z][a-z])/g, "$<first>-$<rest>").toLowerCase();
1367
1367
  }
1368
1368
 
1369
- // eslint/pasika/rules/support-folder-shape.ts
1369
+ // eslint/rules/support-folder-shape.ts
1370
1370
  import fs3 from "fs";
1371
1371
  import path13 from "path";
1372
1372
  var SUPPORT_FOLDERS3 = /* @__PURE__ */ new Set(["constants", "types", "schemas"]);
@@ -1419,7 +1419,7 @@ var supportFolderShapeRule = {
1419
1419
  }
1420
1420
  };
1421
1421
 
1422
- // eslint/pasika/rules/import-through-index.ts
1422
+ // eslint/rules/import-through-index.ts
1423
1423
  import path14 from "path";
1424
1424
  var importThroughIndexRule = {
1425
1425
  meta: {
@@ -1469,7 +1469,7 @@ function sourceRootOf(filename) {
1469
1469
  return srcIndex >= 0 ? filename.slice(0, srcIndex + marker.length - 1) : path14.resolve("src");
1470
1470
  }
1471
1471
 
1472
- // eslint/pasika/rules/util-file-name.ts
1472
+ // eslint/rules/util-file-name.ts
1473
1473
  import path15 from "path";
1474
1474
  function toKebabCase2(value) {
1475
1475
  return value.replace(/(?<lower>[a-z0-9])(?<upper>[A-Z])/g, "$<lower>-$<upper>").replace(/(?<first>[A-Z])(?<rest>[A-Z][a-z])/g, "$<first>-$<rest>").toLowerCase();
@@ -1510,7 +1510,7 @@ var utilFileNameRule = {
1510
1510
  }
1511
1511
  };
1512
1512
 
1513
- // eslint/pasika/rules/no-util-barrel.ts
1513
+ // eslint/rules/no-util-barrel.ts
1514
1514
  import path16 from "path";
1515
1515
  var noUtilBarrelRule = {
1516
1516
  meta: {
@@ -1555,7 +1555,7 @@ function sourceRootOf2(filename) {
1555
1555
  return srcIndex >= 0 ? filename.slice(0, srcIndex + marker.length - 1) : path16.resolve("src");
1556
1556
  }
1557
1557
 
1558
- // eslint/pasika/rules/jsx-hygiene.ts
1558
+ // eslint/rules/jsx-hygiene.ts
1559
1559
  import ts3 from "typescript";
1560
1560
  var ARITHMETIC_OPERATORS = /* @__PURE__ */ new Set(["+", "-", "*", "/", "%"]);
1561
1561
  function isCallExpression(node) {
@@ -1644,7 +1644,7 @@ var jsxHygieneRule = {
1644
1644
  }
1645
1645
  };
1646
1646
 
1647
- // eslint/pasika/rules/interactive-component.ts
1647
+ // eslint/rules/interactive-component.ts
1648
1648
  var INTERACTIVE_TAGS = /* @__PURE__ */ new Set([
1649
1649
  "a",
1650
1650
  "button",
@@ -1708,7 +1708,7 @@ var interactiveComponentRule = {
1708
1708
  }
1709
1709
  };
1710
1710
 
1711
- // eslint/pasika/rules/ui-state.ts
1711
+ // eslint/rules/ui-state.ts
1712
1712
  var STATE_PROPS = /* @__PURE__ */ new Set([
1713
1713
  "disabled",
1714
1714
  "loading",
@@ -1795,7 +1795,7 @@ var uiStateRule = {
1795
1795
  }
1796
1796
  };
1797
1797
 
1798
- // eslint/pasika/rules/cva-appearance-props.ts
1798
+ // eslint/rules/cva-appearance-props.ts
1799
1799
  var VISUAL_OPTION_NAMES = /* @__PURE__ */ new Set([
1800
1800
  "size",
1801
1801
  "variant",
@@ -1853,7 +1853,7 @@ var cvaAppearancePropsRule = {
1853
1853
  }
1854
1854
  };
1855
1855
 
1856
- // eslint/pasika/rules/cva-boolean-variants.ts
1856
+ // eslint/rules/cva-boolean-variants.ts
1857
1857
  function extractCvaInfo(node) {
1858
1858
  if (node.callee.type !== "Identifier" || node.callee.name !== "cva") {
1859
1859
  return void 0;
@@ -1927,7 +1927,7 @@ var cvaBooleanVariantsRule = {
1927
1927
  }
1928
1928
  };
1929
1929
 
1930
- // eslint/pasika/rules/cross-feature-import.ts
1930
+ // eslint/rules/cross-feature-import.ts
1931
1931
  import path17 from "path";
1932
1932
  var FEATURES_SEGMENT = "features";
1933
1933
  function featureNameOf(resolvedPath, sourceRoot2) {
@@ -1985,7 +1985,7 @@ var crossFeatureImportRule = {
1985
1985
  }
1986
1986
  };
1987
1987
 
1988
- // eslint/pasika/rules/pure-function-extract.ts
1988
+ // eslint/rules/pure-function-extract.ts
1989
1989
  import path18 from "path";
1990
1990
  function isComponentLikeName(name) {
1991
1991
  return /^[A-Z]/.test(name);
@@ -2056,7 +2056,7 @@ var pureFunctionExtractRule = {
2056
2056
  }
2057
2057
  };
2058
2058
 
2059
- // eslint/pasika/rules/hook-complexity.ts
2059
+ // eslint/rules/hook-complexity.ts
2060
2060
  import path19 from "path";
2061
2061
  import ts4 from "typescript";
2062
2062
  var REACT_HOOKS = /* @__PURE__ */ new Set([
@@ -2153,7 +2153,7 @@ var hookComplexityRule = {
2153
2153
  }
2154
2154
  };
2155
2155
 
2156
- // eslint/pasika/rules/locale-dotted-path.ts
2156
+ // eslint/rules/locale-dotted-path.ts
2157
2157
  import path20 from "path";
2158
2158
  function isInLocalesDir(filename) {
2159
2159
  const segments = path20.resolve(filename).split(path20.sep);
@@ -2204,7 +2204,7 @@ var localeDottedPathRule = {
2204
2204
  }
2205
2205
  };
2206
2206
 
2207
- // eslint/pasika/rules/locales-location.ts
2207
+ // eslint/rules/locales-location.ts
2208
2208
  import path21 from "path";
2209
2209
  function isLocalesFile(filename) {
2210
2210
  const segments = path21.resolve(filename).split(path21.sep);
@@ -2247,7 +2247,7 @@ var localesLocationRule = {
2247
2247
  }
2248
2248
  };
2249
2249
 
2250
- // eslint/pasika/rules/hook-extraction.ts
2250
+ // eslint/rules/hook-extraction.ts
2251
2251
  import path22 from "path";
2252
2252
  var hookExtractionRule = {
2253
2253
  meta: {
@@ -2284,7 +2284,7 @@ var hookExtractionRule = {
2284
2284
  }
2285
2285
  };
2286
2286
 
2287
- // eslint/pasika/rules/value-extraction.ts
2287
+ // eslint/rules/value-extraction.ts
2288
2288
  import path23 from "path";
2289
2289
  var valueExtractionRule = {
2290
2290
  meta: {
@@ -2316,7 +2316,7 @@ var valueExtractionRule = {
2316
2316
  }
2317
2317
  };
2318
2318
 
2319
- // eslint/pasika/rules/config-extraction.ts
2319
+ // eslint/rules/config-extraction.ts
2320
2320
  import path24 from "path";
2321
2321
  var configExtractionRule = {
2322
2322
  meta: {
@@ -2365,7 +2365,7 @@ var configExtractionRule = {
2365
2365
  }
2366
2366
  };
2367
2367
 
2368
- // eslint/pasika/rules/component-nesting.ts
2368
+ // eslint/rules/component-nesting.ts
2369
2369
  import path25 from "path";
2370
2370
  var componentNestingRule = {
2371
2371
  meta: {
@@ -2409,7 +2409,7 @@ var componentNestingRule = {
2409
2409
  }
2410
2410
  };
2411
2411
 
2412
- // eslint/pasika/rules/stay-flat.ts
2412
+ // eslint/rules/stay-flat.ts
2413
2413
  import path26 from "path";
2414
2414
  var stayFlatRule = {
2415
2415
  meta: {
@@ -2460,7 +2460,7 @@ var stayFlatRule = {
2460
2460
  }
2461
2461
  };
2462
2462
 
2463
- // eslint/pasika/rules/type-extraction.ts
2463
+ // eslint/rules/type-extraction.ts
2464
2464
  import path27 from "path";
2465
2465
  var typeExtractionRule = {
2466
2466
  meta: {
@@ -2517,7 +2517,7 @@ var typeExtractionRule = {
2517
2517
  }
2518
2518
  };
2519
2519
 
2520
- // eslint/pasika/rules/locale-placement.ts
2520
+ // eslint/rules/locale-placement.ts
2521
2521
  import path28 from "path";
2522
2522
  import { readFileSync as readFileSync2 } from "fs";
2523
2523
  import ts5 from "typescript";
@@ -2643,7 +2643,7 @@ var localePlacementRule = {
2643
2643
  }
2644
2644
  };
2645
2645
 
2646
- // eslint/pasika/rules/sole-state-owner.ts
2646
+ // eslint/rules/sole-state-owner.ts
2647
2647
  import path29 from "path";
2648
2648
  import ts6 from "typescript";
2649
2649
  function findStateHooks(node) {
@@ -2802,7 +2802,7 @@ function usesOutsideJsx(declaration, hook, children) {
2802
2802
  return outside;
2803
2803
  }
2804
2804
 
2805
- // eslint/pasika/rules/locale-key-shape.ts
2805
+ // eslint/rules/locale-key-shape.ts
2806
2806
  import path30 from "path";
2807
2807
  var MAX_KEY_LENGTH = 30;
2808
2808
  var ROLE_POSTFIXES = /* @__PURE__ */ new Set([
@@ -2914,7 +2914,7 @@ var localeKeyShapeRule = {
2914
2914
  }
2915
2915
  };
2916
2916
 
2917
- // eslint/pasika/rules/shared-style-dedup.ts
2917
+ // eslint/rules/shared-style-dedup.ts
2918
2918
  import path31 from "path";
2919
2919
  import { readFileSync as readFileSync3, statSync as statSync2 } from "fs";
2920
2920
  var CLASS_NAME = /className="(?<classes>[^"]+)"/g;
@@ -2979,7 +2979,7 @@ var sharedStyleDedupRule = {
2979
2979
  }
2980
2980
  };
2981
2981
 
2982
- // eslint/pasika/rules/repeated-structure.ts
2982
+ // eslint/rules/repeated-structure.ts
2983
2983
  function nodeKind(node) {
2984
2984
  return node.type;
2985
2985
  }
@@ -3087,7 +3087,7 @@ var repeatedStructureRule = {
3087
3087
  }
3088
3088
  };
3089
3089
 
3090
- // eslint/pasika/rules/zod-schema-validation.ts
3090
+ // eslint/rules/zod-schema-validation.ts
3091
3091
  var NON_SCHEMA_OBJECTS = /* @__PURE__ */ new Set(["JSON", "Date", "Number"]);
3092
3092
  var SCHEMA_METHODS = /* @__PURE__ */ new Set(["safeParse", "parse", "assert"]);
3093
3093
  function isRecord(value) {
@@ -3160,7 +3160,7 @@ var zodSchemaValidationRule = {
3160
3160
  }
3161
3161
  };
3162
3162
 
3163
- // eslint/pasika/rules/source-under-src.ts
3163
+ // eslint/rules/source-under-src.ts
3164
3164
  import path32 from "path";
3165
3165
  var NON_SOURCE_ROOT_DIRS = /* @__PURE__ */ new Set([
3166
3166
  ".agents",
@@ -3224,7 +3224,7 @@ var sourceUnderSrcRule = {
3224
3224
  }
3225
3225
  };
3226
3226
 
3227
- // eslint/pasika/rules/config-baseline.ts
3227
+ // eslint/rules/config-baseline.ts
3228
3228
  import fs4 from "fs";
3229
3229
  import path33 from "path";
3230
3230
  var configBaselineRule = {
@@ -3262,7 +3262,7 @@ var configBaselineRule = {
3262
3262
  }
3263
3263
  };
3264
3264
 
3265
- // eslint/pasika/rules/md/helpers.ts
3265
+ // eslint/rules/md/helpers.ts
3266
3266
  var RFC_PATTERN = /\b(?<keyword>MUST NOT|MUST|SHALL NOT|SHALL|SHOULD NOT|SHOULD|MAY|RECOMMENDED|NOT RECOMMENDED|OPTIONAL|REQUIRED)\b/;
3267
3267
  function containsRfcKeyword(text) {
3268
3268
  const match = RFC_PATTERN.exec(text);
@@ -3282,7 +3282,7 @@ function getLine(node) {
3282
3282
  return node.position?.start.line ?? 0;
3283
3283
  }
3284
3284
 
3285
- // eslint/pasika/rules/md/doc-kind-suffix.ts
3285
+ // eslint/rules/md/doc-kind-suffix.ts
3286
3286
  var docKindSuffixRule = {
3287
3287
  meta: {
3288
3288
  type: "problem",
@@ -3308,7 +3308,7 @@ var docKindSuffixRule = {
3308
3308
  }
3309
3309
  };
3310
3310
 
3311
- // eslint/pasika/rules/md/title-matches-file-name.ts
3311
+ // eslint/rules/md/title-matches-file-name.ts
3312
3312
  import path34 from "path";
3313
3313
  function toExpectedFileName(title) {
3314
3314
  return `${title.toLowerCase().replaceAll(/[^a-z0-9]+/g, "-").replace(/^-|-$/g, "")}.md`;
@@ -3346,7 +3346,7 @@ var titleMatchesFileNameRule = {
3346
3346
  }
3347
3347
  };
3348
3348
 
3349
- // eslint/pasika/rules/md/overview-present.ts
3349
+ // eslint/rules/md/overview-present.ts
3350
3350
  var overviewPresentRule = {
3351
3351
  meta: {
3352
3352
  type: "problem",
@@ -3386,7 +3386,7 @@ var overviewPresentRule = {
3386
3386
  }
3387
3387
  };
3388
3388
 
3389
- // eslint/pasika/rules/md/overview-length.ts
3389
+ // eslint/rules/md/overview-length.ts
3390
3390
  function countSentences(text) {
3391
3391
  return text.split(/[.!?](?:\s+|$)/).filter((part) => part.trim() !== "").length;
3392
3392
  }
@@ -3429,7 +3429,7 @@ var overviewLengthRule = {
3429
3429
  }
3430
3430
  };
3431
3431
 
3432
- // eslint/pasika/rules/md/guide-overview-no-links.ts
3432
+ // eslint/rules/md/guide-overview-no-links.ts
3433
3433
  function containsLink(node) {
3434
3434
  if (node.type === "link") return true;
3435
3435
  if ("children" in node) {
@@ -3475,7 +3475,7 @@ var guideOverviewNoLinksRule = {
3475
3475
  }
3476
3476
  };
3477
3477
 
3478
- // eslint/pasika/rules/md/guide-step-single-sentence.ts
3478
+ // eslint/rules/md/guide-step-single-sentence.ts
3479
3479
  function countSentences2(text) {
3480
3480
  return text.split(/[.!?](?:\s+|$)/).filter((part) => part.trim() !== "").length;
3481
3481
  }
@@ -3513,7 +3513,7 @@ var guideStepSingleSentenceRule = {
3513
3513
  }
3514
3514
  };
3515
3515
 
3516
- // eslint/pasika/rules/md/guide-step-single-link.ts
3516
+ // eslint/rules/md/guide-step-single-link.ts
3517
3517
  function countDocLinks(node) {
3518
3518
  if (node.type === "link" && node.url.endsWith(".md")) return 1;
3519
3519
  if ("children" in node) {
@@ -3556,7 +3556,7 @@ var guideStepSingleLinkRule = {
3556
3556
  }
3557
3557
  };
3558
3558
 
3559
- // eslint/pasika/rules/md/guide-states-no-requirement.ts
3559
+ // eslint/rules/md/guide-states-no-requirement.ts
3560
3560
  var guideStatesNoRequirementRule = {
3561
3561
  meta: {
3562
3562
  type: "problem",
@@ -3582,7 +3582,7 @@ var guideStatesNoRequirementRule = {
3582
3582
  }
3583
3583
  };
3584
3584
 
3585
- // eslint/pasika/rules/md/requirement-present.ts
3585
+ // eslint/rules/md/requirement-present.ts
3586
3586
  function hasRequirement(node) {
3587
3587
  if (node.type === "listItem") {
3588
3588
  if (containsRfcKeyword(getTextContent(node))) return true;
@@ -3621,7 +3621,7 @@ var requirementPresentRule = {
3621
3621
  }
3622
3622
  };
3623
3623
 
3624
- // eslint/pasika/rules/md/rule-paired-examples.ts
3624
+ // eslint/rules/md/rule-paired-examples.ts
3625
3625
  var rulePairedExamplesRule = {
3626
3626
  meta: {
3627
3627
  type: "problem",
@@ -3657,7 +3657,7 @@ var rulePairedExamplesRule = {
3657
3657
  }
3658
3658
  };
3659
3659
 
3660
- // eslint/pasika/rules/md/example-heading-description.ts
3660
+ // eslint/rules/md/example-heading-description.ts
3661
3661
  var exampleHeadingDescriptionRule = {
3662
3662
  meta: {
3663
3663
  type: "problem",
@@ -3685,7 +3685,7 @@ var exampleHeadingDescriptionRule = {
3685
3685
  }
3686
3686
  };
3687
3687
 
3688
- // eslint/pasika/rules/md/policy-no-examples.ts
3688
+ // eslint/rules/md/policy-no-examples.ts
3689
3689
  var policyNoExamplesRule = {
3690
3690
  meta: {
3691
3691
  type: "problem",
@@ -3712,7 +3712,7 @@ var policyNoExamplesRule = {
3712
3712
  }
3713
3713
  };
3714
3714
 
3715
- // eslint/pasika/rules/md/no-cross-document-link.ts
3715
+ // eslint/rules/md/no-cross-document-link.ts
3716
3716
  function linkedKind(filename) {
3717
3717
  if (filename.endsWith("-rule.md")) return "rule";
3718
3718
  if (filename.endsWith("-reference.md")) return "reference";
@@ -3744,7 +3744,7 @@ var noCrossDocumentLinkRule = {
3744
3744
  }
3745
3745
  };
3746
3746
 
3747
- // eslint/pasika/rules/md/reference-no-rfc-vocabulary.ts
3747
+ // eslint/rules/md/reference-no-rfc-vocabulary.ts
3748
3748
  var referenceNoRfcVocabularyRule = {
3749
3749
  meta: {
3750
3750
  type: "problem",
@@ -3770,7 +3770,7 @@ var referenceNoRfcVocabularyRule = {
3770
3770
  }
3771
3771
  };
3772
3772
 
3773
- // eslint/pasika/rules/md/reference-block-headings.ts
3773
+ // eslint/rules/md/reference-block-headings.ts
3774
3774
  var referenceBlockHeadingsRule = {
3775
3775
  meta: {
3776
3776
  type: "problem",
@@ -3801,7 +3801,7 @@ var referenceBlockHeadingsRule = {
3801
3801
  }
3802
3802
  };
3803
3803
 
3804
- // eslint/pasika/rules/md/support-document-placement.ts
3804
+ // eslint/rules/md/support-document-placement.ts
3805
3805
  import path35 from "path";
3806
3806
  var supportDocumentPlacementRule = {
3807
3807
  meta: {
@@ -3834,7 +3834,7 @@ var supportDocumentPlacementRule = {
3834
3834
  }
3835
3835
  };
3836
3836
 
3837
- // eslint/pasika/rules/md/no-template-prompt.ts
3837
+ // eslint/rules/md/no-template-prompt.ts
3838
3838
  var TEMPLATE_PROMPT = /^\s*\[[A-Z0-9].*\]\s*$/;
3839
3839
  var noTemplatePromptRule = {
3840
3840
  meta: {
@@ -3858,10 +3858,10 @@ var noTemplatePromptRule = {
3858
3858
  }
3859
3859
  };
3860
3860
 
3861
- // eslint/pasika/rules/md/guide-folder-entry-point.ts
3861
+ // eslint/rules/md/guide-folder-entry-point.ts
3862
3862
  import path37 from "path";
3863
3863
 
3864
- // eslint/pasika/rules/md/project-index.ts
3864
+ // eslint/rules/md/project-index.ts
3865
3865
  import { readdirSync as readdirSync2, readFileSync as readFileSync4, statSync as statSync3 } from "fs";
3866
3866
  import path36 from "path";
3867
3867
  var KIND_BY_SUFFIX = [
@@ -3915,7 +3915,7 @@ function findDocsRoot(filePath) {
3915
3915
  }
3916
3916
  }
3917
3917
 
3918
- // eslint/pasika/rules/md/guide-folder-entry-point.ts
3918
+ // eslint/rules/md/guide-folder-entry-point.ts
3919
3919
  var guideFolderEntryPointRule = {
3920
3920
  meta: {
3921
3921
  type: "problem",
@@ -3953,7 +3953,7 @@ var guideFolderEntryPointRule = {
3953
3953
  }
3954
3954
  };
3955
3955
 
3956
- // eslint/pasika/rules/md/rfc-only-in-bullets.ts
3956
+ // eslint/rules/md/rfc-only-in-bullets.ts
3957
3957
  function checkOutsideBullets(node, context, insideBullet) {
3958
3958
  if (node.type === "listItem") {
3959
3959
  for (const child of node.children) {
@@ -3996,7 +3996,7 @@ var rfcOnlyInBulletsRule = {
3996
3996
  }
3997
3997
  };
3998
3998
 
3999
- // eslint/pasika/rules/md/rfc-keyword-in-every-bullet.ts
3999
+ // eslint/rules/md/rfc-keyword-in-every-bullet.ts
4000
4000
  function checkBullets(node, context) {
4001
4001
  if (node.type === "listItem" && !containsRfcKeyword(getTextContent(node))) {
4002
4002
  context.report({
@@ -4029,7 +4029,7 @@ var rfcKeywordInEveryBulletRule = {
4029
4029
  }
4030
4030
  };
4031
4031
 
4032
- // eslint/pasika/rules/md/policy-subject-headings.ts
4032
+ // eslint/rules/md/policy-subject-headings.ts
4033
4033
  var policySubjectHeadingsRule = {
4034
4034
  meta: {
4035
4035
  type: "problem",
@@ -4082,7 +4082,7 @@ var policySubjectHeadingsRule = {
4082
4082
  }
4083
4083
  };
4084
4084
 
4085
- // eslint/pasika/rules/md/guide-link-anchors.ts
4085
+ // eslint/rules/md/guide-link-anchors.ts
4086
4086
  function visitSteps2(node, check) {
4087
4087
  if (node.type === "list" && node.ordered) {
4088
4088
  for (const child of node.children) check(child);
@@ -4126,7 +4126,7 @@ var guideLinkAnchorsRule = {
4126
4126
  }
4127
4127
  };
4128
4128
 
4129
- // eslint/pasika/rules/md/no-nested-how-to.ts
4129
+ // eslint/rules/md/no-nested-how-to.ts
4130
4130
  var noNestedHowToRule = {
4131
4131
  meta: {
4132
4132
  type: "problem",
@@ -4162,7 +4162,7 @@ var noNestedHowToRule = {
4162
4162
  }
4163
4163
  };
4164
4164
 
4165
- // eslint/pasika/rules/md/glossary-term-linking.ts
4165
+ // eslint/rules/md/glossary-term-linking.ts
4166
4166
  import { readFileSync as readFileSync5 } from "fs";
4167
4167
  import path38 from "path";
4168
4168
  function extractGlossaryTerms(filePath) {
@@ -4243,7 +4243,7 @@ var glossaryTermLinkingRule = {
4243
4243
  }
4244
4244
  };
4245
4245
 
4246
- // eslint/pasika/rules/md/index.ts
4246
+ // eslint/rules/md/index.ts
4247
4247
  var mdRules = {
4248
4248
  "doc-kind-suffix": docKindSuffixRule,
4249
4249
  "title-matches-file-name": titleMatchesFileNameRule,
@@ -4271,7 +4271,7 @@ var mdRules = {
4271
4271
  "glossary-term-linking": glossaryTermLinkingRule
4272
4272
  };
4273
4273
 
4274
- // eslint/pasika/rules/css/helpers.ts
4274
+ // eslint/rules/css/helpers.ts
4275
4275
  function walkNodes(node, visit) {
4276
4276
  visit(node);
4277
4277
  if ("children" in node && node.children) {
@@ -4328,7 +4328,7 @@ function selectorNames(node) {
4328
4328
  return names;
4329
4329
  }
4330
4330
 
4331
- // eslint/pasika/rules/css/theme-reset.ts
4331
+ // eslint/rules/css/theme-reset.ts
4332
4332
  var themeResetRule = {
4333
4333
  meta: {
4334
4334
  schema: [],
@@ -4358,7 +4358,7 @@ var themeResetRule = {
4358
4358
  }
4359
4359
  };
4360
4360
 
4361
- // eslint/pasika/rules/css/root-variables.ts
4361
+ // eslint/rules/css/root-variables.ts
4362
4362
  var rootVariablesRule = {
4363
4363
  meta: {
4364
4364
  schema: [],
@@ -4401,7 +4401,7 @@ var rootVariablesRule = {
4401
4401
  }
4402
4402
  };
4403
4403
 
4404
- // eslint/pasika/rules/css/apply-usage.ts
4404
+ // eslint/rules/css/apply-usage.ts
4405
4405
  var applyUsageRule = {
4406
4406
  meta: {
4407
4407
  schema: [],
@@ -4431,7 +4431,7 @@ var applyUsageRule = {
4431
4431
  }
4432
4432
  };
4433
4433
 
4434
- // eslint/pasika/rules/css/base-layer-pair.ts
4434
+ // eslint/rules/css/base-layer-pair.ts
4435
4435
  var baseLayerPairRule = {
4436
4436
  meta: {
4437
4437
  schema: [],
@@ -4469,7 +4469,7 @@ var baseLayerPairRule = {
4469
4469
  }
4470
4470
  };
4471
4471
 
4472
- // eslint/pasika/rules/css/stylesheet-ordering.ts
4472
+ // eslint/rules/css/stylesheet-ordering.ts
4473
4473
  var SECTION_ORDER = ["imports", "custom-variant", "root", "theme", "utility", "base styles", "keyframes"];
4474
4474
  var stylesheetOrderingRule = {
4475
4475
  meta: {
@@ -4526,7 +4526,7 @@ var stylesheetOrderingRule = {
4526
4526
  }
4527
4527
  };
4528
4528
 
4529
- // eslint/pasika/rules/css/css-variable-naming.ts
4529
+ // eslint/rules/css/css-variable-naming.ts
4530
4530
  var cssVariableNamingRule = {
4531
4531
  meta: {
4532
4532
  schema: [],
@@ -4558,7 +4558,7 @@ var cssVariableNamingRule = {
4558
4558
  }
4559
4559
  };
4560
4560
 
4561
- // eslint/pasika/rules/css/custom-utility-apply.ts
4561
+ // eslint/rules/css/custom-utility-apply.ts
4562
4562
  function rawProperty(raw) {
4563
4563
  const match = /^\s*(?<property>[a-z][a-z-]*)\s*:/.exec(raw);
4564
4564
  return match?.groups?.property;
@@ -4600,7 +4600,7 @@ var customUtilityApplyRule = {
4600
4600
  }
4601
4601
  };
4602
4602
 
4603
- // eslint/pasika/rules/css/surface-utility.ts
4603
+ // eslint/rules/css/surface-utility.ts
4604
4604
  var surfaceUtilityRule = {
4605
4605
  meta: {
4606
4606
  schema: [],
@@ -4633,7 +4633,7 @@ var surfaceUtilityRule = {
4633
4633
  }
4634
4634
  };
4635
4635
 
4636
- // eslint/pasika/rules/css/theme-variable-namespace.ts
4636
+ // eslint/rules/css/theme-variable-namespace.ts
4637
4637
  var themeVariableNamespaceRule = {
4638
4638
  meta: {
4639
4639
  schema: [],
@@ -4672,7 +4672,7 @@ var themeVariableNamespaceRule = {
4672
4672
  }
4673
4673
  };
4674
4674
 
4675
- // eslint/pasika/rules/css/global-css-location.ts
4675
+ // eslint/rules/css/global-css-location.ts
4676
4676
  var globalCssLocationRule = {
4677
4677
  meta: {
4678
4678
  schema: [],
@@ -4703,7 +4703,7 @@ var globalCssLocationRule = {
4703
4703
  }
4704
4704
  };
4705
4705
 
4706
- // eslint/pasika/rules/css/global-stylesheet.ts
4706
+ // eslint/rules/css/global-stylesheet.ts
4707
4707
  var globalStylesheetRule = {
4708
4708
  meta: {
4709
4709
  schema: [],
@@ -4736,7 +4736,7 @@ var globalStylesheetRule = {
4736
4736
  }
4737
4737
  };
4738
4738
 
4739
- // eslint/pasika/rules/css/index.ts
4739
+ // eslint/rules/css/index.ts
4740
4740
  var cssRules = {
4741
4741
  "theme-reset": themeResetRule,
4742
4742
  "root-variables": rootVariablesRule,
@@ -4751,7 +4751,7 @@ var cssRules = {
4751
4751
  "global-stylesheet": globalStylesheetRule
4752
4752
  };
4753
4753
 
4754
- // eslint/pasika/rules/json/no-vulyk-dependency.ts
4754
+ // eslint/rules/json/no-vulyk-dependency.ts
4755
4755
  function memberName(member) {
4756
4756
  return member.name.type === "String" ? member.name.value : member.name.name;
4757
4757
  }
@@ -4784,7 +4784,7 @@ var noVulykDependencyRule = {
4784
4784
  }
4785
4785
  };
4786
4786
 
4787
- // eslint/pasika/rules/json/zirka-installed.ts
4787
+ // eslint/rules/json/zirka-installed.ts
4788
4788
  function memberName2(member) {
4789
4789
  return member.name.type === "String" ? member.name.value : member.name.name;
4790
4790
  }
@@ -4820,13 +4820,13 @@ var zirkaInstalledRule = {
4820
4820
  }
4821
4821
  };
4822
4822
 
4823
- // eslint/pasika/rules/json/index.ts
4823
+ // eslint/rules/json/index.ts
4824
4824
  var jsonRules = {
4825
4825
  "no-vulyk-dependency": noVulykDependencyRule,
4826
4826
  "zirka-installed": zirkaInstalledRule
4827
4827
  };
4828
4828
 
4829
- // eslint/pasika/index.ts
4829
+ // eslint/index.ts
4830
4830
  var pasikaRules = {
4831
4831
  "component-placement": componentPlacementRule,
4832
4832
  "support-file-placement": supportFilePlacementRule,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pasika",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "description": "Reusable agent setup package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -12,8 +12,7 @@
12
12
  "./eslint": {
13
13
  "types": "./dist/eslint/pasika/index.d.ts",
14
14
  "import": "./dist/eslint/pasika/index.js"
15
- },
16
- "./package.json": "./package.json"
15
+ }
17
16
  },
18
17
  "files": [
19
18
  "dist"