@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.
- package/dist/{chunk-FTIRRRQY.js → chunk-BK7TC7DN.js} +17 -7
- package/dist/{chunk-FTIRRRQY.js.map → chunk-BK7TC7DN.js.map} +1 -1
- package/dist/eslint-plugin.cjs +12 -6
- package/dist/eslint-plugin.cjs.map +1 -1
- package/dist/eslint-plugin.js +1 -1
- package/dist/index.cjs +16 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/eslint-plugin.cjs
CHANGED
|
@@ -28997,11 +28997,12 @@ var POLICIES = {
|
|
|
28997
28997
|
"dense-ui": DENSE_UI,
|
|
28998
28998
|
"large-text": LARGE_TEXT
|
|
28999
28999
|
};
|
|
29000
|
-
var activePolicyName =
|
|
29000
|
+
var activePolicyName = null;
|
|
29001
29001
|
function getActivePolicyName() {
|
|
29002
29002
|
return activePolicyName;
|
|
29003
29003
|
}
|
|
29004
29004
|
function getActivePolicy() {
|
|
29005
|
+
if (activePolicyName === null) return null;
|
|
29005
29006
|
return POLICIES[activePolicyName];
|
|
29006
29007
|
}
|
|
29007
29008
|
|
|
@@ -29320,7 +29321,8 @@ var cssPolicyContrast = defineCSSRule({
|
|
|
29320
29321
|
options: {},
|
|
29321
29322
|
check(graph, emit) {
|
|
29322
29323
|
const policy = getActivePolicy();
|
|
29323
|
-
|
|
29324
|
+
if (policy === null) return;
|
|
29325
|
+
const name = getActivePolicyName() ?? "";
|
|
29324
29326
|
const colorDecls = graph.declarationsByProperty.get("color");
|
|
29325
29327
|
if (!colorDecls) return;
|
|
29326
29328
|
const candidates = /* @__PURE__ */ new Set();
|
|
@@ -29397,7 +29399,8 @@ var cssPolicySpacing = defineCSSRule({
|
|
|
29397
29399
|
options: {},
|
|
29398
29400
|
check(graph, emit) {
|
|
29399
29401
|
const policy = getActivePolicy();
|
|
29400
|
-
|
|
29402
|
+
if (policy === null) return;
|
|
29403
|
+
const name = getActivePolicyName() ?? "";
|
|
29401
29404
|
const letterDecls = graph.declarationsByProperty.get("letter-spacing");
|
|
29402
29405
|
if (letterDecls) {
|
|
29403
29406
|
for (let i = 0; i < letterDecls.length; i++) {
|
|
@@ -29506,7 +29509,8 @@ var cssPolicyTouchTarget = defineCSSRule({
|
|
|
29506
29509
|
options: {},
|
|
29507
29510
|
check(graph, emit) {
|
|
29508
29511
|
const policy = getActivePolicy();
|
|
29509
|
-
|
|
29512
|
+
if (policy === null) return;
|
|
29513
|
+
const name = getActivePolicyName() ?? "";
|
|
29510
29514
|
const decls = graph.declarationsForProperties(
|
|
29511
29515
|
"height",
|
|
29512
29516
|
"min-height",
|
|
@@ -29665,7 +29669,8 @@ var cssPolicyTypography = defineCSSRule({
|
|
|
29665
29669
|
options: {},
|
|
29666
29670
|
check(graph, emit) {
|
|
29667
29671
|
const policy = getActivePolicy();
|
|
29668
|
-
|
|
29672
|
+
if (policy === null) return;
|
|
29673
|
+
const name = getActivePolicyName() ?? "";
|
|
29669
29674
|
const fontDecls = graph.declarationsByProperty.get("font-size");
|
|
29670
29675
|
if (fontDecls) {
|
|
29671
29676
|
for (let i = 0; i < fontDecls.length; i++) {
|
|
@@ -39343,7 +39348,8 @@ var jsxStylePolicy = defineCrossRule({
|
|
|
39343
39348
|
check(context, emit) {
|
|
39344
39349
|
const { solids } = context;
|
|
39345
39350
|
const policy = getActivePolicy();
|
|
39346
|
-
|
|
39351
|
+
if (policy === null) return;
|
|
39352
|
+
const name = getActivePolicyName() ?? "";
|
|
39347
39353
|
forEachStylePropertyAcross(solids, (solid, p) => {
|
|
39348
39354
|
if (!import_typescript135.default.isPropertyAssignment(p)) return;
|
|
39349
39355
|
const key = objectKeyName(p.name);
|