Skip to content

Commit

Permalink
fix(asyncComponentFlags): Fix detection of manifest: 'json' (single q…
Browse files Browse the repository at this point in the history
…uotes)

Resolves #306
  • Loading branch information
RandomByte committed Sep 16, 2024
1 parent 0216bee commit 8a6af93
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/linter/ui5Types/asyncComponentFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ function doPropsCheck(metadata: ts.PropertyDeclaration, manifestContent: string

hasManifestDefinition = !!(componentManifest &&
ts.isPropertyAssignment(componentManifest) &&
componentManifest.initializer.getText() === "\"json\"");
getPropertyName(componentManifest.initializer) === "json");
}

return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ import * as library from "sap/ui/core/library"; // Unused core library import fo

export default class Component extends ParentComponent {
static metadata = {
manifest: "json"
manifest: 'json'
};
}

0 comments on commit 8a6af93

Please sign in to comment.