Closed KID-joker closed 1 month ago
add node.parent.type === 'Property' && node.parent.key.type === 'Identifier' ? node.parent.key.name : null
can solve the methods
problem.
And the data
should find the grandparent whose type is VariableDeclarator
or Property
.
Maybe I can try to submit a pr?
Describe the bug
I just want to sort the order of vue options, not the
methods
object. Because nearby methods may handle related logic.Code example
eslint.config.js:
input:
output:
expect:
ESLint version
v8.56.0
ESLint Plugin Perfectionist version
v2.8.0
Additional comments
No response
Validations