Giter VIP home page Giter VIP logo

Comments (13)

AdriVanHoudt avatar AdriVanHoudt commented on May 31, 2024

how would you do this, the moment you require it it will just take the last occurrence of the key

from eslint-config-hapi.

AdriVanHoudt avatar AdriVanHoudt commented on May 31, 2024

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

from eslint-config-hapi.

cjihrig avatar cjihrig commented on May 31, 2024

The config is just a couple of objects. Just loop over the keys and maintain a list of already seen keys.

from eslint-config-hapi.

AdriVanHoudt avatar AdriVanHoudt commented on May 31, 2024

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

from eslint-config-hapi.

cjihrig avatar cjihrig commented on May 31, 2024

Oh, duh you're right. Yea, you would have to do it at the source code level.

from eslint-config-hapi.

AdriVanHoudt avatar AdriVanHoudt commented on May 31, 2024

👍

from eslint-config-hapi.

cjihrig avatar cjihrig commented on May 31, 2024

On second thought, this might be overkill. Closing.

from eslint-config-hapi.

AdriVanHoudt avatar AdriVanHoudt commented on May 31, 2024

yeah maybe, it is probably more sane to just go through it once and then keep it in mind for future updates

from eslint-config-hapi.

cjihrig avatar cjihrig commented on May 31, 2024

Conveniently, this is taken care of now, as of 7e71173

from eslint-config-hapi.

AdriVanHoudt avatar AdriVanHoudt commented on May 31, 2024

I feel dumb now haha also are you linting a linting config? meta

from eslint-config-hapi.

cjihrig avatar cjihrig commented on May 31, 2024

Yes. lintception

from eslint-config-hapi.

AdriVanHoudt avatar AdriVanHoudt commented on May 31, 2024

and belly button uses lab which uses this === infinite dependency :O

from eslint-config-hapi.

lock avatar lock commented on May 31, 2024

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.

from eslint-config-hapi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.