Skip to content

Commit

Permalink
fix(eslint-config): increase coverage for edge cases in sorting rules
Browse files Browse the repository at this point in the history
  • Loading branch information
unmuslu committed Nov 7, 2024
1 parent 166a0c4 commit c9ace94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/eslint-config/src/rules/importSortRules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const importSortRules: Linter.RulesRecord = {

// Main frameworks & libraries
[
'^react',
'^(react(-native|-dom)?(/.*)?)$',
'^next',
'^vue',
'^nuxt',
Expand All @@ -29,7 +29,7 @@ export const importSortRules: Linter.RulesRecord = {
['^@/'],

// Components
['((.*)/)?(providers|layouts|pages|modules|features|components)/'],
['((.*)/)?(providers|layouts|pages|modules|features|components)/?'],

// Relative parent imports: '../' comes last
['^\\.\\.(?!/?$)', '^\\.\\./?$'],
Expand Down

0 comments on commit c9ace94

Please sign in to comment.