@drskillissue/ganko 0.2.6 → 0.2.61

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.
@@ -14,7 +14,7 @@ import {
14
14
  rules3,
15
15
  runCrossFileRules,
16
16
  runPhases
17
- } from "./chunk-FTIRRRQY.js";
17
+ } from "./chunk-BK7TC7DN.js";
18
18
  import "./chunk-EGRHWZRV.js";
19
19
 
20
20
  // src/eslint-adapter.ts
package/dist/index.cjs CHANGED
@@ -29284,8 +29284,12 @@ var POLICIES = {
29284
29284
  "dense-ui": DENSE_UI,
29285
29285
  "large-text": LARGE_TEXT
29286
29286
  };
29287
- var activePolicyName = "wcag-aa";
29287
+ var activePolicyName = null;
29288
29288
  function setActivePolicy(name) {
29289
+ if (name === null) {
29290
+ activePolicyName = null;
29291
+ return;
29292
+ }
29289
29293
  const match = ACCESSIBILITY_POLICIES.find((n) => n === name);
29290
29294
  if (match) {
29291
29295
  activePolicyName = match;
@@ -29295,6 +29299,7 @@ function getActivePolicyName() {
29295
29299
  return activePolicyName;
29296
29300
  }
29297
29301
  function getActivePolicy() {
29302
+ if (activePolicyName === null) return null;
29298
29303
  return POLICIES[activePolicyName];
29299
29304
  }
29300
29305
 
@@ -29613,7 +29618,8 @@ var cssPolicyContrast = defineCSSRule({
29613
29618
  options: {},
29614
29619
  check(graph, emit) {
29615
29620
  const policy = getActivePolicy();
29616
- const name = getActivePolicyName();
29621
+ if (policy === null) return;
29622
+ const name = getActivePolicyName() ?? "";
29617
29623
  const colorDecls = graph.declarationsByProperty.get("color");
29618
29624
  if (!colorDecls) return;
29619
29625
  const candidates = /* @__PURE__ */ new Set();
@@ -29690,7 +29696,8 @@ var cssPolicySpacing = defineCSSRule({
29690
29696
  options: {},
29691
29697
  check(graph, emit) {
29692
29698
  const policy = getActivePolicy();
29693
- const name = getActivePolicyName();
29699
+ if (policy === null) return;
29700
+ const name = getActivePolicyName() ?? "";
29694
29701
  const letterDecls = graph.declarationsByProperty.get("letter-spacing");
29695
29702
  if (letterDecls) {
29696
29703
  for (let i = 0; i < letterDecls.length; i++) {
@@ -29799,7 +29806,8 @@ var cssPolicyTouchTarget = defineCSSRule({
29799
29806
  options: {},
29800
29807
  check(graph, emit) {
29801
29808
  const policy = getActivePolicy();
29802
- const name = getActivePolicyName();
29809
+ if (policy === null) return;
29810
+ const name = getActivePolicyName() ?? "";
29803
29811
  const decls = graph.declarationsForProperties(
29804
29812
  "height",
29805
29813
  "min-height",
@@ -29958,7 +29966,8 @@ var cssPolicyTypography = defineCSSRule({
29958
29966
  options: {},
29959
29967
  check(graph, emit) {
29960
29968
  const policy = getActivePolicy();
29961
- const name = getActivePolicyName();
29969
+ if (policy === null) return;
29970
+ const name = getActivePolicyName() ?? "";
29962
29971
  const fontDecls = graph.declarationsByProperty.get("font-size");
29963
29972
  if (fontDecls) {
29964
29973
  for (let i = 0; i < fontDecls.length; i++) {
@@ -39955,7 +39964,8 @@ var jsxStylePolicy = defineCrossRule({
39955
39964
  check(context, emit) {
39956
39965
  const { solids } = context;
39957
39966
  const policy = getActivePolicy();
39958
- const name = getActivePolicyName();
39967
+ if (policy === null) return;
39968
+ const name = getActivePolicyName() ?? "";
39959
39969
  forEachStylePropertyAcross(solids, (solid, p) => {
39960
39970
  if (!import_typescript135.default.isPropertyAssignment(p)) return;
39961
39971
  const key = objectKeyName(p.name);