In nx project configured with eslint, the generated eslint config should be put inside the top-level overrides array instead of overwriting the whole .eslintrc.json file
More details:
What's inside .eslintrc.json after running nx add @angular-architects/ddd and/or nx g @angular-architects/ddd:domain blog:
An unhandled exception occurred: ESLint configuration in apps/desci/.eslintrc.json » ../../.eslintrc.json is invalid:
- Unexpected top-level property "files".
Referenced from: /home/xzhan/Development/Projects/desci_online/frontend/apps/desci/.eslintrc.json
See "/tmp/ng-taMiLt/angular-errors.log" for further details.
nx
version: 10.4.4@angular-architects/ddd
version: ^1.1.0TL;DR;
In nx project configured with eslint, the generated eslint config should be put inside the top-level
overrides
array instead of overwriting the whole.eslintrc.json
fileMore details:
What's inside
.eslintrc.json
after runningnx add @angular-architects/ddd
and/ornx g @angular-architects/ddd:domain blog
:What should the updated
.eslintrc.json
:Otherwise,
nx lint
will fail with error: