google / eslint-config-google

ESLint shareable config for the Google JavaScript style guide
Apache License 2.0
1.74k stars 140 forks source link

Rule 3.4.2.3 Mutability of exports #70

Closed chkpnt closed 2 years ago

chkpnt commented 2 years ago

This is probably the wrong place to discuss the Style Guide. But are you Googlers really applying rule "3.4.2.3 Mutability of exports", or is this a rule from days gone by that is no longer lived? If it's still applied: What is the purpose of this rule?

chkpnt commented 2 years ago

I've retought about this rule, and sure it make sense. Otherwise the imported state doesn't match the module's internal state. I'm using export const either way.