Skip to content

Commit aca3932

Browse files
angular 22 changes done
1 parent 7839b23 commit aca3932

12 files changed

Lines changed: 12929 additions & 19033 deletions

File tree

.yarn/install-state.gz

-420 KB
Binary file not shown.

angular.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"prefix": "app",
1616
"architect": {
1717
"build": {
18-
"builder": "@angular-devkit/build-angular:application",
18+
"builder": "@angular/build:application",
1919
"options": {
2020
"allowedCommonJsDependencies": [
2121
"apexcharts"
@@ -39,14 +39,15 @@
3939
"scripts": [],
4040
"stylePreprocessorOptions": {
4141
"includePaths": [
42-
".",
42+
"src",
4343
"node_modules"
4444
],
4545
"sass": {
4646
"silenceDeprecations": [
47-
"color-functions",
47+
"import",
4848
"global-builtin",
49-
"import"
49+
"color-functions",
50+
"if-function"
5051
]
5152
}
5253
}
@@ -88,7 +89,7 @@
8889
"defaultConfiguration": "production"
8990
},
9091
"serve": {
91-
"builder": "@angular-devkit/build-angular:dev-server",
92+
"builder": "@angular/build:dev-server",
9293
"configurations": {
9394
"production": {
9495
"buildTarget": "free-version:build:production"
@@ -100,7 +101,7 @@
100101
"defaultConfiguration": "development"
101102
},
102103
"extract-i18n": {
103-
"builder": "@angular-devkit/build-angular:extract-i18n",
104+
"builder": "@angular/build:extract-i18n",
104105
"options": {
105106
"buildTarget": "free-version:build"
106107
}

eslint.config.mjs

Lines changed: 15 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,20 @@
1-
import path from 'node:path';
2-
import { fileURLToPath } from 'node:url';
31
import js from '@eslint/js';
4-
import { FlatCompat } from '@eslint/eslintrc';
5-
import { createRequire } from 'module';
2+
import tseslint from 'typescript-eslint';
3+
import angular from 'angular-eslint';
64

7-
const require = createRequire(import.meta.url);
8-
9-
const __filename = fileURLToPath(import.meta.url);
10-
const __dirname = path.dirname(__filename);
11-
const compat = new FlatCompat({
12-
baseDirectory: __dirname,
13-
recommendedConfig: js.configs.recommended,
14-
allConfig: js.configs.all
15-
});
16-
17-
export default [
5+
export default tseslint.config(
186
{
197
ignores: ['projects/**/*']
208
},
21-
...compat
22-
.extends(
23-
'eslint:recommended',
24-
'plugin:@typescript-eslint/recommended',
25-
'plugin:@angular-eslint/recommended',
26-
'plugin:@angular-eslint/template/process-inline-templates'
27-
)
28-
.map((config) => ({
29-
...config,
30-
files: ['**/*.ts']
31-
})),
9+
3210
{
3311
files: ['**/*.ts'],
12+
extends: [
13+
js.configs.recommended,
14+
...tseslint.configs.recommended,
15+
...angular.configs.tsRecommended
16+
],
17+
processor: angular.processInlineTemplates,
3418

3519
rules: {
3620
'@angular-eslint/directive-selector': [
@@ -42,6 +26,8 @@ export default [
4226
}
4327
],
4428

29+
'@angular-eslint/component-class-suffix': 'off',
30+
4531
'@angular-eslint/component-selector': [
4632
'error',
4733
{
@@ -52,12 +38,10 @@ export default [
5238
]
5339
}
5440
},
55-
...compat.extends('plugin:@angular-eslint/template/recommended').map((config) => ({
56-
...config,
57-
files: ['**/*.html']
58-
})),
41+
5942
{
6043
files: ['**/*.html'],
44+
extends: [...angular.configs.templateRecommended],
6145
rules: {}
6246
}
63-
];
47+
);

0 commit comments

Comments
 (0)