I do not respond to automated messages.  Please call me on the phone to discuss 
what you are looking for.  If I do not answer, please leave a message otherwise 
I will not return your call.  Thanks. 

 

- Adam J. Evanovich

 

From: [email protected] <[email protected]> On Behalf Of Arnaud 
Deman
Sent: Thursday, March 11, 2021 10:15 AM
To: Angular and AngularJS discussion <[email protected]>
Subject: Re: [Angular] Angluar 11 / Ngrx and eslint

 

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 [email protected] 
<mailto:[email protected]>  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 <[email protected] 
<mailto:[email protected]> > 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 [email protected] <mailto:[email protected]> .
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 [email protected] 
<mailto:[email protected]> .
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/3e934033-acd4-415f-ba0a-1edf35786780n%40googlegroups.com
 
<https://groups.google.com/d/msgid/angular/3e934033-acd4-415f-ba0a-1edf35786780n%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/002a01d716a2%246f990010%244ecb0030%24%40gmail.com.

Attachment: CV_adam_evanovich.docx
Description: MS-Word 2007 document

Reply via email to