Skip to content

Commit ee876a4

Browse files
Migrate Angular to v21 standalone components, update ESLint flat config
1 parent cfff71f commit ee876a4

14 files changed

Lines changed: 8360 additions & 5646 deletions

Angular/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

Angular/.eslintrc.js

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

Angular/.stylelintrc.json

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

Angular/angular.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@
4040
"budgets": [
4141
{
4242
"type": "initial",
43-
"maximumWarning": "4mb",
44-
"maximumError": "4mb"
43+
"maximumWarning": "4.5mb",
44+
"maximumError": "5mb"
4545
},
4646
{
4747
"type": "anyComponentStyle",

Angular/eslint.config.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
import spellCheck from 'eslint-config-devextreme/spell-check';
2+
import angularConfig from 'eslint-config-devextreme/angular';
3+
import tsParser from '@typescript-eslint/parser';
4+
import path from 'path';
5+
import { fileURLToPath } from 'url';
6+
7+
const __filename = fileURLToPath(import.meta.url);
8+
const __dirname = path.dirname(__filename);
9+
10+
export default [
11+
{
12+
ignores: ['node_modules/**', 'eslint.config.js', 'dist/**', '.angular/**', 'ngcc.config.js', 'stylelint.config.mjs'],
13+
},
14+
...spellCheck,
15+
...angularConfig,
16+
{
17+
files: ['**/*.ts'],
18+
languageOptions: {
19+
parser: tsParser,
20+
parserOptions: {
21+
project: './tsconfig.json',
22+
tsconfigRootDir: __dirname,
23+
ecmaVersion: 6,
24+
},
25+
},
26+
},
27+
];

0 commit comments

Comments
 (0)