Eslint plugin:@nrwl/nx/angular should not overwrite certain rules like @typescript-eslint/member-ordering #5181
Replies: 2 comments 3 replies
-
|
I absolutely agree with this point. It took me quite some time to find out why some rules were not "taking" and others were. The only solution I found so far was to create a separate .eslintrc-base.json file which holds the rules object. That way I can extend it in each apps and libraries .eslintrc.json file (must be the last import because order of extending files matters): The setup as it is being created by the CLI is currently counter-intuitive. |
Beta Was this translation helpful? Give feedback.
-
|
I don't think this needs to be both a discussion and an issue, so is it possible to close this one as there is more context already on the issue thread? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently
plugin:@nrwl/nx/angularsets certain rules like@typescript-eslint/member-ordering. As far as I can tell this is also already set inplugin:@nrwl/nx/typescriptin the root/.eslintrc.json.But with
plugin:@nrwl/nx/angularbeing extended by default in all angular libs you can't overwrite the member-ordering yourself in the root configuration but would need to set it in each<lib>/.eslintrc.json.I'm certain there are some eslint configurations which make sense to set on a lib level, but those which are already set by
plugin:@nrwl/nx/typescriptshouldn't be included in them.Are there any arguments against evaluating and excluding certain eslint rules?
Beta Was this translation helpful? Give feedback.
All reactions