Skip to content

Commit

Permalink
chore: update nx and dependencies (#64)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicoss54 authored Jun 18, 2024
1 parent e27df59 commit c5dba73
Show file tree
Hide file tree
Showing 59 changed files with 11,714 additions and 8,120 deletions.
60 changes: 19 additions & 41 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,10 @@
{
"root": true,
"ignorePatterns": [
"**/*"
],
"plugins": [
"@nx",
"prettier"
],
"ignorePatterns": ["**/*"],
"plugins": ["@nx", "prettier"],
"overrides": [
{
"files": [
"*.ts",
"*.tsx",
"*.js",
"*.jsx"
],
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {
"prettier/prettier": "error",
"@nx/enforce-module-boundaries": [
Expand All @@ -25,51 +15,39 @@
"depConstraints": [
{
"sourceTag": "*",
"onlyDependOnLibsWithTags": [
"*"
]
"onlyDependOnLibsWithTags": ["*"]
}
]
}
]
}
},
{
"files": [
"*.ts",
"*.tsx"
],
"extends": [
"plugin:@nx/typescript"
],
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {
"prettier/prettier": "error"
"prettier/prettier": "error",
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": [
"*.spec.ts",
"*.tsx"
],
"extends": [
"plugin:@nx/typescript"
],
"files": ["*.spec.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {
"prettier/prettier": "error",
"@typescript-eslint/no-explicit-any": "off"
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": [
"*.js",
"*.jsx"
],
"extends": [
"plugin:@nx/javascript",
"prettier"
],
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript", "prettier"],
"rules": {
"prettier/prettier": "error"
"prettier/prettier": "error",
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
}
]
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,5 @@ workshop/dist

.fleet

.nx/cache
.nx/cache
.nx/workspace-data
5 changes: 3 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

*.md

./workshop/dist
/workshop/dist

/.nx/cache
/.nx/cache
/.nx/workspace-data
6 changes: 3 additions & 3 deletions apps/06-http-solution/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -9,8 +9,8 @@ import { NgOptimizedImage } from '@angular/common';

@NgModule({
declarations: [AppComponent, HomeComponent],
imports: [BrowserModule, BrowserAnimationsModule, MaterialDesignModule, HttpClientModule, NgOptimizedImage],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, MaterialDesignModule, NgOptimizedImage],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/07-router-solution/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NgOptimizedImage } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -10,8 +10,8 @@ import { MaterialDesignModule } from './material-design.module';

@NgModule({
declarations: [AppComponent, HomeComponent],
imports: [BrowserModule, BrowserAnimationsModule, MaterialDesignModule, HttpClientModule, AppRoutingModule, NgOptimizedImage],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, MaterialDesignModule, AppRoutingModule, NgOptimizedImage],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/07-router/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NgOptimizedImage } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -9,8 +9,8 @@ import { MaterialDesignModule } from './material-design.module';

@NgModule({
declarations: [AppComponent, HomeComponent],
imports: [BrowserModule, BrowserAnimationsModule, MaterialDesignModule, HttpClientModule, NgOptimizedImage],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, MaterialDesignModule, NgOptimizedImage],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/08-ng-for-solution/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NgOptimizedImage } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -11,8 +11,8 @@ import { MaterialDesignModule } from './material-design.module';

@NgModule({
declarations: [AppComponent, HomeComponent, PeopleComponent],
imports: [BrowserModule, BrowserAnimationsModule, MaterialDesignModule, HttpClientModule, AppRoutingModule, NgOptimizedImage],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, MaterialDesignModule, AppRoutingModule, NgOptimizedImage],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/08-ng-for/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NgOptimizedImage } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -10,8 +10,8 @@ import { MaterialDesignModule } from './material-design.module';

@NgModule({
declarations: [AppComponent, HomeComponent],
imports: [BrowserModule, BrowserAnimationsModule, MaterialDesignModule, HttpClientModule, AppRoutingModule, NgOptimizedImage],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, MaterialDesignModule, AppRoutingModule, NgOptimizedImage],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/09-input-solution/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -10,8 +10,8 @@ import { SharedModule } from './shared/shared.module';

@NgModule({
declarations: [AppComponent, HomeComponent, PeopleComponent],
imports: [BrowserModule, BrowserAnimationsModule, HttpClientModule, AppRoutingModule, SharedModule],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, AppRoutingModule, SharedModule],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/09-input/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { NgOptimizedImage } from '@angular/common';
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -11,8 +11,8 @@ import { MaterialDesignModule } from './material-design.module';

@NgModule({
declarations: [AppComponent, HomeComponent, PeopleComponent],
imports: [BrowserModule, BrowserAnimationsModule, MaterialDesignModule, HttpClientModule, AppRoutingModule, NgOptimizedImage],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, MaterialDesignModule, AppRoutingModule, NgOptimizedImage],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/10-output-solution/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -10,8 +10,8 @@ import { SharedModule } from './shared/shared.module';

@NgModule({
declarations: [AppComponent, HomeComponent, PeopleComponent],
imports: [BrowserModule, BrowserAnimationsModule, HttpClientModule, AppRoutingModule, SharedModule],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, AppRoutingModule, SharedModule],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/10-output/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -10,8 +10,8 @@ import { SharedModule } from './shared/shared.module';

@NgModule({
declarations: [AppComponent, HomeComponent, PeopleComponent],
imports: [BrowserModule, BrowserAnimationsModule, HttpClientModule, AppRoutingModule, SharedModule],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, AppRoutingModule, SharedModule],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/11-service-solution/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -10,8 +10,8 @@ import { SharedModule } from './shared/shared.module';

@NgModule({
declarations: [AppComponent, HomeComponent, PeopleComponent],
imports: [BrowserModule, BrowserAnimationsModule, AppRoutingModule, HttpClientModule, SharedModule],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, AppRoutingModule, SharedModule],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/11-service/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -10,8 +10,8 @@ import { SharedModule } from './shared/shared.module';

@NgModule({
declarations: [AppComponent, HomeComponent, PeopleComponent],
imports: [BrowserModule, BrowserAnimationsModule, HttpClientModule, AppRoutingModule, SharedModule],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, AppRoutingModule, SharedModule],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/12-pipe-using-solution/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -10,8 +10,8 @@ import { SharedModule } from './shared/shared.module';

@NgModule({
declarations: [AppComponent, HomeComponent, PeopleComponent],
imports: [BrowserModule, BrowserAnimationsModule, HttpClientModule, AppRoutingModule, SharedModule],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, AppRoutingModule, SharedModule],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/12-pipe-using/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -10,8 +10,8 @@ import { SharedModule } from './shared/shared.module';

@NgModule({
declarations: [AppComponent, HomeComponent, PeopleComponent],
imports: [BrowserModule, BrowserAnimationsModule, HttpClientModule, AppRoutingModule, SharedModule],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, AppRoutingModule, SharedModule],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/13-pipe-custom-solution/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -10,8 +10,8 @@ import { SharedModule } from './shared/shared.module';

@NgModule({
declarations: [AppComponent, HomeComponent, PeopleComponent],
imports: [BrowserModule, BrowserAnimationsModule, HttpClientModule, AppRoutingModule, SharedModule],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, AppRoutingModule, SharedModule],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/13-pipe-custom/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -10,8 +10,8 @@ import { SharedModule } from './shared/shared.module';

@NgModule({
declarations: [AppComponent, HomeComponent, PeopleComponent],
imports: [BrowserModule, BrowserAnimationsModule, HttpClientModule, AppRoutingModule, SharedModule],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, AppRoutingModule, SharedModule],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
6 changes: 3 additions & 3 deletions apps/14-directive-using-solution/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { HttpClientModule } from '@angular/common/http';
import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Expand All @@ -10,8 +10,8 @@ import { SharedModule } from './shared/shared.module';

@NgModule({
declarations: [AppComponent, HomeComponent, PeopleComponent],
imports: [BrowserModule, BrowserAnimationsModule, HttpClientModule, AppRoutingModule, SharedModule],
providers: [],
bootstrap: [AppComponent],
imports: [BrowserModule, BrowserAnimationsModule, AppRoutingModule, SharedModule],
providers: [provideHttpClient(withInterceptorsFromDi())],
})
export class AppModule {}
Loading

0 comments on commit c5dba73

Please sign in to comment.