Comments (13)
how would you do this, the moment you require it it will just take the last occurrence of the key
from eslint-config-hapi.
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.
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.
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.
Oh, duh you're right. Yea, you would have to do it at the source code level.
from eslint-config-hapi.
👍
from eslint-config-hapi.
On second thought, this might be overkill. Closing.
from eslint-config-hapi.
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.
Conveniently, this is taken care of now, as of 7e71173
from eslint-config-hapi.
I feel dumb now haha also are you linting a linting config? meta
from eslint-config-hapi.
Yes. lintception
from eslint-config-hapi.
and belly button uses lab which uses this === infinite dependency :O
from eslint-config-hapi.
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)
- Drop support for everything but Node 4 and 6 HOT 1
- Add a .npmignore file HOT 1
- Update dependencies HOT 1
- Track deprecated rules HOT 1
- Catch undeclared variables HOT 5
- validation aware eslint-config HOT 2
- Warning message during eslint-config-hapi with yarn HOT 5
- Why require-await? HOT 6
- Why no dangling commas? HOT 2
- Eslint 5 support HOT 2
- Change module namespace HOT 1
- eslint 6 support HOT 1
- Action required: Greenkeeper could not be activated 🚨 HOT 1
- Add rule: no-dupe-keys HOT 3
- Missing API file
- Rule request: key-spacing
- Update ES version
- Drop node 8 and 10
- Fix es env
- Cleanup
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eslint-config-hapi.