Closed draylegend closed 3 years ago
Thanks for this info. Hm, do you have a tslint.json
in your project's root? This is the only file which is modified by the ng add schematic.
NX allows to generate an application with eslint as linter instead of tslint (which is the default). Choosing eslint will create the .eslintrc
file.
The ng add command should probably add the rules to this part as well:
{
"rules": {
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@nrwl/nx/enforce-module-boundaries": [
"error",
{
"enforceBuildableLibDependency": true,
"allow": [],
"depConstraints": [
{ "sourceTag": "*", "onlyDependOnLibsWithTags": ["*"] }
]
}
]
}
}
confirmed on new repositories that this is related to eslint.
Steps to reproduce:
npx create-nx-workspace@latest workspace-name --preset=empty --cli=angular --style=scss --nx-cloud=false
ng add @angular-architects/ddd
andnx add @angular-architects/ddd
Environment