Closed cjihrig closed 9 years ago
how would you do this, the moment you require it it will just take the last occurrence of the key
some low level read line by line
could work
http://stackoverflow.com/questions/6156501/read-a-file-one-line-at-a-time-in-node-js/32599033#32599033
The config is just a couple of objects. Just loop over the keys and maintain a list of already seen keys.
the problem, as stated in first comment, is that when requiring, js will remove dupe keys and just assign the last value to it, so you will never have dupe keys
Oh, duh you're right. Yea, you would have to do it at the source code level.
:+1:
On second thought, this might be overkill. Closing.
yeah maybe, it is probably more sane to just go through it once and then keep it in mind for future updates
Conveniently, this is taken care of now, as of 7e7117398e7a4e1460d6739e2b9deb5281fdad31
I feel dumb now haha also are you linting a linting config? meta
Yes. lintception
and belly button uses lab which uses this === infinite dependency :O
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
8 removed a duplicated rule in the config. We should have a test that loops over the keys in the config to make sure there are no duplicates.