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.

Allow for different configuration files

See original GitHub issue

I’m having trouble getting this plugin to work due to the config file location being specifically set in linter.py. I’m currently configuring my setup to use stylelint.config.js rather than .stylelintrc since I need to use JS object syntax rather than JSON. However, in linter.py, the config file is specifically set to .stylelintrc, which means it doesn’t work for my setup. Ideally it would be nice to move to NodeLinter, since this is handled automatically, but I saw #19 which explained the reasoning for keeping the current plugin architecture, using stylelint_wrapper.js, but it’s pretty inflexible and doesn’t allow for the varied configuration files that the CLI allows for.

Can you update the stylelint_wrapper.js to not pass a specific config file and let it search relative to the CWD of the file being linted when using the CLI, or can you switch to NodeLinter?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:6

github_iconTop GitHub Comments

1reaction
jo-smcommented, Jul 29, 2016

@chrishoage see https://github.com/SublimeLinter/SublimeLinter3/issues/483. I made an issue for stylelint_d, which is long-running process for stylelint that I made for Sublime, which also accepts non .stylelintrc configs.

1reaction
jo-smcommented, Jul 27, 2016

Yeah I agree – although ideally it would be as simple as seeing if they have the CLI, and if they do, just use NodeLinter, otherwise, run the old wrapper. I may fork this and write my own version of this that also supports a running node process (Node startup on my computer is sloooooow…), see SublimeLinter-contrib-eslint_d for an example of what I’m talking about. Even for a simple file, on my computer, it can take around 1 second for the linting to complete…

Read more comments on GitHub >

github_iconTop Results From Across the Web

Multiple configuration files
Multiple configuration files ... This method of operation means that you cannot preserve different startupconfig files across a reboot without using remote ...
Read more >
What is configuration file? | Definition from TechTarget
Configuration file information specifies, for example, where log files from an application are stored via the storage path, which plug-ins are allowed in...
Read more >
A Complete Guide to Linux Config Files | CBT Nuggets
Configurations for applications in Linux are stored in individual configuration files. This makes management of the Linux OS both much easier ...
Read more >
allow to specify different config files · Issue #3428 - GitHub
I have different environments where I'd like to specify alternative config ... Config file - allow to specify different config files #3428.
Read more >
Managing Multiple Configuration File Environments with Pre ...
Ok, now we've got different configuration and different configuration files. Let's create a batch file called "copyifnewer.bat" and here's ...
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