Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

71 changes: 0 additions & 71 deletions .eslintrc.json

This file was deleted.

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ Thumbs.db
.nx/workspace-data
.cursor/rules/nx-rules.mdc
.github/instructions/nx.instructions.md

.claude/worktrees
.claude/settings.local.json
.nx/polygraph
.nx/self-healing
.nx/migrate-runs
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
.angular

/.nx/cache
/.nx/workspace-data
/.nx/workspace-data
.nx/self-healing
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## [Unreleased]

### BREAKING CHANGES

- **Dependency**: Require Angular 22

## [21.0.1] - 2026-01-05

### Fix
Expand Down
37 changes: 0 additions & 37 deletions apps/demo/.eslintrc.json

This file was deleted.

30 changes: 30 additions & 0 deletions apps/demo/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import nx from '@nx/eslint-plugin';
import baseConfig from '../../eslint.config.mjs';

export default [
...baseConfig,
...nx.configs['flat/angular'],
{
files: ['**/*.ts'],
rules: {
'@angular-eslint/directive-selector': [
'error',
{
type: 'attribute',
prefix: 'app',
style: 'camelCase',
},
],
'@angular-eslint/component-selector': [
'error',
{
type: 'element',
prefix: 'app',
style: 'kebab-case',
},
],
'@angular-eslint/prefer-standalone': 'off',
},
},
...nx.configs['flat/angular-template'],
];
29 changes: 13 additions & 16 deletions apps/demo/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@
"tags": [],
"targets": {
"build": {
"executor": "@angular-devkit/build-angular:application",
"executor": "@angular/build:application",
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"outputPath": "dist/apps/demo",
"index": "apps/demo/src/index.html",
Expand Down Expand Up @@ -46,37 +47,33 @@
"extractLicenses": false,
"sourceMap": true
}
},
"defaultConfiguration": "production"
}
},
"serve": {
"executor": "@angular-devkit/build-angular:dev-server",
"executor": "@angular/build:dev-server",
"defaultConfiguration": "development",
"continuous": true,
"configurations": {
"production": {
"buildTarget": "demo:build:production"
},
"development": {
"buildTarget": "demo:build:development"
}
},
"defaultConfiguration": "development",
"continuous": true
},
"extract-i18n": {
"executor": "@angular-devkit/build-angular:extract-i18n",
"options": {
"buildTarget": "demo:build"
}
},
"lint": {
"executor": "@nx/eslint:lint"
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "apps/demo/jest.config.ts",
"tsConfig": "apps/demo/tsconfig.spec.json"
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"coverage": true
}
}
Comment on lines +72 to 77
}
}
Expand Down
2 changes: 2 additions & 0 deletions apps/demo/src/app-demo/app-demo.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
Input,
Output,
ViewChild,
ChangeDetectionStrategy
} from '@angular/core';
import {
ContextMenuDirective,
Expand Down Expand Up @@ -34,6 +35,7 @@ import {
`,
],
templateUrl: './app-demo.component.html',
changeDetection: ChangeDetectionStrategy.Eager,
standalone: false,
})
export class AppDemoComponent {
Expand Down
2 changes: 2 additions & 0 deletions apps/demo/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
Input,
Output,
ViewChild,
ChangeDetectionStrategy
} from '@angular/core';
import {
ContextMenuDirective,
Expand Down Expand Up @@ -34,6 +35,7 @@ import {
`,
],
templateUrl: './app.component.html',
changeDetection: ChangeDetectionStrategy.Eager,
standalone: false,
})
export class AppComponent {
Expand Down
10 changes: 6 additions & 4 deletions apps/demo/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { provideZoneChangeDetection } from "@angular/core";
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { provideZoneChangeDetection } from '@angular/core';
import { platformBrowser } from '@angular/platform-browser';
import { AppModule } from './app/app.module';

platformBrowserDynamic()
.bootstrapModule(AppModule, { applicationProviders: [provideZoneChangeDetection()], })
platformBrowser()
.bootstrapModule(AppModule, {
applicationProviders: [provideZoneChangeDetection()],
})
.catch((err) => console.error(err));
14 changes: 13 additions & 1 deletion apps/demo/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,17 @@
},
"files": ["src/main.ts"],
"include": ["src/**/*.d.ts"],
"exclude": ["jest.config.ts", "src/**/*.test.ts", "src/**/*.spec.ts"]
"exclude": [
"jest.config.ts",
"src/**/*.test.ts",
"src/**/*.spec.ts"
],
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
}
3 changes: 2 additions & 1 deletion apps/demo/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"noFallthroughCasesInSwitch": true,
"module": "preserve",
"moduleResolution": "bundler",
"lib": ["dom", "es2022"]
"lib": ["dom", "es2022"],
"ignoreDeprecations": "6.0"
},
"files": [],
"include": [],
Expand Down
10 changes: 9 additions & 1 deletion apps/demo/tsconfig.spec.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,13 @@
"src/**/*.test.ts",
"src/**/*.spec.ts",
"src/**/*.d.ts"
]
],
"angularCompilerOptions": {
"extendedDiagnostics": {
"checks": {
"nullishCoalescingNotNullable": "suppress",
"optionalChainNotNullable": "suppress"
}
}
}
}
48 changes: 48 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import { FlatCompat } from '@eslint/eslintrc';
import { dirname } from 'path';
import { fileURLToPath } from 'url';
import js from '@eslint/js';
import nx from '@nx/eslint-plugin';

const compat = new FlatCompat({
baseDirectory: dirname(fileURLToPath(import.meta.url)),
recommendedConfig: js.configs.recommended,
});

export default [
...compat.extends('plugin:storybook/recommended'),
...nx.configs['flat/base'],
{
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
rules: {
'@nx/enforce-module-boundaries': [
'error',
{
enforceBuildableLibDependency: true,
allow: [],
depConstraints: [
{
sourceTag: '*',
onlyDependOnLibsWithTags: ['*'],
},
],
},
],
},
},
...nx.configs['flat/typescript'],
...nx.configs['flat/javascript'],
...compat
.config({
env: {
jest: true,
},
})
.map((config) => ({
...config,
files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.spec.js', '**/*.spec.jsx'],
rules: {
...config.rules,
},
})),
];
Loading
Loading