chore: adjust object sorting groups

This commit is contained in:
Elliot DeNolf
2023-09-14 16:33:13 -04:00
parent abab0abca8
commit 577f54fcf3

View File

@@ -53,6 +53,19 @@ module.exports = {
'react/no-unused-prop-types': 'off',
'react/prop-types': 'off',
'react/require-default-props': 'off',
'perfectionist/sort-objects': [
'error',
{
type: 'natural',
order: 'asc',
'partition-by-comment': true,
groups: ['top', 'unknown'],
'custom-groups': {
top: ['_id', 'id', 'name'],
},
},
],
},
settings: {
'import/parsers': {