You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm fine with most of my interfaces allowing mutation - I just want my Redux state definition to enforce recursive mutability. Can the reaonly interface rule be turned on only in that file?
The text was updated successfully, but these errors were encountered:
Yes, there are several ways to run tslint rules for only a specific set of files.
The CLI version of tslint has this syntax:
tslint [options] [file ...]
So you can just specify the files you want it to run for. For example in a package.json script.
Another way is to have nested tslint.json files. Say that you have one tslint.json in the root that contains your normal rules, and then you put another tslint.json in the subfolder that contains your Redux interface declarations that has the extra readonly rules. Then that tslint.json overrides the one on the root level. So you can run tslint once and get different rules in different folders.
I'm fine with most of my interfaces allowing mutation - I just want my Redux state definition to enforce recursive mutability. Can the reaonly interface rule be turned on only in that file?
The text was updated successfully, but these errors were encountered: