miaoda-expo-devkit 0.1.1-beta.57 → 0.1.1-beta.58

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.
@@ -85,7 +85,6 @@ var KNOWN_CONFIG_PLUGIN_PACKAGES = /* @__PURE__ */ new Set([
85
85
  "expo-sharing",
86
86
  "expo-splash-screen",
87
87
  "expo-sqlite",
88
- "expo-status-bar",
89
88
  "expo-system-ui",
90
89
  "expo-task-manager",
91
90
  "expo-tracking-transparency",
@@ -83,7 +83,6 @@ var KNOWN_CONFIG_PLUGIN_PACKAGES = /* @__PURE__ */ new Set([
83
83
  "expo-sharing",
84
84
  "expo-splash-screen",
85
85
  "expo-sqlite",
86
- "expo-status-bar",
87
86
  "expo-system-ui",
88
87
  "expo-task-manager",
89
88
  "expo-tracking-transparency",
@@ -119,6 +118,7 @@ var PACKAGES_WITHOUT_CONFIG_PLUGIN = /* @__PURE__ */ new Set([
119
118
  "expo-print",
120
119
  "expo-screen-capture",
121
120
  "expo-sms",
121
+ "expo-status-bar",
122
122
  "expo-speech",
123
123
  "expo-store-review",
124
124
  "expo-symbols",
@@ -127,6 +127,7 @@ var PACKAGES_WITHOUT_CONFIG_PLUGIN = /* @__PURE__ */ new Set([
127
127
  ]);
128
128
  var pluginsCache = /* @__PURE__ */ new Map();
129
129
  var depsCache = /* @__PURE__ */ new Map();
130
+ var reportedRoots = /* @__PURE__ */ new Set();
130
131
  function getPluginsFromAppJson(projectRoot) {
131
132
  if (pluginsCache.has(projectRoot)) return pluginsCache.get(projectRoot);
132
133
  const appJsonPath = import_node_path2.default.join(projectRoot, "app.json");
@@ -174,10 +175,12 @@ var noUnusedExpoPluginRule = {
174
175
  create(context) {
175
176
  const projectRoot = findProjectRoot(context.filename);
176
177
  if (!projectRoot) return {};
178
+ if (reportedRoots.has(projectRoot)) return {};
177
179
  const declaredPlugins = getPluginsFromAppJson(projectRoot);
178
180
  const installedDeps = getInstalledDeps(projectRoot);
179
181
  return {
180
182
  Program(node) {
183
+ reportedRoots.add(projectRoot);
181
184
  for (const pkg of declaredPlugins) {
182
185
  if (PACKAGES_WITHOUT_CONFIG_PLUGIN.has(pkg)) {
183
186
  context.report({ node, messageId: "noConfigPlugin", data: { packageName: pkg } });
@@ -11,7 +11,8 @@
11
11
  { "name": "expo-router-dynamic-tab", "specifier": "miaoda-expo-devkit/rules/no-unregistered-dynamic-tab-route" },
12
12
  { "name": "rn-pressable", "specifier": "miaoda-expo-devkit/rules/no-pressable-without-on-press" },
13
13
  { "name": "expo-video-compat", "specifier": "miaoda-expo-devkit/rules/no-expo-video-compat" },
14
- { "name": "rn-style", "specifier": "miaoda-expo-devkit/rules/no-inline-box-shadow-string" }
14
+ { "name": "rn-style", "specifier": "miaoda-expo-devkit/rules/no-inline-box-shadow-string" },
15
+ { "name": "expo-unused-config-plugin", "specifier": "miaoda-expo-devkit/rules/no-unused-expo-plugin" }
15
16
  ],
16
17
 
17
18
  "categories": {
@@ -29,6 +30,7 @@
29
30
  "rn-pressable/no-pressable-without-on-press": "error",
30
31
  "expo-video-compat/no-expo-video-compat": "warn",
31
32
  "rn-style/no-inline-box-shadow-string": "error",
33
+ "expo-unused-config-plugin/no-unused-expo-plugin": "error",
32
34
 
33
35
  "expo/no-dynamic-env-var": "error",
34
36
  "expo/no-env-var-destructuring": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "miaoda-expo-devkit",
3
- "version": "0.1.1-beta.57",
3
+ "version": "0.1.1-beta.58",
4
4
  "description": "Expo 应用开发工具集:Sentry DSN 替换 stub、错误/网络捕获、Metro 符号化",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",