Skip to content

Commit

Permalink
feat(packages/eslint-plugin-sui): check if keys exists
Browse files Browse the repository at this point in the history
  • Loading branch information
aleixferr committed Jul 23, 2024
1 parent 7ff536f commit 4fbb929
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ module.exports = {
const customGetterName = `get${attribute.key.name.charAt(0).toUpperCase()}${attribute.key.name.slice(1)}`

classMethods.forEach(method => {
const existNativeGetterWithAttributeKey = method?.key?.name === attribute?.key?.name && method?.kind === 'get'
const existNativeGetterWithAttributeKey =
method?.key?.name === attribute?.key?.name && method?.kind === 'get'
const existCustomGetterWithAttributeKey = method?.key?.name === customGetterName

if (existNativeGetterWithAttributeKey || existCustomGetterWithAttributeKey) {
Expand Down

0 comments on commit 4fbb929

Please sign in to comment.