Skip to content

Commit

Permalink
fix(base): switch some perfectionist references to flatconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
matzehecht committed Dec 20, 2024
1 parent bdb87bb commit a6697cc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions configs/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,36 +95,36 @@ module.exports = tseslint.config(
'perfectionist/sort-classes': [
'error',
{
...perfectionist.configs['recommended-natural-legacy'].rules['perfectionist/sort-classes'][1],
...perfectionist.configs['recommended-natural'].rules['perfectionist/sort-classes'][1],
groups: SORT_CLASSES_GROUPS,
},
],
'perfectionist/sort-imports': [
'error',
{
...perfectionist.configs['recommended-natural-legacy'].rules['perfectionist/sort-imports'][1],
...perfectionist.configs['recommended-natural'].rules['perfectionist/sort-imports'][1],
groups: SORT_IMPORTS_GROUPS,
newlinesBetween: 'ignore',
},
],
'perfectionist/sort-intersection-types': [
'error',
{
...perfectionist.configs['recommended-natural-legacy'].rules['perfectionist/sort-intersection-types'][1],
...perfectionist.configs['recommended-natural'].rules['perfectionist/sort-intersection-types'][1],
groups: SORT_INTERSECTION_TYPES_GROUPS,
},
],
'perfectionist/sort-named-imports': [
'error',
{
...perfectionist.configs['recommended-natural-legacy'].rules['perfectionist/sort-named-imports'][1],
...perfectionist.configs['recommended-natural'].rules['perfectionist/sort-named-imports'][1],
ignoreAlias: true,
},
],
'perfectionist/sort-objects': [
'error',
{
...perfectionist.configs['recommended-natural-legacy'].rules['perfectionist/sort-objects'][1],
...perfectionist.configs['recommended-natural'].rules['perfectionist/sort-objects'][1],
partitionByComment: true,
},
],
Expand Down

0 comments on commit a6697cc

Please sign in to comment.