Skip to content

Commit

Permalink
feat: auto import sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardIvanov22 committed Nov 8, 2021
1 parent 915c279 commit d1e3722
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions import-sorter.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"generalConfiguration.sortOnBeforeSave": true,
"importStringConfiguration.maximumNumberOfImportExpressionsPerLine.type": "newLineEachExpressionAfterCountLimitExceptIfOnlyOne",
"importStringConfiguration.maximumNumberOfImportExpressionsPerLine.count": 80,
"importStringConfiguration.tabSize": 2,
"importStringConfiguration.quoteMark": "single",
"importSorter.sortConfiguration.customOrderingRules.disableDefaultOrderSort": true,
"importSorter.importStringConfiguration.spacingPerImportExpression.afterStartingBracket": 0,
"importSorter.importStringConfiguration.spacingPerImportExpression.beforeComma": 0,
"importSorter.importStringConfiguration.spacingPerImportExpression.beforeEndingBracket": 0,
"importSorter.sortConfiguration.customOrderingRules.rules": [
{"regex": "^$", "orderLevel": 10},
{"regex": "@components", "orderLevel": 30},
{"regex": "@atoms", "orderLevel": 30},
{"regex": "@molecules", "orderLevel": 30},
{"regex": "@organisms", "orderLevel": 30},
{"regex": "@components", "orderLevel": 30},
{"regex": "@utils", "orderLevel": 40},
{"regex": "@hooks", "orderLevel": 40},
{"regex": "@redux", "orderLevel": 50},
{"regex": "@models", "orderLevel": 60},
{"regex": "@styles", "orderLevel": 70},
{"regex": "@src", "orderLevel": 80},
{"regex": "@constants", "orderLevel": 90},
{"regex": "@assets", "orderLevel": 100}
]
}

0 comments on commit d1e3722

Please sign in to comment.