Skip to content

Commit 3699b9c

Browse files
d3xter666github-actions[bot]
authored andcommitted
refactor: Remove eslint disable comments
1 parent 92f6f87 commit 3699b9c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/linter/manifestJson/ManifestLinter.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ export default class ManifestLinter {
100100
if (targets) {
101101
for (const [key, target] of Object.entries(targets)) {
102102
// Check if name starts with module and viewType is defined:
103-
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
104-
const name = target.name || target.viewName;
103+
const name = target.name ?? target.viewName;
105104
if (name && (name as string).startsWith("module:")) {
106105
if (target.viewType) {
107106
this.#reporter?.addMessage(MESSAGE.REDUNDANT_VIEW_CONFIG_PROPERTY, {

0 commit comments

Comments
 (0)