Skip to content

Commit

Permalink
Merge pull request #126 from Commencis/feature/import-sort-rules
Browse files Browse the repository at this point in the history
fix(eslint-config): increase coverage for edge cases in sorting rules
  • Loading branch information
unmuslu authored Nov 7, 2024
2 parents 166a0c4 + c9ace94 commit ed7ef22
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 ed7ef22

Please sign in to comment.