Last active
January 6, 2020 10:23
-
-
Save FFKL/e877f2d6a55811e7f2979dcbfb763a42 to your computer and use it in GitHub Desktop.
TSLint ordered-imports example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"ordered-imports": [ | |
true, | |
{ | |
"grouped-imports": true, | |
"import-sources-order": "any", | |
"named-imports-order": "case-insensitive", | |
"groups": [ | |
{ | |
"name": "third-party", | |
"match": "^(?!.{1,2}\\/|package-|@mocks|@constants|@interfaces|@environment|@services).*$", | |
"order": 10 | |
}, | |
{ | |
"name": "packages", | |
"match": "^package-", | |
"order": 20 | |
}, | |
{ | |
"name": "project", | |
"match": "^(?!.*interfaces).*$", | |
"order": 30 | |
}, | |
{ | |
"name": "interfaces", | |
"match": "interfaces", | |
"order": 40 | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment