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.

Configuration and editors

See original GitHub issue

When I tried this with vim and VSCode, the settings for importSort give different results than running vim through CLI

I think it could have to do with #11 but not sure.

We use the https://github.com/unsplash/import-sort-style-unsplash as an import style, e.g.

{
  "importSort": {
    ".js, .jsx, .ts, .tsx": {
      "style": "unsplash" 
    }
  }
}

Has anyone else had luck getting the settings to work with their editor?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ggascoignecommented, Mar 24, 2021

I’ll leave it open for now - as you said it might help someone. But yes, all in all there’s very little in the plugin and most everything else is in the import-sort package itself.

0reactions
tonycommented, Mar 24, 2021

I’m pretty sure that the VSCode plugin assumes that the package.json and the node_modules will be loaded from the root folder of the project - if that’s not the case for you, then you’ll likely need to do something about that.

I verified that - it looks fine, I believe.

This really looks like a PR needs to be made for the import-sort-config package, it needs to somehow:

  1. Trace where and how the config is being resolved (e.g. set an env variable to output it maybe)
  2. Accept options directly (no side effects, like a old-fashioned API function)

In order to solve the first part I will take a look at how eslint/babel/prettier/etc resolves their configs. I’m assuming hopefully they have a sane way of doing that.

As for what to do with this card - do you want to close it? Keep it open to see if anyone else comes by with input?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configurations editor - IBM
The InfoSphere® DataStage® Designer provides a configuration file editor to help you define configuration files for the parallel engine. To use the editor, ......
Read more >
Editing Collections with Configuration Editor | Microsoft Learn
Learn how to use Configuration Editor to edit collections. For this example we will be configuring Output Caching to highlight the new ...
Read more >
Configuration editors (* Conf-editors) | From Linux - Desde Linux
For editing mate-conf-editor we can use the search tool (Edit »Search) which helps to find a value or a name of a specific...
Read more >
Configuration Editor - Free download and software reviews
Configuration Editor is a tool to be bundled with your own software, that will allow the user to edit your software settings file...
Read more >
Configuration Editor usage - wcm.io
The Configuration Editor is a template which is used inside the '/content' tree. It allows to edit configurations for the inner-most context that...
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