Thanks for your answer Bastien. I was looking to change / disable this rule for some files only. This can be done with an overload in .eslintrc.json: "overrides": [ (...) { " files": ["*.effects.ts"], "rules": { "@typescript-eslint/member-ordering": [ "error", { "default": [ "constructor", "public-decorated-field"] } ] } ]
On Thursday, 11 March 2021 at 15:27:59 UTC+1 bastien...@gmail.com wrote: > The documentation for the rule is here: > https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-ordering.md > > you can configure the rule in the .eslintrc.json file > > *Bastien Lemaire* > > > On Thu, 11 Mar 2021 at 15:18, Arnaud Deman <arnaud...@io.cool> wrote: > >> Hello, >> >> After updating my app to Angular11, I migrated from tslint to eslint. I >> have a problem with the member-ordering rule with Ngrx Effects. >> They are of this form: >> >> export class MyEffects { >> >> constructor () {(...)} >> >> @Effect () myEffect$ = this._actions$ .pipe (...) // <- should be before >> the constructor. >> } >> which does not respect the rule of "members must be declared before the >> public constructor". It was OK with tslint. >> Would there be a solution to globally disable this rule for effects files >> only? >> I know it can be done via comments in files but the goal is to avoid >> modifying / committing a large number of files. >> >> Thanks in advance (and sorry for being out of topic), >> Arnaud. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Angular and AngularJS discussion" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to angular+u...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/angular/4354518a-9961-46cd-9fcb-98cf74efffb3n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/angular/4354518a-9961-46cd-9fcb-98cf74efffb3n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to angular+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/angular/3e934033-acd4-415f-ba0a-1edf35786780n%40googlegroups.com.