Skip to content

Commit 3f1b86a

Browse files
authored
Merge pull request #136 from t-ho/upgrade/angular-19
Upgrade/angular 19
2 parents 9833f3d + 3054031 commit 3f1b86a

35 files changed

+3808
-2945
lines changed

.eslintrc.json

Lines changed: 0 additions & 53 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ $ yarn add ngx-ui-loader
4343

4444
| Angular | Installation | Documentation |
4545
| ------------- | ----------------------------------- | --------------------------------------------------------------------- |
46-
| Angular 18 | `npm i --save ngx-ui-loader` | [v18.x.x](https://tdev.app/ngx-ui-loader) |
46+
| Angular 19 | `npm i --save ngx-ui-loader` | [v19.x.x](https://tdev.app/ngx-ui-loader) |
47+
| Angular 18 | `npm i --save ngx-ui-loader@18.0.0` | [v18.x.x](https://tdev.app/ngx-ui-loader) |
4748
| Angular 17 | `npm i --save ngx-ui-loader@17.0.0` | [v17.x.x](https://tdev.app/ngx-ui-loader) |
4849
| Angular 16 | `npm i --save ngx-ui-loader@16.0.1` | [v16.x.x](https://tdev.app/ngx-ui-loader) |
4950
| Angular 15 | `npm i --save ngx-ui-loader@15.0.0` | [v15.x.x](https://tdev.app/ngx-ui-loader) |

angular.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,18 +73,18 @@
7373
"builder": "@angular-devkit/build-angular:dev-server",
7474
"configurations": {
7575
"production": {
76-
"browserTarget": "ngx-ui-loader-app:build:production"
76+
"buildTarget": "ngx-ui-loader-app:build:production"
7777
},
7878
"development": {
79-
"browserTarget": "ngx-ui-loader-app:build:development"
79+
"buildTarget": "ngx-ui-loader-app:build:development"
8080
}
8181
},
8282
"defaultConfiguration": "development"
8383
},
8484
"extract-i18n": {
8585
"builder": "@angular-devkit/build-angular:extract-i18n",
8686
"options": {
87-
"browserTarget": "ngx-ui-loader-app:build"
87+
"buildTarget": "ngx-ui-loader-app:build"
8888
}
8989
},
9090
"test": {

eslint.config.js

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
import tseslint from '@typescript-eslint/eslint-plugin';
2+
import tsparser from '@typescript-eslint/parser';
3+
import angular from '@angular-eslint/eslint-plugin';
4+
import angularTemplate from '@angular-eslint/eslint-plugin-template';
5+
import angularTemplateParser from '@angular-eslint/template-parser';
6+
7+
export default [
8+
{
9+
ignores: ['dist/**/*', 'node_modules/**/*'],
10+
},
11+
{
12+
files: ['**/*.ts'],
13+
languageOptions: {
14+
parser: tsparser,
15+
parserOptions: {
16+
project: ['tsconfig.json'],
17+
createDefaultProgram: true,
18+
},
19+
},
20+
plugins: {
21+
'@typescript-eslint': tseslint,
22+
'@angular-eslint': angular,
23+
},
24+
rules: {
25+
...tseslint.configs.recommended.rules,
26+
...angular.configs.recommended.rules,
27+
'@angular-eslint/directive-selector': [
28+
'error',
29+
{
30+
type: 'attribute',
31+
prefix: 'app',
32+
style: 'camelCase',
33+
},
34+
],
35+
'@angular-eslint/component-selector': [
36+
'error',
37+
{
38+
type: 'element',
39+
prefix: 'app',
40+
style: 'kebab-case',
41+
},
42+
],
43+
'@typescript-eslint/no-unused-vars': 'warn',
44+
'@typescript-eslint/no-explicit-any': 'warn',
45+
},
46+
},
47+
{
48+
files: ['**/*.html'],
49+
languageOptions: {
50+
parser: angularTemplateParser,
51+
},
52+
plugins: {
53+
'@angular-eslint/template': angularTemplate,
54+
},
55+
rules: {
56+
...angularTemplate.configs.recommended.rules,
57+
},
58+
},
59+
];

0 commit comments

Comments
 (0)