Skip to content

Commit

Permalink
feat(packages/eslint-plugin-sui): add new linter rule
Browse files Browse the repository at this point in the history
  • Loading branch information
aleixferr committed Jul 22, 2024
1 parent f503b4b commit dba062e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/eslint-plugin-sui/src/rules/value-attribute-VO.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,8 @@ module.exports = {
`

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

if (existNativeGetterWithAttributeKey || existCustomGetterWithAttributeKey) {
Expand Down

0 comments on commit dba062e

Please sign in to comment.