question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add feature to disable dot-notation

See original GitHub issue

Issuehunt badges

Hi! I’m working on a project that uses reverse-domain naming for namespaces, and we need to store some data with the namespace as the key. Where we’d expect

{
    "cc.xylobol.test": {
        "foo": "bar"
    }
}

we end up with

{
    "cc": {
        "xylobol": {
            "test": {
                "foo": "bar"
            }
        }
    }
}

instead due to the dot-notation. Is there a pre-existing way to disable this? If not, could it be added as a feature?

Thank you in advanced. Xylobol

IssueHunt Summary

yaodingyd yaodingyd has been rewarded.

Sponsors (Total: $40.00)

Tips

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sindresorhuscommented, Jul 26, 2018

I have hundreds of issues to triage. 4 days is not a lot of time to wait 😉

1reaction
LitoMorecommented, Dec 19, 2018

Currently, conf is using dot-prop to solve the config json.

In this case:

{
    "cc.xylobol.test": {
        "foo": "bar"
    }
}

It’s too much to get the cc.xylobol.test with dot-prop because the code will like this:

dotProp(thisCase, 'cc\\.xylobol\\.test')

We could drop the dot-prop module and write a new module to solve the config json.

Read more comments on GitHub >

github_iconTop Results From Across the Web

disabling dot-notation in eslint - javascript - Stack Overflow
I'm having trouble disabling dot-notation ...
Read more >
Add option to disable "Transform dot notation to bracket ...
Can we get an option to disable the new "Transform dot notation to bracket notation" functionality? We would like to keep our code...
Read more >
dot-notation - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
Dot-walking examples - Product Documentation | ServiceNow
Access fields on a related table from a form, list, or script by dot-walking. This topic includes examples of the different ways that...
Read more >
Dot Notation vs Array Notation in JavaScript - YouTube
Dot Notation vs Array Notation in JavaScript:We can use dot notation as well as array notation to access object properties.The dot notation ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found