Skip to content

Commit 7eb0e97

Browse files
committed
feat(init): add console info for ESLint flat config which is not yet supported, update README.md
1 parent e896c9c commit 7eb0e97

File tree

3 files changed

+22
-17
lines changed

3 files changed

+22
-17
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
# @angular-architects/ddd – DDD Plugin for Angular Nx Monorepos
1+
# DDD Plugin for Angular Nx Monorepos
22

33
## Versions
44

55
The package versions are aligned with the _Angular_ version.
66

7-
* for **Nx < 19 and NG 17** use _v17.0.5_.
8-
* for **Nx < 20 and NG 18** use _v18.0.1_.
9-
* for **Nx >= 20 and NG 18** use _v18.1.0_.
10-
* for **Nx >= 20 and NG 19** use _v19.0.2_.
7+
* for **Nx < v19** and **NG v17** use _v17.0.5_.
8+
* for **Nx < v20** and **NG v18** use _v18.0.1_.
9+
* for **Nx >= v20** and **NG v18** use _v18.1.1_.
10+
* for **Nx >= v20** and **NG v19** use _v19.0.5_.
1111

1212
**Breaking change** in v18.1.0:
1313

14-
The naming of the **Nx** `includePaths` has changed to only use one "/" (due to **npm** restrictions).
14+
The naming of the **Nx** `includePaths` has changed to only use one "/".
1515

16-
Until v18.0.1, the generated `includePaths` were like this, which is illegal in **npm**:
16+
Until _v18.0.1_, the generated `includePaths` were like this, which is illegal in **npm**:
1717

1818
```json
1919
"@org/booking/domain": ["libs/booking/domain/src/index.ts"],
2020
"@org/booking/feature-test": ["libs/booking/feature-test/src/index.ts"]
2121
```
2222

23-
Starting with v18.1.0, the generated `includePaths` are using dashes instead:
23+
Starting with _v18.1.0_, the generated `includePaths` are using dashes instead:
2424

2525
```json
2626
"@org/booking-domain": ["libs/booking/domain/src/index.ts"],

libs/ddd/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
# @angular-architects/ddd &ndash; DDD Plugin for Angular Nx Monorepos
1+
# DDD Plugin for Angular Nx Monorepos
22

33
## Versions
44

55
The package versions are aligned with the _Angular_ version.
66

7-
* for **Nx < 19 and NG 17** use _v17.0.5_.
8-
* for **Nx < 20 and NG 18** use _v18.0.1_.
9-
* for **Nx >= 20 and NG 18** use _v18.1.0_.
10-
* for **Nx >= 20 and NG 19** use _v19.0.2_.
7+
* for **Nx < v19** and **NG v17** use _v17.0.5_.
8+
* for **Nx < v20** and **NG v18** use _v18.0.1_.
9+
* for **Nx >= v20** and **NG v18** use _v18.1.1_.
10+
* for **Nx >= v20** and **NG v19** use _v19.0.5_.
1111

1212
**Breaking change** in v18.1.0:
1313

14-
The naming of the **Nx** `includePaths` has changed to only use one "/" (due to **npm** restrictions).
14+
The naming of the **Nx** `includePaths` has changed to only use one "/".
1515

16-
Until v18.0.1, the generated `includePaths` were like this, which is illegal in **npm**:
16+
Until _v18.0.1_, the generated `includePaths` were like this, which is illegal in **npm**:
1717

1818
```json
1919
"@org/booking/domain": ["libs/booking/domain/src/index.ts"],
2020
"@org/booking/feature-test": ["libs/booking/feature-test/src/index.ts"]
2121
```
2222

23-
Starting with v18.1.0, the generated `includePaths` are using dashes instead:
23+
Starting with _v18.1.0_, the generated `includePaths` are using dashes instead:
2424

2525
```json
2626
"@org/booking-domain": ["libs/booking/domain/src/index.ts"],

libs/ddd/src/generators/utils/update-dep-const.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,14 @@ export function updateDepConst(
1717
filePath = '.eslintrc';
1818
rule = '@nx/enforce-module-boundaries';
1919
console.info('Did not find .eslintrc.json but found .eslintrc');
20+
} else if (host.exists('eslint.config.js')) {
21+
console.info(
22+
'ESLint flat config will be supported in next release!'
23+
);
24+
return;
2025
} else {
2126
console.info(
22-
'Cannot add linting rules: linting config file does not exist'
27+
'Cannot add linting rules: ESLint config file not found'
2328
);
2429
return;
2530
}

0 commit comments

Comments
 (0)