Sort array values if has @sort
annotation
const names = [
'Liam',
'Noah',
'Jackson',
'Aiden',
'Elijah',
'Grayson',
'Lucas',
'Oliver',
]
// @sort
const names = [
'Aiden',
'Elijah',
'Grayson',
'Jackson',
'Liam',
'Lucas',
'Noah',
'Oliver',
]
// @sort
const adminIds = [
'Asher',
'Heather',
'James',
'Luca',
'Ron',
'Zinna',
]
If array's values are irrelevant even if the order is changed, this rule can make it clear