eslint-plugin-aurora-config 0.0.2 → 0.0.3
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/lib/rules/scene-check.js +5 -0
- package/package.json +1 -1
package/lib/rules/scene-check.js
CHANGED
|
@@ -205,6 +205,11 @@ module.exports = {
|
|
|
205
205
|
hasPhaserImport = true;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
// 兼容新旧导入路径:优先 @aurora.js/phaser-kit,同时支持历史路径 src/kit/BaseScene
|
|
209
|
+
for (const name of getNamedImportsFrom(node, "@aurora.js/phaser-kit")) {
|
|
210
|
+
baseSceneNamedImports.add(name);
|
|
211
|
+
}
|
|
212
|
+
|
|
208
213
|
for (const name of getNamedImportsFrom(node, "src/kit/BaseScene")) {
|
|
209
214
|
baseSceneNamedImports.add(name);
|
|
210
215
|
}
|