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.

How to pass additional config for a rule

See original GitHub issue

Hey, the project is awesome!

I would like to use it with import/no-unused-modules rule from eslint-plugin-import plugin but not sure how to pass additional config for that rule.

Is there an option do use something like this --rule="{ import/no-unused-modules: [2, { unusedExports: true }] }"?

Thanks!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
carbonid1commented, Oct 22, 2021

Makes sense. It should work for me. Thanks for the quick response!

0reactions
IanVScommented, Oct 22, 2021

I understood #47 as a request to essentially pre-select a rule from the list and skip the manual selection step.

I’d prefer avoiding another option or changing the way the current option works unless there’s a strong need for it. I think your workaround of creating a special eslint config file is a good one. Instead of duplicating the values from your main config, you should be able to use extends: 'path/to/main/.eslintrc', @carbonid1.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Managing Your AWS Config Rules
Add, View, Update and Delete Rules (Console) · Type in the search field to filter the list of managed rules by rule name,...
Read more >
Simplify Custom Rule Creation Using the AWS Config Rule ...
In this video, you'll see how to simplify custom rule creation using the AWS Config Rule Development Kit (RDK). With this tool, you...
Read more >
Remediate Non-Compliance Using AWS Config Rules and a ...
Learn more about AWS at – https://amzn.to/2McIkPL AWS Config ... Remediate Non-Compliance Using AWS Config Rules and a Custom SSM Document.
Read more >
Managing Your Amazon Config Rules - 亚马逊云科技
You can use the Amazon Config console, Amazon CLI, and Amazon Config API to view, add, and delete your rules. Add, View, Update...
Read more >
put-organization-config-rule - Amazon AWS
If you are adding a new Custom Lambda rule, you first need to create an Lambda function in the management account or a...
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