-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING CHANGE: Angular 19 support (#271)
BREAKING CHANGE: Angular 19 support
- Loading branch information
Showing
36 changed files
with
4,927 additions
and
2,824 deletions.
There are no files selected for viewing
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,4 @@ | ||
#Ignore files | ||
|
||
/node_modules | ||
/dist |
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,5 @@ | ||
{ | ||
"tabWidth": 4, | ||
"useTabs": false, | ||
"printWidth": 120 | ||
} |
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
// @ts-check | ||
const eslint = require("@eslint/js"); | ||
const tseslint = require("typescript-eslint"); | ||
const angular = require("angular-eslint"); | ||
|
||
module.exports = tseslint.config( | ||
{ | ||
files: ["**/*.ts"], | ||
extends: [ | ||
eslint.configs.recommended, | ||
...tseslint.configs.recommended, | ||
...tseslint.configs.stylistic, | ||
...angular.configs.tsRecommended, | ||
], | ||
processor: angular.processInlineTemplates, | ||
rules: { | ||
semi: ["error", "always"], | ||
"no-console": ["error", { allow: ["warn", "error"] }], | ||
"@typescript-eslint/no-explicit-any": "warn", | ||
"@angular-eslint/directive-selector": "error", | ||
"@angular-eslint/component-selector": "error", | ||
"@angular-eslint/prefer-standalone": "warn", | ||
}, | ||
}, | ||
{ | ||
files: ["**/*.html"], | ||
extends: [ | ||
...angular.configs.templateRecommended, | ||
...angular.configs.templateAccessibility, | ||
], | ||
rules: {}, | ||
}, | ||
); |
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
20 changes: 0 additions & 20 deletions
20
projects/ngx-sweetalert2-demo/src/app/app-routing.module.ts
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
20 changes: 7 additions & 13 deletions
20
projects/ngx-sweetalert2-demo/src/app/app.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
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { ApplicationConfig, importProvidersFrom, provideZoneChangeDetection } from "@angular/core"; | ||
import { routes } from "./app.routes"; | ||
import { provideRouter, withComponentInputBinding, withRouterConfig } from "@angular/router"; | ||
import { SweetAlert2Module } from "@sweetalert2/ngx-sweetalert2"; | ||
|
||
export const appConfig: ApplicationConfig = { | ||
providers: [ | ||
provideZoneChangeDetection({ eventCoalescing: true }), | ||
provideRouter(routes, withComponentInputBinding(), withRouterConfig({ paramsInheritanceStrategy: "always" })), | ||
importProvidersFrom(SweetAlert2Module.forRoot()), | ||
], | ||
}; |
Oops, something went wrong.