Skip to content

Commit

Permalink
refactor(vscode): remove Codegeex settings and adjust Prettier config…
Browse files Browse the repository at this point in the history
…uration

- Removed Codegeex-related settings from .vscode/settings.json
- Decreased printWidth in .prettierrc.json from 240 to 180
- Improved formatting and structure of users.component.html- Simplified imports in users.component.ts
  • Loading branch information
vnobo committed Oct 31, 2024
1 parent 1199f5d commit e889b02
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ng-web/.prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"endOfLine": "auto",
"bracketSpacing": true,
"jsxSingleQuote": true,
"printWidth": 240,
"printWidth": 180,
"proseWrap": "always",
"semi": true,
"singleQuote": true,
Expand Down
7 changes: 1 addition & 6 deletions ng-web/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,
"angular.view-engine": false,
"Codegeex.CompletionModel": "CodeGeeX Pro[Beta]",
"Codegeex.Privacy": true,
"merge-conflict.autoNavigateNextConflict.enabled": true,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"prettier.bracketSameLine": true,
"Codegeex.CommitMessageStyle": "ConventionalCommits",
"Codegeex.RepoIndex": true,
"angular-schematics.schematicsDefaultOptions": {
"angular-*": {
"style": "scss",
Expand All @@ -33,6 +29,5 @@
"angular-page": {
"skipChangeDetectionOnPush": true
}
},
"Codegeex.CommitMessage.LanguagePreference": "English"
}
}
14 changes: 13 additions & 1 deletion ng-web/src/app/pages/home/users/users.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,19 @@ import { FormsModule } from '@angular/forms';
@Component({
selector: 'app-users',
standalone: true,
imports: [CommonModule, FormsModule, NzTableModule, NzNotificationModule, NzPaginationModule, TruncateMiddlePipe, ClipboardModule, NzToolTipModule, NzInputModule, NzIconModule, NzButtonModule],
imports: [
CommonModule,
FormsModule,
NzTableModule,
NzNotificationModule,
NzPaginationModule,
TruncateMiddlePipe,
ClipboardModule,
NzToolTipModule,
NzInputModule,
NzIconModule,
NzButtonModule,
],
templateUrl: './users.component.html',
styleUrl: './users.component.scss',
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down

0 comments on commit e889b02

Please sign in to comment.