@pandacss/eslint-plugin 0.0.8 → 0.0.9

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.
@@ -27,9 +27,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
27
27
  mod
28
28
  ));
29
29
 
30
- // ../node_modules/.pnpm/tsup@8.0.1_postcss@8.4.33_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
30
+ // ../node_modules/.pnpm/tsup@8.0.1_postcss@8.4.34_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js
31
31
  var init_esm_shims = __esm({
32
- "../node_modules/.pnpm/tsup@8.0.1_postcss@8.4.33_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js"() {
32
+ "../node_modules/.pnpm/tsup@8.0.1_postcss@8.4.34_typescript@5.3.3/node_modules/tsup/assets/esm_shims.js"() {
33
33
  "use strict";
34
34
  }
35
35
  });
package/dist/index.js CHANGED
@@ -28,10 +28,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
28
28
  mod
29
29
  ));
30
30
 
31
- // ../node_modules/.pnpm/tsup@8.0.1_postcss@8.4.33_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js
31
+ // ../node_modules/.pnpm/tsup@8.0.1_postcss@8.4.34_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js
32
32
  var getImportMetaUrl, importMetaUrl;
33
33
  var init_cjs_shims = __esm({
34
- "../node_modules/.pnpm/tsup@8.0.1_postcss@8.4.33_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js"() {
34
+ "../node_modules/.pnpm/tsup@8.0.1_postcss@8.4.34_typescript@5.3.3/node_modules/tsup/assets/cjs_shims.js"() {
35
35
  "use strict";
36
36
  getImportMetaUrl = () => typeof document === "undefined" ? new URL("file:" + __filename).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
37
37
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
@@ -7957,7 +7957,7 @@ init_cjs_shims();
7957
7957
 
7958
7958
  // package.json
7959
7959
  var name = "@pandacss/eslint-plugin";
7960
- var version = "0.0.8";
7960
+ var version = "0.0.9";
7961
7961
 
7962
7962
  // src/configs/all.ts
7963
7963
  init_cjs_shims();
@@ -8192,7 +8192,7 @@ var getInvalidTokens = (value, context) => {
8192
8192
  const tokens = extractTokens(value);
8193
8193
  if (!tokens.length)
8194
8194
  return [];
8195
- return syncAction("filterInvalidTokenz", getSyncOpts(context), tokens);
8195
+ return syncAction("filterInvalidTokens", getSyncOpts(context), tokens);
8196
8196
  };
8197
8197
  var getTokenImport = (context) => {
8198
8198
  const imports = _getImports(context);
@@ -8753,7 +8753,7 @@ var rule8 = createRule({
8753
8753
  });
8754
8754
  var no_property_renaming_default = rule8;
8755
8755
 
8756
- // src/rules/no-shorthand-prop.ts
8756
+ // src/rules/prefer-longhand-properties.ts
8757
8757
  init_cjs_shims();
8758
8758
  var RULE_NAME9 = "no-shorthand-prop";
8759
8759
  var rule9 = createRule({
@@ -8817,7 +8817,7 @@ var rule9 = createRule({
8817
8817
  };
8818
8818
  }
8819
8819
  });
8820
- var no_shorthand_prop_default = rule9;
8820
+ var prefer_longhand_properties_default = rule9;
8821
8821
 
8822
8822
  // src/rules/no-unsafe-token-fn-usage.ts
8823
8823
  init_cjs_shims();
@@ -8925,9 +8925,9 @@ var no_unsafe_token_fn_usage_default = rule10;
8925
8925
  // src/rules/prefer-atomic-properties.ts
8926
8926
  init_cjs_shims();
8927
8927
 
8928
- // src/utils/shorthand-properties.ts
8928
+ // src/utils/composite-properties.ts
8929
8929
  init_cjs_shims();
8930
- var shorthandProperties = {
8930
+ var compositeProperties = {
8931
8931
  animation: [
8932
8932
  "animationName",
8933
8933
  "animationDuration",
@@ -9056,15 +9056,15 @@ var rule11 = createRule({
9056
9056
  defaultOptions: [],
9057
9057
  create(context) {
9058
9058
  const resolveCompositeProperty = (name2) => {
9059
- if (Object.hasOwn(shorthandProperties, name2))
9059
+ if (Object.hasOwn(compositeProperties, name2))
9060
9060
  return name2;
9061
9061
  const longhand = resolveShorthand(name2, context);
9062
- if (isValidProperty(longhand, context) && Object.hasOwn(shorthandProperties, longhand))
9062
+ if (isValidProperty(longhand, context) && Object.hasOwn(compositeProperties, longhand))
9063
9063
  return longhand;
9064
9064
  };
9065
9065
  const sendReport = (node, name2) => {
9066
9066
  const cpd = resolveCompositeProperty(name2);
9067
- const atomics = shorthandProperties[cpd].map((name3) => `\`${name3}\``).join(",\n");
9067
+ const atomics = compositeProperties[cpd].map((name3) => `\`${name3}\``).join(",\n");
9068
9068
  return context.report({
9069
9069
  node,
9070
9070
  messageId: "atomic",
@@ -9110,7 +9110,7 @@ var rules = {
9110
9110
  [RULE_NAME6]: no_hardcoded_color_default,
9111
9111
  [RULE_NAME7]: no_invalid_token_paths_default,
9112
9112
  [RULE_NAME8]: no_property_renaming_default,
9113
- [RULE_NAME9]: no_shorthand_prop_default,
9113
+ [RULE_NAME9]: prefer_longhand_properties_default,
9114
9114
  [RULE_NAME10]: no_unsafe_token_fn_usage_default,
9115
9115
  [RULE_NAME11]: prefer_atomic_properties_default
9116
9116
  };
package/dist/index.mjs CHANGED
@@ -3,14 +3,14 @@ import {
3
3
  __esm,
4
4
  __toESM,
5
5
  init_esm_shims
6
- } from "./chunk-6BVJTDXV.mjs";
6
+ } from "./chunk-HALLAYDZ.mjs";
7
7
 
8
8
  // package.json
9
9
  var name, version;
10
10
  var init_package = __esm({
11
11
  "package.json"() {
12
12
  name = "@pandacss/eslint-plugin";
13
- version = "0.0.8";
13
+ version = "0.0.9";
14
14
  }
15
15
  });
16
16
 
@@ -8168,7 +8168,7 @@ var init_helpers = __esm({
8168
8168
  const tokens = extractTokens(value);
8169
8169
  if (!tokens.length)
8170
8170
  return [];
8171
- return syncAction("filterInvalidTokenz", getSyncOpts(context), tokens);
8171
+ return syncAction("filterInvalidTokens", getSyncOpts(context), tokens);
8172
8172
  };
8173
8173
  getTokenImport = (context) => {
8174
8174
  const imports = _getImports(context);
@@ -8803,10 +8803,10 @@ var init_no_property_renaming = __esm({
8803
8803
  }
8804
8804
  });
8805
8805
 
8806
- // src/rules/no-shorthand-prop.ts
8807
- var RULE_NAME9, rule9, no_shorthand_prop_default;
8808
- var init_no_shorthand_prop = __esm({
8809
- "src/rules/no-shorthand-prop.ts"() {
8806
+ // src/rules/prefer-longhand-properties.ts
8807
+ var RULE_NAME9, rule9, prefer_longhand_properties_default;
8808
+ var init_prefer_longhand_properties = __esm({
8809
+ "src/rules/prefer-longhand-properties.ts"() {
8810
8810
  "use strict";
8811
8811
  init_esm_shims();
8812
8812
  init_helpers();
@@ -8874,7 +8874,7 @@ var init_no_shorthand_prop = __esm({
8874
8874
  };
8875
8875
  }
8876
8876
  });
8877
- no_shorthand_prop_default = rule9;
8877
+ prefer_longhand_properties_default = rule9;
8878
8878
  }
8879
8879
  });
8880
8880
 
@@ -8990,13 +8990,13 @@ var init_no_unsafe_token_fn_usage = __esm({
8990
8990
  }
8991
8991
  });
8992
8992
 
8993
- // src/utils/shorthand-properties.ts
8994
- var shorthandProperties;
8995
- var init_shorthand_properties = __esm({
8996
- "src/utils/shorthand-properties.ts"() {
8993
+ // src/utils/composite-properties.ts
8994
+ var compositeProperties;
8995
+ var init_composite_properties = __esm({
8996
+ "src/utils/composite-properties.ts"() {
8997
8997
  "use strict";
8998
8998
  init_esm_shims();
8999
- shorthandProperties = {
8999
+ compositeProperties = {
9000
9000
  animation: [
9001
9001
  "animationName",
9002
9002
  "animationDuration",
@@ -9118,7 +9118,7 @@ var init_prefer_atomic_properties = __esm({
9118
9118
  init_esm_shims();
9119
9119
  init_helpers();
9120
9120
  init_utils();
9121
- init_shorthand_properties();
9121
+ init_composite_properties();
9122
9122
  init_nodes();
9123
9123
  RULE_NAME11 = "prefer-atomic-properties";
9124
9124
  rule11 = createRule({
@@ -9136,15 +9136,15 @@ var init_prefer_atomic_properties = __esm({
9136
9136
  defaultOptions: [],
9137
9137
  create(context) {
9138
9138
  const resolveCompositeProperty = (name2) => {
9139
- if (Object.hasOwn(shorthandProperties, name2))
9139
+ if (Object.hasOwn(compositeProperties, name2))
9140
9140
  return name2;
9141
9141
  const longhand = resolveShorthand(name2, context);
9142
- if (isValidProperty(longhand, context) && Object.hasOwn(shorthandProperties, longhand))
9142
+ if (isValidProperty(longhand, context) && Object.hasOwn(compositeProperties, longhand))
9143
9143
  return longhand;
9144
9144
  };
9145
9145
  const sendReport = (node, name2) => {
9146
9146
  const cpd = resolveCompositeProperty(name2);
9147
- const atomics = shorthandProperties[cpd].map((name3) => `\`${name3}\``).join(",\n");
9147
+ const atomics = compositeProperties[cpd].map((name3) => `\`${name3}\``).join(",\n");
9148
9148
  return context.report({
9149
9149
  node,
9150
9150
  messageId: "atomic",
@@ -9196,7 +9196,7 @@ var init_rules = __esm({
9196
9196
  init_no_hardcoded_color();
9197
9197
  init_no_invalid_token_paths();
9198
9198
  init_no_property_renaming();
9199
- init_no_shorthand_prop();
9199
+ init_prefer_longhand_properties();
9200
9200
  init_no_unsafe_token_fn_usage();
9201
9201
  init_prefer_atomic_properties();
9202
9202
  rules = {
@@ -9208,7 +9208,7 @@ var init_rules = __esm({
9208
9208
  [RULE_NAME6]: no_hardcoded_color_default,
9209
9209
  [RULE_NAME7]: no_invalid_token_paths_default,
9210
9210
  [RULE_NAME8]: no_property_renaming_default,
9211
- [RULE_NAME9]: no_shorthand_prop_default,
9211
+ [RULE_NAME9]: prefer_longhand_properties_default,
9212
9212
  [RULE_NAME10]: no_unsafe_token_fn_usage_default,
9213
9213
  [RULE_NAME11]: prefer_atomic_properties_default
9214
9214
  };