-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use ESLint in CI - Upgrade to Flat Configuration - Fix Codebase of all linting errors and warnings - Use unused imports plugin
- Loading branch information
1 parent
898af7f
commit 6759f9d
Showing
46 changed files
with
943 additions
and
947 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
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,2 @@ | ||
pnpm lint-staged | ||
pnpm verify:all |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,29 @@ | ||
const nx = require('@nx/eslint-plugin'); | ||
const baseConfig = require('../../eslint.config.cjs'); | ||
|
||
module.exports = [ | ||
...baseConfig, | ||
...nx.configs['flat/angular'], | ||
...nx.configs['flat/angular-template'], | ||
{ | ||
files: ['**/*.ts'], | ||
rules: { | ||
'@angular-eslint/directive-selector': [ | ||
'error', | ||
{ | ||
type: 'attribute', | ||
prefix: 'demo', | ||
style: 'camelCase', | ||
}, | ||
], | ||
'@angular-eslint/component-selector': [ | ||
'error', | ||
{ | ||
type: 'element', | ||
prefix: 'demo', | ||
style: 'kebab-case', | ||
}, | ||
], | ||
}, | ||
} | ||
]; |
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,4 +1,4 @@ | ||
/* eslint-disable */ | ||
export default { | ||
displayName: 'demo', | ||
preset: '../../jest.preset.js', | ||
|
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 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 |
---|---|---|
@@ -1,23 +1,29 @@ | ||
<demo-sidebar-cmp> | ||
<div class="nav"> | ||
<mat-toolbar color="primary"> | ||
<span>NgRx Toolkit Demo</span> | ||
</mat-toolbar> | ||
<mat-drawer-container class="container"> | ||
<mat-drawer mode="side" opened> | ||
<mat-nav-list> | ||
<a mat-list-item routerLink="/todo">DevTools</a> | ||
<a mat-list-item routerLink="/flight-search">withRedux</a> | ||
<a mat-list-item routerLink="/flight-search-data-service-simple">withDataService (Simple)</a> | ||
<a mat-list-item routerLink="/flight-search-data-service-dynamic">withDataService (Dynamic)</a> | ||
<a mat-list-item routerLink="/flight-search-with-pagination">withPagination</a> | ||
<a mat-list-item routerLink="/flight-search-redux-connector">Redux Connector</a> | ||
<a mat-list-item routerLink="/flight-search-data-service-simple" | ||
>withDataService (Simple)</a | ||
> | ||
<a mat-list-item routerLink="/flight-search-data-service-dynamic" | ||
>withDataService (Dynamic)</a | ||
> | ||
<a mat-list-item routerLink="/flight-search-with-pagination" | ||
>withPagination</a | ||
> | ||
<a mat-list-item routerLink="/flight-search-redux-connector" | ||
>Redux Connector</a | ||
> | ||
<a mat-list-item routerLink="/todo-storage-sync">withStorageSync</a> | ||
</mat-nav-list> | ||
</div> | ||
|
||
<div class="content"> | ||
<mat-toolbar color="primary"> | ||
<span>NGRX Toolkit Demo</span> | ||
</mat-toolbar> | ||
|
||
<div class="app-container"> | ||
<router-outlet></router-outlet> | ||
</mat-drawer> | ||
<mat-drawer-content> | ||
<div class="content"> | ||
<router-outlet /> | ||
</div> | ||
</div> | ||
</demo-sidebar-cmp> | ||
</mat-drawer-content> | ||
</mat-drawer-container> |
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,30 +1,39 @@ | ||
import { SelectionModel } from '@angular/cdk/collections'; | ||
import { Component, effect, inject } from '@angular/core'; | ||
import { MatTableDataSource, MatTableModule } from '@angular/material/table'; | ||
import { Component } from '@angular/core'; | ||
import { MatTableModule } from '@angular/material/table'; | ||
import { MatCheckboxModule } from '@angular/material/checkbox'; | ||
import { Todo, TodoStore } from './devtools/todo-store'; | ||
import { MatIconModule } from '@angular/material/icon'; | ||
import { CategoryStore } from './category.store'; | ||
import { RouterLink, RouterOutlet } from '@angular/router'; | ||
import { SidebarComponent } from './core/sidebar/sidebar.component'; | ||
import { CommonModule } from '@angular/common'; | ||
import { MatToolbarModule } from '@angular/material/toolbar'; | ||
import { MatListItem, MatListModule } from '@angular/material/list'; | ||
import { MatListModule } from '@angular/material/list'; | ||
import { | ||
MatDrawer, | ||
MatDrawerContainer, | ||
MatDrawerContent, | ||
} from '@angular/material/sidenav'; | ||
|
||
@Component({ | ||
selector: 'demo-root', | ||
templateUrl: './app.component.html', | ||
styleUrl: './app.component.css', | ||
imports: [ | ||
MatTableModule, | ||
MatCheckboxModule, | ||
MatIconModule, | ||
MatListModule, | ||
RouterLink, | ||
RouterOutlet, | ||
SidebarComponent, | ||
CommonModule, | ||
MatToolbarModule, | ||
MatDrawer, | ||
MatDrawerContainer, | ||
MatDrawerContent, | ||
], | ||
styles: ` | ||
.container { | ||
display: inline; | ||
} | ||
.content { | ||
margin: 4em; | ||
}`, | ||
}) | ||
export class AppComponent {} |
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
Oops, something went wrong.