-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically sort imports using Prettier plugin
- Loading branch information
Showing
361 changed files
with
1,087 additions
and
1,194 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
const config = { | ||
/** | ||
* Enable plugin for automatically sorting of imports | ||
*/ | ||
plugins: ["@trivago/prettier-plugin-sort-imports"], | ||
importOrderParserPlugins: ["typescript", "decorators-legacy"], | ||
|
||
/** | ||
* Custom sorting of imports, first lit stuff, then other third | ||
* party libs, then own modules | ||
*/ | ||
importOrder: ["^@angular/", "<THIRD_PARTY_MODULES>", "^src/", "^../", "^./"], | ||
|
||
/** | ||
* Whether to separate sorting groups (as defined above) with | ||
* newline | ||
*/ | ||
// importOrderSeparation: true, | ||
|
||
/** | ||
* Whether to sort the specifiers on the left hand side of the | ||
* import statement | ||
*/ | ||
importOrderSortSpecifiers: true, | ||
}; | ||
|
||
export default config; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
theme: jekyll-theme-slate | ||
theme: jekyll-theme-slate |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
"type": "git", | ||
"url": "[email protected]:bkd-mba-fbi/webapp-schulverwaltung.git" | ||
}, | ||
"type": "module", | ||
"scripts": { | ||
"ng": "ng", | ||
"start": "ng serve", | ||
|
@@ -21,7 +22,7 @@ | |
"test:brief": "ng test --browsers=ChromeHeadless --reporters brief", | ||
"test:coverage": "ng test --browsers=ChromeHeadless --code-coverage --reporters coverage-istanbul", | ||
"lint": "ng lint", | ||
"format": "prettier --write \"./**/*.{js,ts,json,css,scss,html,md,yaml}\"", | ||
"format": "prettier --write \"./**/*\" --ignore-unknown", | ||
"format:upgrade": "npm install --save-exact prettier@latest && npm run format", | ||
"preanalyze": "ng build --stats-json", | ||
"analyze": "npx webpack-bundle-analyzer dist/$(ng config defaultProject)/stats.json", | ||
|
@@ -70,6 +71,7 @@ | |
"@angular/cli": "^16.2.7", | ||
"@angular/compiler-cli": "^16.2.10", | ||
"@angular/language-service": "^16.2.10", | ||
"@trivago/prettier-plugin-sort-imports": "^4.2.1", | ||
"@types/jasmine": "~5.1.1", | ||
"@types/lodash-es": "^4.17.10", | ||
"@types/node": "^18.11.0", | ||
|
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
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
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
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
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
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
3 changes: 1 addition & 2 deletions
3
src/app/dashboard/components/dashboard-action/dashboard-action.component.spec.ts
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
15 changes: 7 additions & 8 deletions
15
src/app/dashboard/components/dashboard-actions/dashboard-actions.component.spec.ts
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
2 changes: 1 addition & 1 deletion
2
src/app/dashboard/components/dashboard-actions/dashboard-actions.component.ts
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
3 changes: 1 addition & 2 deletions
3
src/app/dashboard/components/dashboard-deadline/dashboard-deadline.component.spec.ts
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
3 changes: 1 addition & 2 deletions
3
src/app/dashboard/components/dashboard-search/dashboard-search.component.spec.ts
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
2 changes: 1 addition & 1 deletion
2
src/app/dashboard/components/dashboard-search/dashboard-search.component.ts
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
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
2 changes: 1 addition & 1 deletion
2
...app/dashboard/components/dashboard-timetable-table/dashboard-timetable-table.component.ts
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
11 changes: 5 additions & 6 deletions
11
src/app/dashboard/components/dashboard-timetable/dashboard-timetable.component.spec.ts
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
17 changes: 8 additions & 9 deletions
17
src/app/dashboard/components/dashboard-timetable/dashboard-timetable.component.ts
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
5 changes: 2 additions & 3 deletions
5
src/app/dashboard/components/dashboard/dashboard.component.spec.ts
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
Oops, something went wrong.